diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-10-17 15:26:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-10-17 15:26:06 +0000 |
commit | 1d49ac28f7f8467f256480896d15a723ba984b3a (patch) | |
tree | 0e6eeeb63550b8b52a8f117ee5e63238962421de | |
parent | 63f00f370118d66a9cfda0b58c88124338392e97 (diff) |
use the full 64-bit cookies, rather than just 32 bits
spotted by gkoehler, ok mortimer
-rw-r--r-- | sys/arch/powerpc64/include/asm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc64/include/asm.h b/sys/arch/powerpc64/include/asm.h index d69eeaf691e..9f4c122fe99 100644 --- a/sys/arch/powerpc64/include/asm.h +++ b/sys/arch/powerpc64/include/asm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asm.h,v 1.4 2020/10/16 23:39:25 mortimer Exp $ */ +/* $OpenBSD: asm.h,v 1.5 2020/10/17 15:26:05 deraadt Exp $ */ /* * Copyright (c) 2020 Dale Rahn <drahn@openbsd.org> @@ -64,13 +64,13 @@ _TMP_LABEL(y):; \ RETGUARD_SYMBOL(x); \ mflr %r0; \ addis reg, %r2, (__retguard_ ## x)@toc@ha; \ - lwz reg, ((__retguard_ ## x)@toc@l)(reg); \ + ld reg, ((__retguard_ ## x)@toc@l)(reg); \ xor reg, reg, %r0 # define RETGUARD_CHECK(x, reg) \ mflr %r0; \ xor reg, reg, %r0; \ addis %r12, %r2, (__retguard_ ## x)@toc@ha; \ - lwz %r12, ((__retguard_ ## x)@toc@l)(%r12); \ + ld %r12, ((__retguard_ ## x)@toc@l)(%r12); \ tdne reg, %r12 # define RETGUARD_SAVE(reg, off) \ std reg, off(%r31) |