Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/arch/arm/include Only use ARMv8 instructions in 64...



details:   https://anonhg.NetBSD.org/src-all/rev/125db0874311
branches:  trunk
changeset: 983534:125db0874311
user:      Joerg Sonnenberger <joerg%bec.de@localhost>
date:      Thu May 27 01:58:28 2021 +0200

description:
Only use ARMv8 instructions in 64bit mode, not in aa32 mode.

diffstat:

 sys/arch/arm/include/lock.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 42b9943cbd7c -r 125db0874311 sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h       Mon May 24 22:46:24 2021 +0200
+++ b/sys/arch/arm/include/lock.h       Thu May 27 01:58:28 2021 +0200
@@ -204,7 +204,7 @@
 __cpu_simple_unlock(__cpu_simple_lock_t *__alp)
 {
 
-#if defined(_ARM_ARCH_8)
+#if defined(_ARM_ARCH_8) && defined(__LP64__)
        if (sizeof(*__alp) == 1) {
                __asm __volatile("stlrb\t%w0, [%1]"
                    :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");



Home | Main Index | Thread Index | Old Index