X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Floader.h;h=8bd603fdfd899cceb8ae4cbe22ddf06791993d24;hb=b0fe71a5ccef1c166bc3aefd6ea2cef5f4b2fe46;hp=2aebb0f8f3a07965bd8690c7bfc7cb81b5f3656c;hpb=9b16dc8bd3273cb0f88e5410e42eb886b8da992a;p=pintos-anon diff --git a/src/threads/loader.h b/src/threads/loader.h index 2aebb0f..8bd603f 100644 --- a/src/threads/loader.h +++ b/src/threads/loader.h @@ -8,11 +8,14 @@ /* Physical address of kernel base. */ #define LOADER_KERN_BASE 0x100000 /* 1 MB. */ -/* The loader maps 4 MB of the start of physical memory to this - virtual base address. Later, the kernel adds the rest of - physical memory to the mapping. +/* Kernel virtual address at which all physical memory is mapped. + + The loader maps the 4 MB at the bottom of physical memory to + this virtual base address. Later, paging_init() adds the rest + of physical memory to the mapping. + This must be aligned on a 4 MB boundary. */ -#define LOADER_PHYS_BASE 0xb0000000 /* 3 GB. */ +#define LOADER_PHYS_BASE 0xc0000000 /* 3 GB. */ /* Offsets within the loader. */ #define LOADER_BIOS_SIG (LOADER_SIZE - 2) /* aa55 BIOS signature. */