Fixed user test to compile with -O0 enabled. Failed to reproduce
@@ -28,11 +28,11 @@ int test_misbehave() {
int test_exc_sigsys(void) {
int retval = 0;
int sysnum = 9999; /* large enough to be never implemented */
- asm volatile("li $v0, %1;"
+ asm volatile("move $v0, %1;"
"syscall;"
"sw $v0, %0"
: "=m"(retval)
- : "i"(sysnum)
+ : "r"(sysnum)
: "memory", "v0");
assert(retval == -78); /* XXX kernel ENOSYS */
