X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Fexception.c;h=dcfccb85f998da6b5e584da19b891819dc7f776f;hb=18654de05aa2c2fa2cc63e2c9c30b9dc536a33d7;hp=745adaa086e4614245748ddd3cbc6c6262b1f5de;hpb=e6e58461d3040e76e501a9dc9d4b38c5c825dc9c;p=pintos-anon diff --git a/src/userprog/exception.c b/src/userprog/exception.c index 745adaa..dcfccb8 100644 --- a/src/userprog/exception.c +++ b/src/userprog/exception.c @@ -136,7 +136,7 @@ page_fault (struct intr_frame *f) See [IA32-v2a] "MOV--Move to/from Control Registers" and [IA32-v3] 5.14 "Interrupt 14--Page Fault Exception (#PF)". */ - asm ("movl %%cr2, %0" : "=r" (fault_addr)); + asm ("mov %0, %%cr2" : "=r" (fault_addr)); /* Turn interrupts back on (they were only off so that we could be assured of reading CR2 before it changed). */