summaryrefslogtreecommitdiff
path: root/na/lib
Commit message (Collapse)AuthorAgeFilesLines
* feat: add printk and vprintk functions with Linux-style log level parsingRichard Qin2026-05-131-0/+50
|
* feat: add LZ4 decompressor implementation and update linker scriptRichard Qin2026-05-131-0/+77
|
* feat: enhance KASLR support with early seed metadata and validation checksRichard Qin2026-05-031-1/+37
| | | | Co-authored-by: Copilot <copilot@github.com>
* feat: implement hardware random number generation and early PRNG initializationRichard Qin2026-05-021-0/+116
|
* feat: replace panic.h with klog.h for improved logging in multiple filesRichard Qin2026-05-021-1/+1
|
* feat: implement kernel logging and formatted output subsystemsRichard Qin2026-05-023-34/+586
|
* feat: add tiny printf implementation for embedded systemsRichard Qin2026-05-022-0/+1043
|
* feat: add minimal C++ ABI stubs for freestanding kernelRichard Qin2026-04-212-14/+39
|
* feat: add basic implementation and enhanced operations of red-black tree ↵Richard Qin2026-04-211-0/+596
| | | | from Linux kernel source
* feat: add string manipulation functions derived from musl libcRichard Qin2026-04-2149-0/+2400
| | | | | | | | | | | | | | This commit introduces a variety of string manipulation functions, including: - `memmem`: Searches for a substring in a memory area. - `memmove`: Safely copies memory areas, handling overlaps. - `mempcpy`: Copies memory and returns a pointer to the end of the destination. - `memrchr`: Finds the last occurrence of a character in a memory area. - `memset`: Fills a memory area with a specified value. - `rindex`: Returns the last occurrence of a character in a string. - `stpcpy` and `stpncpy`: Copies strings and returns a pointer to the end. - `strcat`, `strchr`, `strcspn`, `strlcat`, `strlcpy`, `strlen`, `strncat`, `strncmp`, `strncpy`, `strnlen`, `strpbrk`, `strrchr`, `strstr`, `strtok`, and `strtok_r`: Various string manipulation functions for concatenation, searching, and tokenization. Assembly implementations for `memcpy`, `memmove`, and `memset` are also included for optimized performance on x86_64 architectures.
* feat: Update Makefile and module.mk files to include additional source files ↵Richard Qin2026-04-211-0/+35
| | | | and improve build process
* feat: add initial RISC-V architecture support and core kernel functionalityRichard Qin2026-04-172-0/+48
- 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