diff --git a/sys/riscv/riscv/cheri_revoke_machdep.c b/sys/riscv/riscv/cheri_revoke_machdep.c index c3081c3249c7..ce64a0bf09b2 100644 --- a/sys/riscv/riscv/cheri_revoke_machdep.c +++ b/sys/riscv/riscv/cheri_revoke_machdep.c @@ -141,7 +141,7 @@ vm_do_cheri_revoke(int *res, const struct vm_cheri_revoke_cookie *crc, "beq x0, %[ok], 1f\n\t" "sc.c.cap %[cutr], (%[cutp])\n\t" "1:\n\t" - : [ok] "=r" (ok), [cscratch] "=&C" (cscratch), + : [ok] "=&r" (ok), [cscratch] "=&C" (cscratch), [cutr] "+C" (cutr) : [cut] "C" (cut), [cutp] "C" (cutp) : "memory");