diff options
Diffstat (limited to 'sys/lib/libkern/arch/amd64/htons.S')
-rw-r--r-- | sys/lib/libkern/arch/amd64/htons.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/lib/libkern/arch/amd64/htons.S b/sys/lib/libkern/arch/amd64/htons.S index a35b67b2951..15016f5736e 100644 --- a/sys/lib/libkern/arch/amd64/htons.S +++ b/sys/lib/libkern/arch/amd64/htons.S @@ -44,6 +44,8 @@ _ENTRY(_C_LABEL(htons)) _ENTRY(_C_LABEL(ntohs)) _ENTRY(_C_LABEL(bswap16)) _PROF_PROLOGUE + RETGUARD_SETUP(htons, r11) movl %edi,%eax xchgb %ah,%al + RETGUARD_CHECK(htons, r11) ret |