bsps/arm: Fix set exception handler for ARMv7

This commit is contained in:
Sebastian Huber
2013-06-21 09:59:27 +02:00
parent b4062c3f7f
commit 4b83e8f1c4

View File

@@ -37,7 +37,15 @@ void arm_cp15_set_exception_handler(
ctrl = arm_cp15_mmu_disable(cls);
mirror_table[exception] = (uint32_t) handler;
rtems_cache_flush_multiple_data_lines(mirror_table, table_size);
/*
* On ARMv7 processors with the Security Extension the mirror table might
* be the actual table used by the processor.
*/
rtems_cache_invalidate_multiple_instruction_lines(mirror_table, table_size);
rtems_cache_invalidate_multiple_instruction_lines(cpu_table, table_size);
arm_cp15_set_control(ctrl);