diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-15 16:10:22 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-15 16:11:38 +0100 |
commit | 2298d17186cb0e58a96d285384de431902da9b1e (patch) | |
tree | 635d642931d9f55e701639ee3b3707e0e28a805e /stage3/heap.c | |
parent | 8a25a2935a60e65fcb3e2b715bada858f5fcd6a2 (diff) | |
download | cuddles-2298d17186cb0e58a96d285384de431902da9b1e.tar.xz |
big chungus
* fix a heap corruption bug
* add qemu support
* add an ATA driver
* add an USTAR read-only file system
* boot from disk instead of floppy
* font rendering
* image rendering
* PCI enumeration
* init script
Diffstat (limited to 'stage3/heap.c')
-rw-r--r-- | stage3/heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage3/heap.c b/stage3/heap.c index 2909ba7..dd1b23a 100644 --- a/stage3/heap.c +++ b/stage3/heap.c @@ -46,7 +46,7 @@ void *try_malloc(usize size) prev->next = h->next; } else { // split - h->size -= size; + h->size -= size + sizeof(Header); h = ((void *) h) + sizeof(Header) + h->size; h->size = size; } |