summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2025-04-08boot: urgent nekernel patches.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-08dev: Urgent patches regarding memory management.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-08kernel, storage, heap, abi: lots of improvements and tweaks.Amlal El Mahrouss
- Please read the commit details for in-depth insights. - Add stack smash prevention code. - Better prevention in BitMap Mgr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-08pci, Device.h: remove unused function prototypes.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-08storage, ahci: only assign `kSATAPortsImplemented` when init's successful.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-08Merge pull request #12 from amlel-el-mahrouss/devAmlal El Mahrouss
pr/ahci: generic driver improvements.
2025-04-08pci, Device.h: use sizeof UInt32 instead of relying on a number.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-08pci, Device.h: minor tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-07modules, BootNet: comment wrongfully mentioned 'address'.Amlal El Mahrouss
- Mentioned 'packet' instead of 'address' Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-07boot/syschk: waive requirement for ATA PIO.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-07kernel/ufs: Remove invalid macros.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-06fs/NeFS.cc: `buf` must be zeroed out.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-06fs/nefs: Optimize ::Format method for EPM inside NeFileSystemParser.Amlal El Mahrouss
TL;DR: - Avoiding unecessary delays, when copying filesystem name to part block (EPM) Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-06kernel/storage: use correct if branching to avoid future compiler errors.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-06 adding an align function designed for AHCI's needs and drivemgr'sAmlal El Mahrouss
AHCI detection system. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-05AHCI+Generic.cc: a little but important tweak regarding AHCI genericAmlal El Mahrouss
driver. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-05Merge pull request #11 from amlel-el-mahrouss/devAmlal El Mahrouss
pr: a big commit regarding MBCI, AHCI, and others.
2025-04-05kernel: storage, modules, mbci: implement mbci_read_auth_key, ↵Amlal El Mahrouss
mbci_test_mmio, test DMA on AHCI too. - Alongside fixes for BootNet, SysChk, and refactor for KernelScheduler, and MemoryMgr. - IMPORTANT: Add MBCI specs. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-05kernel/mbci: fix include in MBCI.h, which pointed to non-existant Mod/Amlal El Mahrouss
2025-04-04Merge pull request #10 from amlel-el-mahrouss/devAmlal El Mahrouss
cf/Foundation: Use Kernel's 'Char' type instead of std's 'char'
2025-04-04cf/Foundation: Use Kernel's 'Char' type instead of std's 'char'Amlal El Mahrouss
2025-04-04Merge pull request #9 from amlel-el-mahrouss/devAmlal El Mahrouss
kernel, storage/pr: merging important patches.
2025-04-04meta: revert useless refactor.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-04kernel, storage: important patches done to AHCI, PIO, PagingMgr, and DMA.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-03Merge pull request #8 from amlel-el-mahrouss/devAmlal El Mahrouss
dev → master
2025-04-03fmt/pef.h: correcting minor mistakes.Amlal El Mahrouss
2025-04-03kernel/pci: document Device class.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-02Merge pull request #7 from amlel-el-mahrouss/devAmlal El Mahrouss
boot/net: rename Boot.S files, clarify EEPROM implication, and prep UDP read
2025-04-02boot/net: rename Boot.S files, clarify EEPROM implication, and prep UDP readAmlal El Mahrouss
- Renamed Boot.S → BootNetStartup.S and SysChk/Boot.S → SysChkStartup.S for clarity - Replaced BOOTNET_INTERNET_HEADER.ImpliesEEPROM with ImpliesProgram to better reflect the generic reprogramming intent - Introduced `bootnet_read_udp_packet()` stub for future UDP packet parsing from bootnet.json - Minor alignment and comment fixes in various headers (CoreBoot, EPM, Json) - Updated HalPagingMgr to use PageStore instead of NE_PAGE_STORE - Boot time now prints cycles since start; triggered fs_init_nefs() earlier during HAL init - Prep for extended MBCI and master structure support in COREBOOT_LINEAR_EXEC - Numerous cleanups across DMA, NewKit, and Json parsing to prep for extended patching and block-level bootstrap This lays groundwork for richer NetBoot infrastructure in NeKernel and aligns naming and structure conventions across subsystems. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-01Merge pull request #6 from amlel-el-mahrouss/devAmlal El Mahrouss
kernel/wip: SMP tweaks, and code cleanup.
2025-04-01kernel/wip: SMP tweaks, and code cleanup.Amlal El Mahrouss
2025-04-01Merge pull request #5 from amlel-el-mahrouss/devAmlal El Mahrouss
pr/ahci: important patches.
2025-04-01ahci, boot: bump, and working on a patch.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-01fix/paging: Fix page manager API probe and tlb invalidator logic.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-01kernel/storage, pio, ahci, dma: a lot of patches and fixes according to ↵Amlal El Mahrouss
StorageKit specs and cleaned up DMA driver for a future more robust implementation. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-01Merge pull request #4 from amlel-el-mahrouss/devAmlal El Mahrouss
pr/general: mostly minor patches.
2025-04-01boot, kernel, modules: unify gfx headers, fix AHCI LBA48, standardize ModuleMainAmlal El Mahrouss
- Consolidated CoreGfx headers: * Renamed `FBMgr.h` to `CoreGfx.h` * Renamed `TextMgr.h` → `TextGfx.h`, `MathMgr.h` → `MathGfx.h`, and `AccessibilityMgr.h` → `CoreAccess.h` * Updated all includes across bootloader, HAL, and kernel to use new names - Standardized EFI entrypoint: * Replaced `Main` with `ModuleMain` in EFI boot sources and linker flags * Updated GDB and build scripts accordingly - Improved AHCI identify logic: * Added full 48-bit LBA extraction (words 100–102) * Fallback to 28-bit if LBA48 not supported * Refactored `drv_get_size` and `drv_std_detected` into separate `#ifdef __AHCI__` region - DiskImage framework improvements: * Namespaced API into `DI` namespace * Split implementation: `DiskImage+EPM.cc` and `DiskImage+NeFS.cc` * Updated CLI tool accordingly - KernelTest framework: * Namespaced macros and classes with `KT_` * Changed test result to use `MUST_PASS` and boolean return - Misc: * Corrected minor logic in `NetworkDevice::Name()` * Bumped down KernelKit and NewKit versions to 0.0.1 * Renamed `HalUtils.asm` → `HalUtilsAPI.asm` Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31Merge pull request #3 from amlel-el-mahrouss/devAmlal El Mahrouss
pr/general: a set of patches to be pushed into master.
2025-03-31firmware/netboot: final refactors regarding netboot.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31ahci: fix useless '#include "' which is also breaking nekernel's coding ↵Amlal El Mahrouss
standards.
2025-03-31ahci: a set of important patches of generic ahci driver.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31boot/efi: a set of important patches regarding efi bootz.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31Merge pull request #2 from amlel-el-mahrouss/devAmlal El Mahrouss
dev to master: mostly minor patches.
2025-03-31meta: better readme to introduce the kernel.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31meta: ran format.shAmlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31meta: update readme, made it clearer.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31docs: add mermaid directory, fix bad refactor in HeFS.h, and updatedAmlal El Mahrouss
OS_DESIGN.drawio Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31storage: unify naming for drive protocol interfaceAmlal El Mahrouss
Renamed `fDriveKind` to `fProtocol` across kernel storage subsystems to clarify its purpose as a protocol identifier (e.g., "AHCI", "ATA-") rather than a general "kind" classification. Updated all affected header and source files: - DriveMgr, HeFS, AHCI, ATADeviceInterface, and NeFS now consistently reference `fProtocol()` instead of `fDriveKind()`. - Added streaming operators (`<<`, `>>`) to AHCI and ATA device interfaces for improved mountpoint interaction. - Promoted `GetPortsImplemented()` and `SetPortsImplemented()` to public for AHCI device configuration. - Added null checks and protocol verification logic in stream operators. This refactor improves clarity and consistency when working with storage devices across the kernel. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31dev/user: user.sys shall be the main component which handles syscalls,Amlal El Mahrouss
as a DDK driver. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-03-31docs: fix: don't need to add another directory on top of docs/Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>