diff options
Diffstat (limited to 'c/src/exec/score/cpu/sparc/cpu.c')
-rw-r--r-- | c/src/exec/score/cpu/sparc/cpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/exec/score/cpu/sparc/cpu.c b/c/src/exec/score/cpu/sparc/cpu.c index 23a93f176e..54344192c8 100644 --- a/c/src/exec/score/cpu/sparc/cpu.c +++ b/c/src/exec/score/cpu/sparc/cpu.c @@ -65,6 +65,8 @@ void _CPU_Initialize( ) { void *pointer; + +#ifndef NO_TABLE_MOVE unsigned32 trap_table_start; unsigned32 tbr_value; CPU_Trap_table_entry *old_tbr; @@ -77,6 +79,7 @@ void _CPU_Initialize( * and overflow handlers. It is the responsibility of the BSP to provide * install these in the initial trap table. */ + trap_table_start = (unsigned32) &_CPU_Trap_Table_area; if (trap_table_start & (SPARC_TRAP_TABLE_ALIGNMENT-1)) @@ -93,6 +96,8 @@ void _CPU_Initialize( sparc_set_tbr( trap_table_start ); +#endif + /* * This seems to be the most appropriate way to obtain an initial * FP context on the SPARC. The NULL fp context is copied it to |