forked from Imagelibrary/rtems
sptests/spfatal07: Use confdefs.h to trigger test
This commit is contained in:
@@ -41,11 +41,14 @@ rtems_initialization_tasks_table Initialization_tasks[] = {
|
||||
#define CONFIGURE_MEMORY_OVERHEAD (sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS)
|
||||
#endif
|
||||
|
||||
#if CPU_ALLOCATE_INTERRUPT_STACK == TRUE
|
||||
#define CONFIGURE_INTERRUPT_STACK_SIZE (STACK_MINIMUM_SIZE - 1)
|
||||
#endif
|
||||
|
||||
void force_error()
|
||||
{
|
||||
#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
|
||||
Configuration.interrupt_stack_size = (STACK_MINIMUM_SIZE-1);
|
||||
_ISR_Handler_initialization();
|
||||
/* we will not run this far */
|
||||
#else
|
||||
printk(
|
||||
"WARNING - Test not applicable on this target architecture.\n"
|
||||
@@ -54,6 +57,4 @@ void force_error()
|
||||
);
|
||||
rtems_test_exit(0);
|
||||
#endif
|
||||
|
||||
/* we will not run this far */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user