mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-05-12 11:06:28 +08:00
my solution to lab5
This commit is contained in:
@@ -84,6 +84,8 @@ static void check_page_installed_pgdir(void);
|
||||
// If we're out of memory, boot_alloc should panic.
|
||||
// This function may ONLY be used during initialization,
|
||||
// before the page_free_list list has been set up.
|
||||
// Note that when this function is called, we are still using entry_pgdir,
|
||||
// which only maps the first 4MB of physical memory.
|
||||
static void *
|
||||
boot_alloc(uint32_t n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user