more userlaand stuff

This commit is contained in:
2026-06-17 18:16:47 -05:00
parent 0cb7311911
commit 7d34fbbd02
11 changed files with 116 additions and 13 deletions

View File

@@ -25,7 +25,7 @@ static uint8_t memory_bitmap[BITMAP_SIZE];
static void mark_free(uint32_t addr) {
uint32_t page_index = addr / PAGE_SIZE;
uint32_t byte_index = page_index / 8;
uint32_t byte_index = page_index / 8;
uint32_t bit_index = page_index % 8;
memory_bitmap[byte_index] &= ~(1 << bit_index);
}