From 8434d9cf5bd082d5d7008ab66c282b6f67d9855d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= Date: Thu, 14 May 2020 10:26:35 +0200 Subject: Fixed test. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filip Strömbäck --- src/tests/filst/sc-bad-exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/filst/sc-bad-exit.c b/src/tests/filst/sc-bad-exit.c index d469fcb..a0f02ea 100644 --- a/src/tests/filst/sc-bad-exit.c +++ b/src/tests/filst/sc-bad-exit.c @@ -35,7 +35,7 @@ void test_main(void) "movl %%esp, %%edi;" // Save the stack pointer in case we survive. "movl %0, %%esp;" // Set stack pointer. "movl %1, (%%esp);" // Try to call SYS_EXIT - "movb $1, 4(%%esp);" // Set the first byte of the syscall number to one. + "movb $0, 4(%%esp);" // Set the parameter to zero. "int $0x30;" // Trigger syscall. "movl %%edi, %%esp;" // Restore the old stack if we survivied. : -- cgit v1.2.1