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 remove __thumb__ PIC specifics. no dif...
details: https://anonhg.NetBSD.org/src/rev/755fa3d83b21
branches: trunk
changeset: 789390:755fa3d83b21
user: matt <matt%NetBSD.org@localhost>
date: Sun Aug 18 05:06:49 2013 +0000
description:
remove __thumb__ PIC specifics. no different from ARM except being pc+4 not
pc+8
diffstat:
sys/arch/arm/include/asm.h | 33 ++++++++++++++++-----------------
1 files changed, 16 insertions(+), 17 deletions(-)
diffs (57 lines):
diff -r 7746aa040e9e -r 755fa3d83b21 sys/arch/arm/include/asm.h
--- a/sys/arch/arm/include/asm.h Sun Aug 18 05:01:47 2013 +0000
+++ b/sys/arch/arm/include/asm.h Sun Aug 18 05:06:49 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.21 2013/08/16 17:45:28 matt Exp $ */
+/* $NetBSD: asm.h,v 1.22 2013/08/18 05:06:49 matt Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -97,32 +97,31 @@
# define _PROF_PROLOGUE
#endif
-#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
-#define ENTRY_NP(y) _ENTRY(_C_LABEL(y))
-#define END(y) _END(_C_LABEL(y))
-#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
-#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y))
-#define ASEND(y) _END(_ASM_LABEL(y))
+#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
+#define ENTRY_NP(y) _ENTRY(_C_LABEL(y))
+#define END(y) _END(_C_LABEL(y))
+#define ARM_ENTRY(y) _ARM_ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
+#define ARM_ENTRY_NP(y) _ARM_ENTRY(_C_LABEL(y))
+#define THUMB_ENTRY(y) _THUMB_ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
+#define THUMB_ENTRY_NP(y) _THUMB_ENTRY(_C_LABEL(y))
+#define END(y) _END(_C_LABEL(y))
+#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
+#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y))
+#define ASEND(y) _END(_ASM_LABEL(y))
+#define ARM_ASENTRY(y) _ARM_ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
+#define ARM_ASENTRY_NP(y) _ARM_ENTRY(_ASM_LABEL(y))
+#define THUMB_ASENTRY(y) _THUMB_ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
+#define THUMB_ASENTRY_NP(y) _THUMB_ENTRY(_ASM_LABEL(y))
#define ASMSTR .asciz
#if defined(PIC) || defined(__pic__)
#define REL_SYM(a, b) ((a) - (b))
-#ifdef __thumb__
-#define PLT_SYM(x) x
-#define GOT_SYM(x) PIC_SYM(x, GOTOFF)
-#define GOT_GET(x,got,sym) \
- ldr x, sym; \
- add x, got; \
- ldr x, [x]
-#else
#define PLT_SYM(x) PIC_SYM(x, PLT)
#define GOT_SYM(x) PIC_SYM(x, GOT)
#define GOT_GET(x,got,sym) \
ldr x, sym; \
ldr x, [x, got]
-#endif /* __thumb__ */
-
#define GOT_INIT(got,gotsym,pclabel) \
ldr got, gotsym; \
pclabel: add got, got, pc
Home |
Main Index |
Thread Index |
Old Index