ERC32_Force_interrupt implementation replaced per Jiri Gaisler's experience

on the real erc32 hardware.
This commit is contained in:
Joel Sherrill
1996-08-08 16:52:24 +00:00
parent f55d898c6b
commit 66e519c1c1
2 changed files with 10 additions and 0 deletions

View File

@@ -345,6 +345,11 @@ extern ERC32_Register_Map ERC32_MEC;
#define ERC32_Force_interrupt( _source ) \
do { \
unsigned32 _level; \
\
sparc_disable_interrupts( _level ); \
ERC32_MEC.Test_Control = ERC32_MEC.Test_Control | 0x80000; \
sparc_enable_interrupts( _level ); \
ERC32_MEC.Interrupt_Force = (1 << (_source)); \
} while (0)