X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Floader.h;fp=src%2Fthreads%2Floader.h;h=6ae2856fc827651c3056baf9d639fba2e6b3f71d;hb=8063d8f3b3a778e9a15eff66dfd1b08652bae523;hp=8bd603fdfd899cceb8ae4cbe22ddf06791993d24;hpb=8c943ff5ffb0121878d1866e56905b9e8be5d95c;p=pintos-anon diff --git a/src/threads/loader.h b/src/threads/loader.h index 8bd603f..6ae2856 100644 --- a/src/threads/loader.h +++ b/src/threads/loader.h @@ -3,7 +3,7 @@ /* Constants fixed by the PC BIOS. */ #define LOADER_BASE 0x7c00 /* Physical address of loader's base. */ -#define LOADER_SIZE 0x200 /* Loader size in bytes (one disk sector). */ +#define LOADER_END 0x7e00 /* Physical address of end of loader. */ /* Physical address of kernel base. */ #define LOADER_KERN_BASE 0x100000 /* 1 MB. */ @@ -18,7 +18,7 @@ #define LOADER_PHYS_BASE 0xc0000000 /* 3 GB. */ /* Offsets within the loader. */ -#define LOADER_BIOS_SIG (LOADER_SIZE - 2) /* aa55 BIOS signature. */ +#define LOADER_BIOS_SIG (LOADER_END - 2) /* 0xaa55 BIOS signature. */ #define LOADER_CMD_LINE (LOADER_BIOS_SIG - 0x80) /* Kernel command line. */ #define LOADER_RAM_PAGES (LOADER_CMD_LINE - 4) /* # of pages of RAM. */