summaryrefslogtreecommitdiff
path: root/na/kernel/sync/spinlock.cc
Commit message (Collapse)AuthorAgeFilesLines
* refactor: promote new architecture to repository rootRichard Qin2026-07-101-120/+0
| | | | Archive the deprecated implementation under lume-legacy, make the new kernel the default root-level build, and update repository entry points without changing kernel behavior.
* feat: establish bootable new architecture checkpointRichard Qin2026-07-101-1/+10
| | | | Replace the compressed boot path with a relocatable higher-half RISC-V entry, expand memory and SMP support, and add the driver, TTY, VFS, exec, signal, syscall, initramfs, and self-test infrastructure needed for a bootable kernel checkpoint.
* feat: replace panic.h with klog.h for improved logging in multiple filesRichard Qin2026-05-021-1/+1
|
* feat: refactor Spinlock implementation to use atomic operations for lock ↵Richard Qin2026-04-211-5/+5
| | | | management
* feat: add initial RISC-V architecture support and core kernel functionalityRichard Qin2026-04-171-0/+111
- Implement MMU hardware primitives for RISC-V SV39 in mmu.h - Create trap vector control primitives in trap.h - Define trap frame structure for RISC-V in trapframe.h - Add assembly routines for context switching in swtch.S - Implement trap vector entry/exit in trap_vector.S - Introduce basic error number definitions in errno.h - Provide placement new/delete operators in new.h - Define kernel panic handler in panic.h and implement in panic.cc - Establish basic type definitions in types.h - Create the kernel main entry point in main.cc with global initialization - Add synchronization primitives using spinlocks in spinlock.h and spinlock.cc - Define per-CPU state tracking for interrupts in cpu_state.h - Create a linker script for the kernel in linker.ld - Update module makefiles for kernel and library components