summaryrefslogtreecommitdiff
path: root/arch/i386/kernel/kmalloc.c
AgeCommit message (Collapse)Author
4 daysPROJECT RESTRUCTURINGDanny Holman
Move the entire kernel into its own directory. Create new directories for system commands, libraries and other required essentials for a complete Unix-like operating system. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-06-26arch: i386: kmalloc: fix last element being ignoredDanny Holman
Fix a bug in kmalloc in which the last element of the mem_block linked list would be ignored and potentially overwritten. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-06-25arch: i386: kmalloc: don't ignore the last blockDanny Holman
Fix a bug in which the kfree function would ignore the last mem_block struct. This allows the kernel to free a mem_block at the end of the linked list. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-05-29arch: i386: fix several bugs in paging subsystemDanny Holman
Fix several triple-faulting bugs in the paging initialization routines. These include causing a page fault during physical memory manager initialization, causing a page fault during paging initialization and other double-faulting and triple-faulting bugs. Signed-off-by: Danny Holman <dholman@gymli.org>
2024-03-28arch: i386: kernel: implement a kmalloc functionDanny Holman
Add a basic kmalloc implementation. This allows the kernel to allocate blocks smaller than a whole page. Signed-off-by: Danny Holman <dholman@gymli.org>