fix: start frame allocator after kernel code
This commit is contained in:
@ -30,7 +30,8 @@ void *alloc_frame(void)
|
||||
int free_frame(void *frame_ptr)
|
||||
{
|
||||
struct frame_zone *it = head;
|
||||
while (it && (frame_ptr < it->addr || frame_ptr >= it->addr + it->len))
|
||||
while (it && (frame_ptr < it->addr ||
|
||||
frame_ptr >= it->addr + it->total_frames * PAGE_SIZE))
|
||||
it = it->next;
|
||||
|
||||
uint32_t index = ((frame_ptr - it->addr) / PAGE_SIZE);
|
||||
|
Reference in New Issue
Block a user