X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Finit.c;h=e2f6379b19a916ea305291bb119f075c626b4ccb;hb=8a7ceb40ba07ac4e537fdb1b6f33edbe40957e2e;hp=8ee50a2731b8730a2abef9caa4b88f747a8cce51;hpb=4ebf33908a571a7cde93fe618902b044e3633cdf;p=pintos-anon diff --git a/src/threads/init.c b/src/threads/init.c index 8ee50a2..e2f6379 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -196,7 +196,7 @@ paging_init (void) aka PDBR (page directory base register). This activates our new page tables immediately. See [IA32-v2a] "MOV--Move to/from Control Registers" and [IA32-v3] 3.7.5. */ - asm volatile ("mov %%cr3, %0" :: "r" (vtop (base_page_dir))); + asm volatile ("movl %0, %%cr3" :: "r" (vtop (base_page_dir))); } /* Breaks the kernel command line into words and returns them as