X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fthreads%2Finit.c;h=c17316aa59efec1951ad48eed5c8e4522a3e0381;hp=cf7a896222a5e2370b8f03827fda4fbaf9c8d4c1;hb=7d4e3dda080a47db88616f1c0d975f2091be47f1;hpb=4aeb9609c112151614e95acc08e2a088a86fe8f4 diff --git a/src/threads/init.c b/src/threads/init.c index cf7a896..c17316a 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -194,7 +194,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 ("movl %0,%%cr3" :: "r" (vtop (base_page_dir))); + asm volatile ("mov %%cr3, %0" :: "r" (vtop (base_page_dir))); } /* Parses the command line. */