r/u_bindoLenz • u/bindoLenz • 1d ago
BRAINIXKERNEL HAS BEEN UPDATED!
Once again, I welcome you all to the r/OSDev and r/kernel community!
About the update
Today, finally, after a painful month, I released an update where I set a clear foundation. Exactly:
1. The basis of SMP: Added AArch64 spinlock primitives, per-CPU status, and protection of shared scheduler and page allocator data.
2. Launching additional CPUs: The PSCL bring-up of secondary cores and local AP initialization are configured. Currently, the AP remains parked: the launch of tasks on them has not yet been enabled, so stage 1 (SMP) itself has not yet been completed. If you are interested, you can find them in the repository along the way: src/smp.c and src/sched.c.
3. Scheduler and memory stability: Added task ownership checks between the CPU and a multithreaded stress test of the physical page allocator in tests/physmem_test.c.
4. Capability-infrastructure: The basic capability space structure and initial integration of capabilities into tasks and IPC/VFS have been added.
5. Network and devices: A modular E1000 driver and an Ethernet layer have been added; checks of incoming VirtIO network packets, as well as VirtIO Block and GPU completions, have been strengthened.
6. Graphics stability: Fixed the issue with ghosting windows and added a basic theme system.
7. Assembly and documentation: In README.md The stages of development and assembly for Windows via WSL2 and Android via Termux + Termux are described.:X11. The QEMU parameters are configured in the Makefile; the host tests have been fixed and are passing.
8. License: The root license of the project has been changed from GPL-2.0 to MIT – LICENSE.
Upcoming plans
If I managed to release some of the SMP basics earlier, this does not mean that I will release the rest. Oh, yes, regarding the other SIX plans (including incomplete SMP).
1. SMP: Everything is clear with stage 1, I have already talked about it even in my GitHub repository (https://github.com/Bindo-Lenzini/BrainixKernel).
2. Security Framework: Capability-based Security:
• The transition of classic rights (root/UID) to a system of strict access tokens (Capability).
• Create tables of rights (CSpace) for each process.
• Revocation mechanism with an inheritance tree.
3. Isolation: Drivers in User-Space:
• Transferring drivers (e1000 network, graphics card) from the kernel to user space.
• Interrupt forwarding and direct memory access (MMIO/DMA) via security tokens.
• Linking an isolated driver to the network stack.
4. Fault Tolerance: Reincarnation Server:
• Interception of driver crashes without invoking Kernel Panic.
• A special system service ("Reincarnation Server") that monitors the processes (Heartbeat).
• Instant restart of the dropped components with new access rights (seamless system recovery).
5. Cryptography: Isolated Containers:
• Using ARM64 hardware acceleration (AES, SHA) for encryption.
• Creating a "Key Vault", which can only be accessed using strictly defined tokens (keys never leave the protected area).
6. Absolute speed or "Transparent Engine":
• Switching to shared memory (Zero-Copy) for communication between processes and drivers.
• Allocating a separate processor core for continuous polling without context switching.
• Built-in real-time telemetry (live map of the core operation).
Basically, that's all for now, because I simply don't have any other plans or ideas. And there's no point in coming up with anything else at the moment, because there's a risk that I'll just burn out.
I repeat!
If you are interested in this project, feel free to criticize, suggest ideas for improving BrainixKernel, create Pull Requests or become a participant. I am only pleased with your confidence, courage and commitment to pragmatism!
P.S. In advance, happy New Year 2027 to all of you! It's not clear how long I'll be gone now, is it?)
~ bindoLenz
:b