X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Ftests%2Fuserprog%2Fsc-boundary.c;h=28525684d9676c70c4913ef2a4d8c513d2f44009;hb=7c40a20ad1cfcf4db3e5b93dd30654f6fdc1ef73;hp=10340b43f175e929797a15d14bbf2c249c38f3dc;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/tests/userprog/sc-boundary.c b/src/tests/userprog/sc-boundary.c index 10340b4..2852568 100644 --- a/src/tests/userprog/sc-boundary.c +++ b/src/tests/userprog/sc-boundary.c @@ -1,3 +1,6 @@ +/* Invokes a system call with the system call number and its + argument on separate pages. This must work. */ + #include #include "tests/userprog/boundary.h" #include "tests/lib.h" @@ -14,6 +17,6 @@ test_main (void) p[1] = 42; /* Invoke the system call. */ - asm volatile ("mov %%esp, %0; int 0x30" :: "g" (p)); + asm volatile ("movl %0, %%esp; int $0x30" :: "g" (p)); fail ("should have called exit(42)"); }