Skip to content

Commit

Permalink
caprevoke: riscv: Fix missing early-clobber (#2227)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoundofThree authored and bsdjhb committed Oct 23, 2024
1 parent dc6f8e0 commit ac3fd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/riscv/riscv/cheri_revoke_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ac3fd46

Please sign in to comment.