X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=blobdiff_plain;f=src%2Fuserprog%2Fprocess.c;h=b9a199e64063f395924b535bfc545b4207cb4e4a;hp=90ff18b14ddaae54563ee7d53d6c0cef538fe5aa;hb=7d4e3dda080a47db88616f1c0d975f2091be47f1;hpb=4aeb9609c112151614e95acc08e2a088a86fe8f4 diff --git a/src/userprog/process.c b/src/userprog/process.c index 90ff18b..b9a199e 100644 --- a/src/userprog/process.c +++ b/src/userprog/process.c @@ -75,10 +75,7 @@ execute_thread (void *filename_) 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 ("mov %0, %%esp\n" - "jmp intr_exit\n" - : /* no outputs */ - : "g" (&if_)); + asm ("mov %%esp, %0; jmp intr_exit" :: "g" (&if_)); NOT_REACHED (); }