summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/KernelKit
AgeCommit message (Collapse)Author
2025-05-27feat: generic_kits: Add X64Chrono inside BenchKit.Amlal El Mahrouss
refactor: libSystem: Refactored as a whole. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-27feat: Assign ThreadID to APIC's ProcessID when initialzing APs.Amlal El Mahrouss
refactor: Cleanup copyright headers and source code. feat: Add PrinterNetworkDevice, and DBGNetworkDevice. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-27refactor: rename mm_make_ptr_flags to mm_set_ptr_flags.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-26feat!: Add IFS layer within DriveMgr, and IFS API.Amlal El Mahrouss
also: - Use ThreadID in AP system. - Refactor kernel according to new IFS layer. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-25kernel!: lots of changes, see commit details.Amlal El Mahrouss
refactor(hal): unify file naming and drop redundant architecture suffixes feat(build): rename kernel and bootloader to 'ne_kernel' and 'ne_bootz' refactor(memory): replace mm_get_phys_address with mm_get_page_addr feat(bitmap): track bitmap allocator usage and add out-of-memory error fix(heap): correct heap magic naming and alignment logic chore(fs): downgrade HeFS disk size check to warning chore(tools): clean up formatting in 'ping' and 'manual' docs(design): update OS_DESIGN.drawio to reflect Hypr86 and new layout Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-24feat(ZXD): Update file format.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-24feat(kernel): Better syscall routing, also added new tools.Amlal El Mahrouss
what: - ping, manual have been added. - Rework RtlCurrentPID to SchedGetCurrentProcessID. - Cleanup codebase overall. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23feat(kernel/libSystem): Lots of improvements, see below.Amlal El Mahrouss
what: - Reworked NetworkDevice. - Reworked RTL8139 driver. - Don't assert fCleanup on NetworkDevice destructor. - Add new Ref types in libSystem. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23refactor(kernel): Refactor HeapMgr functions.Amlal El Mahrouss
what: - mm_new_ptr is now mm_alloc_ptr. - mm_delete_ptr is now mm_free_ptr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23feat!(Kernel): Improvements on the BitMapMgr, HTS, and UPS.Amlal El Mahrouss
other: - Add ZXD header file. - Reworking AMD64 interrupts. - Improved HTS's design implementation. - Improved UPS's balancing implementation. breaking changes: - Rename MemoryMgr to HeapMgr. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-23feat!(kernel): Rename NewKit to NeKit.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-21feat(kernel): Architectural changes, and introducing a kKernelVM.Amlal El Mahrouss
see code for more details. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-21feat(kernel): source code improvements.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-19feat(kernel, sched): Architectural improvements, and cleaned upAmlal El Mahrouss
the codebase from previous implementations that didn't work/scale well. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-18feat(sched_desgin): better architecture for the HTS.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-18dev(sched): Improvements and work in progress fixes.Amlal El Mahrouss
what? - The main algorithm got improved for real time tasks, and SMP usage. - The SMP usage was present before, I just reintroduced it after realizing that it won't scale well from what I have right now. - Also removed weird implementations quirks from previous sketch. - Such as the core 0 being reserved for the boot core. - Also moved FS init code after IDT initalization. - To avoid weird FS format behavior. - Wrap HPET signature in a macro. next? - Work on the HAL's userspace transition mechanism. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-18feat(kernel{sched/hal}): int 3 if something is wrong in `sched_jump_to_task`Amlal El Mahrouss
why: - After the image's entry is done, and no exit is called. also: - Added sched_idle_task to CPS's API. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-17feat(kernel): don't schedule process when it's under signals such as:Amlal El Mahrouss
ABRT, KILL, TRAP. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-16feat(kernel): User doesn't store the password directly anymore, it is hashedAmlal El Mahrouss
under a 64-bit FNV algorithm. why? - Better security, so that we're sure that no one else knows about the password. also: - Rename super to MGMT (Management), as it manages a NeKernel machine. - Added a copy of cxxdrv in the nekernel source tree. - Working on the custom manual parser for NeKernel. (PoC) Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-15feat(kernel/sched): fixes and improvements on the scheduler'sAmlal El Mahrouss
implementation. why? - The previous one wasn't entierly correct on some parts. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-15feat(kernel): Finalizing the first version of the user scheduler.Amlal El Mahrouss
other: - Removed DmaPool into its own Kit. - ApplicationProcessor unit has been cleaned up. - Rename functions of MemoryMgr. - Use KIB instead of MIBs of stack. - Cleanup parts of the scheduler, and hw scheduler. - Use UD handler for INT 6. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-14feat(kernel): Filesystem fixes, and others.Amlal El Mahrouss
what? - Add simple generic RTL8139 NIC driver, to be used within a NK device. - Update IVT accordingly. - Comment ARM's AP GIC init function, to tell what it's actually doing. - Cleanup Kernel Main, removed the useless pre_init_scheduler function. - Prepare new FileMgr with HeFileSystemMgr. - Fallback to NeFS when trying to format a fileysstem. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-14feat(kernel): Set SubSystem according to TASK/PROCESS structure.Amlal El Mahrouss
also: - Introduce the KernelTaskScheduler soon. - Reintroduce ZXD binaries for signed drivers. - Made the arguments name inside kernel spawn function inside CodeMgr clearer. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-13feat(kernel): expand KDBG packet structure, and prefix hexadecimalAmlal El Mahrouss
numbers with 0x100, instead of 100h. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-13feat(kernel): see below for the commit's details.Amlal El Mahrouss
what? - UserProcessScheduler and CoreProcessScheduler have been extended for FILE_TREE and also HEAP_TREE structures. - DDK device's API will use dk_ calls instead of sk_ calls. - SIGTRAP and Interrupt handlers have been fixed to handle when no process is being run, and the kernel is instead raising the interrupt. - Add file for HeFS formating in DiskImage.fwrk - Replace generic handler with breakpoint handler in int 3. why? - These changes are bug fixes and improvements. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-12feat: sched, tooling: improving and laying foundations for the futureAmlal El Mahrouss
milestones and objectives, such as: driver loading (ifs.sys, ddk.sys, user.sys), and better tooling for application development. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-11feat(kernel/hefs): Fixed the shortcomings and issues of HeFS.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-08meta(kernel): saving changes to avoid loss.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-04meta(format.sh): format codebase.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-04feat(kernel): update core scheduler enums.Amlal
why? - to avoid clashes with other values in memory. why? (regarding previous commit on HeFS) - faster lookups and the name being not shown clearly on disk is a plus. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-01kernel: mmap the blob to VMAddress in PEFCodeMgr, alongside other fixes ↵Amlal
regarding memory leaks. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-01dev, kernel: HeFS spec and tooling, and PEF spec updates.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-30kernel, sched: worked on a pending ticket (process rebalancing)Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-29dev(kernel, HeFS): reworking filesystem to find an hybrid solution regarding ↵Amlal
memory footprint (unstable changes) Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-29kernel: Figuring out the EPM header bug; where it gets duplicated when ↵Amlal
writing an IND. (HeFS) Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-28dev, kernel: HeFS, Tooling: reworked the mkfs.hefs tool for the new filesystem.Amlal
other/related: - Add new KPC codes. - Final refactors for HeFS's Format method. - Dma pool improvements. - Better standard disk I/O names. - Add mm_memory_fence function inside HalPagingMgrAMD64.cc Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-27dev, kernel: refactor and improve parts of the kernel, related to I/OAmlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-27dev: fixes and improvements, codebase formating too.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-26dev, kernel and user: codebase additions and work in progress 'tactical pause'Amlal
why? - HeFS's Formating needs some thought before being layed out, that's the kind of thing that bites hard in the ass. - Alongside those changes I improved parts of the kernel too. Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-26dev, kernel: add kernel on when the traversal hits 0 (it should never happen)Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-26dev, kernel: saving work in progress code regarding scheduler and filesystem.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-25dev, kernel: improve nefs format method, hefs format method.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-25dev: compiler error fixes.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-25dev: better .clang-format, ran format command.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-25dev, kernel: debug protocol tweaks.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-25dev, kernel: fix kDebugTypeLen, made it inline to avoid linker errors.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-24dev, kernel: scheduler: fully implement traversal and cleanup.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-24dev, kernel: scheduler and heap related work.Amlal
- Replacing USER_HEAP_LIST with HEAP_HEAP_TREE. - Reworked Signal struct. - Add Team spinner inside ARM64 HAL too. Signed-off-by: Amlal <amlal@nekernel.org>
2025-04-24dev, kernel: scheduler, timer: hw timer and scheduler improvements.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-04-24dev, tooling: Improve the tools and frameworks on userspace.Amlal El Mahrouss
Details: - See commit details for more. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>