X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fthread.c;h=01ce7d33227a19196762199f3c349bab4890b688;hb=e5c7df720147528ab310fe5ac983cc5115b998da;hp=0a606b76d19dc4374fd84566e9bf9d861d346caa;hpb=f0ad7eb8b43516c7a2999fd217ec85d954dfc791;p=pintos-anon diff --git a/src/threads/thread.c b/src/threads/thread.c index 0a606b7..01ce7d3 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -312,7 +312,7 @@ running_thread (void) down to the start of a page. Because `struct thread' is always at the beginning of a page and the stack pointer is somewhere in the middle, this locates the curent thread. */ - asm ("movl %%esp, %0\n" : "=g" (esp)); + asm ("mov %0, %%esp" : "=g" (esp)); return pg_round_down (esp); }