summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/sparc/asm.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-12-02 22:47:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-12-02 22:47:38 +0000
commite1a06d1baea5f994b64cf1a9021ce1e40c04c7ef (patch)
tree0a9884ffeb308da8d1c59465ea5ea6dd8b719c3d /c/src/exec/score/cpu/sparc/asm.h
parentminor changes to eliminate warnings from C++ compilers per user suggesstions. (diff)
downloadrtems-e1a06d1baea5f994b64cf1a9021ce1e40c04c7ef.tar.bz2
Changes to reflect new revision of erc32 per Jiri Gaisler's suggestions.
This is current as of sis 2.6.
Diffstat (limited to 'c/src/exec/score/cpu/sparc/asm.h')
-rw-r--r--c/src/exec/score/cpu/sparc/asm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/sparc/asm.h b/c/src/exec/score/cpu/sparc/asm.h
index a3d62416b8..4f425de956 100644
--- a/c/src/exec/score/cpu/sparc/asm.h
+++ b/c/src/exec/score/cpu/sparc/asm.h
@@ -105,6 +105,16 @@
jmp %l4+%lo(_handler); \
mov _vector, %l3
+/*
+ * Used for the reset trap for ERC32 to avoid a supervisor instruction
+ */
+
+#define RTRAP(_vector, _handler) \
+ mov %g0, %l0 ; \
+ sethi %hi(_handler), %l4 ; \
+ jmp %l4+%lo(_handler); \
+ mov _vector, %l3
+
#endif
/* end of include file */