From 75ad73760f33b0d2b30061919d8d4b4bf0b4277b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 28 Nov 2001 18:15:51 +0000 Subject: 2001-11-28 Joel Sherrill , This was tracked as PR91. * rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which is used to specify if the port uses the standard macro for this (FALSE). A TRUE setting indicates the port provides its own implementation. * rtems/score/c_isr.inl: Deleted and contents merged into cpu.c. * cpu.c: Received contents of c_isr.inl. * Makefile.am: Deleted reference to c_isr.inl. --- .../powerpc/support/old_exception_processing/cpu.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c') diff --git a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c index 1d6845cb69..5b8fcb6259 100644 --- a/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c +++ b/c/src/lib/libbsp/powerpc/support/old_exception_processing/cpu.c @@ -873,3 +873,19 @@ unsigned32 ppc_exception_vector_addr( return Top; } +/*PAGE + * + * This is the PowerPC specific implementation of the routine which + * returns TRUE if an interrupt is in progress. + * + * NOTE: This is the same as the generic version. But since the + * PowerPC is still supporting old and new exception processing + * models and the new exception processing model has a hardware + * way of doing this, we have to provide this capability here + * for symmetry. + */ + +boolean _ISR_Is_in_progress( void ) +{ + return (_ISR_Nest_level != 0); +} -- cgit v1.2.3