X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Floader.S;h=5a8eacde275eeab9017b69385987193567d77694;hb=e16cf23bd993de3726287f9920efa8f667232423;hp=8e5eeb722e1051c7b94df7f3b7ff1ce8f8b51268;hpb=9cc8ba53f694dd7e2c2255e0caaa264bfa39a6fa;p=pintos-anon diff --git a/src/threads/loader.S b/src/threads/loader.S index 8e5eeb7..5a8eacd 100644 --- a/src/threads/loader.S +++ b/src/threads/loader.S @@ -12,6 +12,11 @@ # first byte of the kernel, where start.S is linked. ############################################################################## +/* Flags in control register 0 */ +#define CR0_PE 0x00000001 /* Protection Enable. */ +#define CR0_EM 0x00000004 /* (Floating-point) Emulation. */ +#define CR0_PG 0x80000000 /* Paging. */ + .globl start # Entry point start: .code16 # This runs in real mode cli # Disable interrupts