diff options
author | 2020-11-28 19:49:30 +0000 | |
---|---|---|
committer | 2020-11-28 19:49:30 +0000 | |
commit | 15572fcf8c6bfa0588565cd23f393a5a1499ea57 (patch) | |
tree | a41513c79b27dd0f2180dbab6506b34caf86aa35 /lib/libc/arch/powerpc/string/ffs.S | |
parent | Since our IPI broadcast functions exclude the CPU doing the broadcast, we (diff) | |
download | wireguard-openbsd-15572fcf8c6bfa0588565cd23f393a5a1499ea57.tar.xz wireguard-openbsd-15572fcf8c6bfa0588565cd23f393a5a1499ea57.zip |
Add retguard to macppc kernel locore.S, ofwreal.S, setjmp.S
This changes RETGUARD_SETUP(ffs) to RETGUARD_SETUP(ffs, %r11, %r12)
and RETGUARD_CHECK(ffs) to RETGUARD_CHECK(ffs, %r11, %r12)
to show that r11 and r12 are in use between setup and check, and to
pick registers other than r11 and r12 in some kernel functions.
ok mortimer@ deraadt@
Diffstat (limited to 'lib/libc/arch/powerpc/string/ffs.S')
-rw-r--r-- | lib/libc/arch/powerpc/string/ffs.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/arch/powerpc/string/ffs.S b/lib/libc/arch/powerpc/string/ffs.S index c8a6eacc128..4d6410ebd49 100644 --- a/lib/libc/arch/powerpc/string/ffs.S +++ b/lib/libc/arch/powerpc/string/ffs.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs.S,v 1.2 2020/10/26 22:07:05 gkoehler Exp $ */ +/* $OpenBSD: ffs.S,v 1.3 2020/11/28 19:49:30 gkoehler Exp $ */ /* * Written by Christian Weisgerber <naddy@openbsd.org>. * Public domain. @@ -7,12 +7,12 @@ #include "SYS.h" ENTRY(ffs) - RETGUARD_SETUP(ffs) + RETGUARD_SETUP(ffs, %r11, %r12) neg %r4, %r3 and %r3, %r3, %r4 cntlzw %r3, %r3 subfic %r3, %r3, 32 - RETGUARD_CHECK(ffs) + RETGUARD_CHECK(ffs, %r11, %r12) blr END(ffs) .protected |