From e1a06d1baea5f994b64cf1a9021ce1e40c04c7ef Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 2 Dec 1996 22:47:38 +0000 Subject: Changes to reflect new revision of erc32 per Jiri Gaisler's suggestions. This is current as of sis 2.6. --- cpukit/score/cpu/sparc/rtems/asm.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/score/cpu/sparc/rtems/asm.h') 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 */ -- cgit v1.2.3