summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/src
AgeCommit message (Collapse)Author
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-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): Better UPS and interrupt system too.Amlal El Mahrouss
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-16feat(kernel/ap): Improved and fixed the AP boot flow, also made sure that ↵Amlal El Mahrouss
the segment loading for the long mode stub works. TODO: - Stack pointer shall be set when jumping to AP routine. 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/sched): fix overengineered and duplicate switch on ::RunAmlal El Mahrouss
method. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-15feat(kernel): improved scheduler and kernel main code.Amlal El Mahrouss
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-15feat(kernel): pushing the fixes regarding the scheduler, and working onAmlal El Mahrouss
making the LAPIC work correctly. 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-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-12dev(kernel:HeFS): fix warning in FileSystemParser file, and updated theAmlal El Mahrouss
specification document. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
2025-05-11dev(kernel:HeFS): Cleanup filesystem and AHCI driver.Amlal El Mahrouss
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-11feat(kernel): HeFS TeX specs have been updated, and cleaned up the official ↵Amlal
filesystem implementation, with a bootinfo.cfg being added too. why: - The LaTeX specs were outdated, some elements had to be reseen. also: - Removed useless part of the logger, for the panic message. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-11fix(dev): emergency patches.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-11dev(feat:kernel): Working Core Layer of HeFS (Write/Read)Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-10dev(kernel/HeFS): code cleanup, and improvements on the FS driver code.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-10dev(kernel): saving changes regarding HeFS, and also for the 0.0.2e2 release.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-10dev(kernel): feat: AHCI driver improvements against 'disk hangs', and HeFS ↵Amlal
has been improved with better traversal, and inode/ind allocation. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-09dev(kernel, tooling): better code quality inside the codebase and more ↵Amlal
checks inside the kernel, and cli. also: - make use _NeMain for the mk_fwrk tool. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-08meta(kernel): saving changes to avoid loss.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-08feat(tooling): update HeFS headers, and better HeFS tooling.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-07feat(kernel): HeFS fixes, AHCI improvements, and MBCI tweaks.Amlal
why? - Some parts were causing issues on the filesystem. - The slot probe code was naive. - Made the current MBCI implementation clearer. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-07feat(modules/MBCI): Finalize MBCI base module.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-06dev(kernel): Fix typo of `kHeFSDefaultVoluneName` to ↵Amlal El Mahrouss
`kHeFSDefaultVolumeName` in HeFS.
2025-05-06feat(HeFS): Filesystem fixes and optimizations.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-06feat(kernel/HeFS): move sz_out out of the loop, to avoid it being reset.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-06dev(fix): Use VEPM in DriveMgr, to avoid unformatted disk error.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-06feat(kernel): Working on the last parts of HeFS V1, which will act as the ↵Amlal
base layer of the filesystem. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-05feat(kernel): new HeFS version, scheduler allocation tree improvements and ↵0.0.2e1Amlal
reintroduce VEPM. why? - The extents structure on HeFS has to be clearer. - The allocation tracker group has to be organized according to pointer size. - VEPM was scraped because HeFS took time, so now I can focus on it now. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-05feat(kernel): add .filetest to check if filesystem works correctly.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-05feat(kernel): remove usage of `left` inside `hefsi_rotate_tree`Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-05fs:HeFS: Filesystem fixes.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-05feat(HeFS): Improving implementation and its quirks.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-05kernel(feat): fix compilation error casued by the previous commit being too ↵Amlal
'clever' Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-04feat(cleanup): cleanup codebase.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/filesystem): update HeFS's FNV algorithm to 64-bit.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-04feat(filesystem): Update HeFS implementation and specifications.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-03FS:HeFS: document hefsi_hash_64.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-03Remove accidental add of HeFS+TreeParser.ccAmlal
2025-05-03kernel: HeFS: breaking changes — major refactor of Index Node Directory layoutAmlal
Why: - Enables efficient allocation of nested paths like '/boot/pagefile.sys' without pre-creating parent paths manually. - Reduces disk space waste by avoiding placeholder or stub directories. - Faster and cleaner: avoids expensive Utf8Char* traversal and comparison at runtime. - Prepares the filesystem for structural hashing and future journaling. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-02kernel: HeFS: disk security improvements and new CreateFile and DeleteFile ↵0.0.2Amlal
method on FSParser class. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-02kernel, FS: Mostly patches regarding NeFS's formating and disk write ↵Amlal
implementation. Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-02kernel: tex: Update spec docs.Amlal
Signed-off-by: Amlal <amlal@nekernel.org>
2025-05-02kernel, fskit: HeFS: Worked on IND allocation and added removal support.Amlal
notice: - parent_dir_fmt has to be formated to take care of subdirs. Signed-off-by: Amlal <amlal@nekernel.org>