summaryrefslogtreecommitdiffhomepage
path: root/dev
AgeCommit message (Collapse)Author
2025-03-20NetBoot.h: Rename NetBootInternetHeader to NETBOOT_INTERNET_HEADER.Amlal El Mahrouss
2025-03-20AXP: Remove unprofessional readme(s).Amlal El Mahrouss
2025-03-20AHCI-Generic.cc: Disk Driver builtin improvements.Amlal El Mahrouss
- Poll for CR in ahci_enable_and_probe. - Init NeFS, not an AHCI device for portability. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-20CI: Update Makefile and CI step.Amlal El Mahrouss
2025-03-20Use a generic gcc for the CI.Amlal El Mahrouss
2025-03-20Add CI makefile.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-20Tweak Build Makefile for SCI.Amlal El Mahrouss
2025-03-20BootKit.h: Documentation improvements to BDiskFormatFactory.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-20BootKit.h: Better logging of the new partition's block.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-20BootKit.h: refactor BDiskFormatFactory class.Amlal El Mahrouss
- Make use of BFileDescriptor to provide a single file, or a bunch of them. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-20Boot: Remove its useless ReadMe.Amlal El Mahrouss
2025-03-20DMA.cc: Use UInt32 instead of UIntPtr for the offset.Amlal El Mahrouss
2025-03-19Replace BSD-3 with GPL 3.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-19refactor(kernel): Standardize DMA and AHCI interfaces and enhance GIC handlingAmlal El Mahrouss
- Replace ambiguous WordLength templates with DataKind in `ke_dma_read/write`. - Streamline AHCI driver initialization by directly assigning port implementations. - Rename AHCI methods for clarity (`SetPi` → `SetPortsImplemented`). - Standardize MMIO access by replacing `hal_mmio_read/write` with unified `ke_dma_read/write`. - Improve GIC interrupt handler on ARM64 by explicitly handling scheduler interrupts and ensuring interrupts are ended correctly. - Add debug breakpoint in infinite loop within AP setup for improved debugging. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-19AHCI+Generic.cc: Remove redundant drv_compute_disk_ahci call.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-19HalKernelMain: Better names for rdtsc related variables.Amlal El Mahrouss
2025-03-19BootEFI.cc: Document NVRAM attributes.Amlal El Mahrouss
HalKernelMain.cc: Use the correct term for the scheduler init function.
2025-03-19ADD: AHCI+Generic.cc: ahci_enable_and_probe has been added to apply theAmlal El Mahrouss
DRY principle on drv_std_init_ahci. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-19AHCI+Generic.cc: Remove unused variable 'kAHCICommandIssued'Amlal El Mahrouss
2025-03-18AHCI+Generic.cc: Don't mix Drive and Disk, when logging metadata.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-18feat(AHCI, HAL): Improve AHCI error handling & optimize HAL initializationAmlal El Mahrouss
- Refactored `sk_acquire_ahci_device(Int32 drv_index)` to return `ErrorOr<AHCIDeviceInterface>` for proper error handling instead of returning a raw object. - Moved `sk_init_ahci_device(BOOL atapi)` into the `NeOS` namespace for better encapsulation. - Reduced `HbaMem::Ports` array size from `Ports[32]` to `Ports[1]` to optimize memory usage for single-port AHCI controllers. - Removed manual constructor initialization (`__CTOR_LIST__`, `__DTOR_LIST__`) from HAL, simplifying kernel startup. - Updated `hal_real_init()` to initialize AHCI storage (`sk_init_ahci_device(NO)`) before userland execution. - Refactored `hal_get_phys_address(void* virtual_address)` to use `VoidPtr` for type safety. - Fixed incorrect buffer size (`kSzIdent`) in AHCI driver initialization from `kib_cast(1)` to `512`, ensuring correct sector identification. - Removed redundant drive model string parsing logic. - Refactored AHCI PRD iteration loop to use `prd_i` instead of `i`, improving readability. - Optimized `drv_std_input_output` by simplifying wait loop logic. Overall, this commit improves AHCI error handling, reduces redundant initialization, optimizes memory usage, and cleans up HAL and storage code. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-17TWEAK: Remove extra useless includes in HalKernelMain.ccAmlal El Mahrouss
2025-03-17ADD: Lift manadatory subsystem id on PE32+ kernel image, benchmarkingAmlal El Mahrouss
code too (Still WIP) Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-17META: Made build much more faster (34.4% speed improvement)Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-17IPCMsg.cc: DOC: Better documentation of IPC_MSG::Pass.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-17META: Ran run_format.shAmlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-17IPCMsg.cc: FIX: IPC_MSG::Pass: Fix method algorithm.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-17Atom.h Add space between operator[] and operator|.Amlal El Mahrouss
2025-03-16Semaphore.h: Add Type.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-16ADD: BinaryMutex class, and reworking Semaphore class.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-16Variant: Add ::Kind method.Amlal El Mahrouss
2025-03-16AHCI: FIX: Place det || ipm condition before checking for ATAPI/SATA.Amlal El Mahrouss
AHCI: Finish .drawio design of AHCI driver. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-16AHCI+Generic.cc: Remove duplicate Cmd (FIS recv enable + Start Command tbl)Amlal El Mahrouss
2025-03-16AHCI.cc: FIX: Avoid looking on DMA directly.Amlal El Mahrouss
2025-03-16AHCI+Generic.cc: Fix formula for kSATASectorCount.Amlal El Mahrouss
2025-03-16KString.cc: Use this-> in code.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-16FIX: IPEFDylibObject.cc: delete dll_Obj->Get() too, when fBlob is NULL.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-15Refactor critical functions in MemoryMgr.ccAmlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-15KernelMain.cc: Remove Auto Format code.Amlal El Mahrouss
2025-03-15Kernel: Networking code tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14TQ-24 && TQ-16: Add build scripts for MBCI, MBCI+Flash, and UFS.Amlal El Mahrouss
META: Along other tweaks and important ARM64 patches. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14Kernel: Patch UserProcess::Delete, and AHCI identify command.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14NeFS.cc: better error handling.Amlal El Mahrouss
2025-03-14AHCI: Important tweaks.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14BootEFI.cc: Enable Auto format code again.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14NeFS.cc: Fix broken driver bug.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14DriveMgr.cc: Avoid kernel panic on DriveMgr.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-14AHCI.cc: Check Is for an HBA error.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-13TQ-23: Patch source code and leaving it for now.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
2025-03-13LibWM: Remove Symbols.hAmlal El Mahrouss