summaryrefslogtreecommitdiff
path: root/arch/i386/kernel/kmalloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* arch: i386: kmalloc: fix last element being ignoredDanny Holman2024-06-261-8/+7
| | | | | | | 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>
* arch: i386: kmalloc: don't ignore the last blockDanny Holman2024-06-251-9/+13
| | | | | | | | 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>
* arch: i386: fix several bugs in paging subsystemDanny Holman2024-05-291-2/+1
| | | | | | | | | 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>
* arch: i386: kernel: implement a kmalloc functionDanny Holman2024-03-281-0/+66
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>