no more PF in kmain, but still PF in process OR corruption of fb

This commit is contained in:
2026-03-05 08:08:50 +01:00
parent a7d9e70a61
commit b9f55d89f6
10 changed files with 88 additions and 74 deletions

View File

@@ -14,13 +14,15 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
struct heap_block_t
{
size_t size;
bool free;
bool free; // 1byte
uint8_t reserved[7]; // (7+1 = 8 bytes)
struct heap_block_t* next;
};
} __attribute__((aligned(16)));
void kheap_init();
void* kmalloc(size_t size);