Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include Be nice to LLVM and use an explicit imm...



details:   https://anonhg.NetBSD.org/src/rev/86a729dda3a4
branches:  trunk
changeset: 326517:86a729dda3a4
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Feb 01 01:18:57 2014 +0000

description:
Be nice to LLVM and use an explicit immediate.

diffstat:

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

diffs (12 lines):

diff -r db80c9c9ee66 -r 86a729dda3a4 sys/arch/arm/include/locore.h
--- a/sys/arch/arm/include/locore.h     Sat Feb 01 01:12:28 2014 +0000
+++ b/sys/arch/arm/include/locore.h     Sat Feb 01 01:18:57 2014 +0000
@@ -198,7 +198,7 @@
        uint32_t insn;
        if (user_p) {
 #ifdef _ARM_ARCH_T2
-               __asm __volatile("ldrht %0, [%1]" : "=&r"(insn) : "r"(va));
+               __asm __volatile("ldrht %0, [%1], #0" : "=&r"(insn) : "r"(va));
 #else
                __asm __volatile("ldrt %0, [%1]" : "=&r"(insn) : "r"(va & ~3));
 #ifdef __ARMEB__



Home | Main Index | Thread Index | Old Index