summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/arch/amd64/bcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/arch/amd64/bcmp.S')
-rw-r--r--sys/lib/libkern/arch/amd64/bcmp.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libkern/arch/amd64/bcmp.S b/sys/lib/libkern/arch/amd64/bcmp.S
index 4cb1b3d6894..96754ed68a4 100644
--- a/sys/lib/libkern/arch/amd64/bcmp.S
+++ b/sys/lib/libkern/arch/amd64/bcmp.S
@@ -1,6 +1,7 @@
#include <machine/asm.h>
ENTRY(bcmp)
+ RETGUARD_SETUP(bcmp, r11)
xorl %eax,%eax /* clear return value */
movq %rdx,%rcx /* compare by words */
@@ -16,4 +17,5 @@ ENTRY(bcmp)
je L2
L1: incl %eax
-L2: ret
+L2: RETGUARD_CHECK(bcmp, r11)
+ ret