Revert Intel-style assembly back to AT&T-style.
[pintos-anon] / src / threads / init.c
index 8ee50a2731b8730a2abef9caa4b88f747a8cce51..e2f6379b19a916ea305291bb119f075c626b4ccb 100644 (file)
@@ -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