X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fuserprog%2Fprocess.c;h=675dc254af3db38cfea22ec26d77250aeb9206a9;hb=8c839323e2f1c3f6243cdc49ceffed7483368447;hp=bece1fe95cc990c2e8313bf8481ed0b1e7136f52;hpb=c0206643b024b6f0e6cde1cbb5e7d37abbc84c69;p=pintos-anon diff --git a/src/userprog/process.c b/src/userprog/process.c index bece1fe..675dc25 100644 --- a/src/userprog/process.c +++ b/src/userprog/process.c @@ -72,7 +72,7 @@ execute_thread (void *file_name_) arguments on the stack in the form of a `struct intr_frame', we just point the stack pointer (%esp) to our stack frame and jump to it. */ - asm ("movl %0, %%esp; jmp intr_exit" :: "g" (&if_)); + asm volatile ("movl %0, %%esp; jmp intr_exit" : : "g" (&if_) : "memory"); NOT_REACHED (); }