forked from Imagelibrary/rtems
validation: Add wrapped bsp_interrupt_dispatch for MicroBlaze
This adds a MicroBlaze-specific bsp_interrupt_dispatch wrapper which fixes a linker error.
This commit is contained in:
committed by
Joel Sherrill
parent
8a2c3af9cf
commit
f6b1840f70
@@ -128,6 +128,23 @@ void __wrap_bsp_interrupt_dispatch( void )
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__microblaze__)
|
||||
void __real_bsp_interrupt_dispatch( uint32_t source );
|
||||
|
||||
void __wrap_bsp_interrupt_dispatch( uint32_t source );
|
||||
|
||||
void __wrap_bsp_interrupt_dispatch( uint32_t source )
|
||||
{
|
||||
register uintptr_t sp __asm__( "1" );
|
||||
|
||||
if ( interrupted_stack_at_multitasking_start == 0 ) {
|
||||
interrupted_stack_at_multitasking_start = sp;
|
||||
}
|
||||
|
||||
__real_bsp_interrupt_dispatch( source );
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__PPC__) || defined(__powerpc64__)
|
||||
void __real_bsp_interrupt_dispatch( void );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user