diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-12-02 22:47:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-12-02 22:47:38 +0000 |
commit | e1a06d1baea5f994b64cf1a9021ce1e40c04c7ef (patch) | |
tree | 0a9884ffeb308da8d1c59465ea5ea6dd8b719c3d /cpukit/score/cpu/sparc/rtems/asm.h | |
parent | minor changes to eliminate warnings from C++ compilers per user suggesstions. (diff) | |
download | rtems-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 'cpukit/score/cpu/sparc/rtems/asm.h')
-rw-r--r-- | cpukit/score/cpu/sparc/rtems/asm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/asm.h b/cpukit/score/cpu/sparc/rtems/asm.h index a3d62416b8..4f425de956 100644 --- a/cpukit/score/cpu/sparc/rtems/asm.h +++ b/cpukit/score/cpu/sparc/rtems/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 */ |