diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-29 14:17:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-03-29 14:17:58 +0000 |
commit | 21c468b7b71fcf519cecb29d5ff1b0d9c26a1b5b (patch) | |
tree | 857eb86270566be873d43541dd34a28d2ca2161e /c/src/exec/score/cpu/sparc/cpu.c | |
parent | 2002-03-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-21c468b7b71fcf519cecb29d5ff1b0d9c26a1b5b.tar.bz2 |
2002-03-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpu.c: Replace NO_TABLE_MOVE-support by external function
(code moved to libcpu/sparc/tbr/tbr.c).
* cpu.h: Replace NO_TABLE_MOVE-support by external function
(code moved to libcpu/sparc/tbr/tbr.h).
* sparc.h: Add sparc_init_tbr (implemented in libcpu/sparc/tbr/tbr.c).
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/cpu/sparc/cpu.c | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/c/src/exec/score/cpu/sparc/cpu.c b/c/src/exec/score/cpu/sparc/cpu.c index 876676248c..cbbddc9426 100644 --- a/c/src/exec/score/cpu/sparc/cpu.c +++ b/c/src/exec/score/cpu/sparc/cpu.c @@ -55,38 +55,8 @@ void _CPU_Initialize( { void *pointer; -#ifndef NO_TABLE_MOVE - unsigned32 trap_table_start; - unsigned32 tbr_value; - CPU_Trap_table_entry *old_tbr; - CPU_Trap_table_entry *trap_table; - - /* - * Install the executive's trap table. All entries from the original - * trap table are copied into the executive's trap table. This is essential - * since this preserves critical trap handlers such as the window underflow - * 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)) - trap_table_start = (trap_table_start + SPARC_TRAP_TABLE_ALIGNMENT) & - ~(SPARC_TRAP_TABLE_ALIGNMENT-1); - - trap_table = (CPU_Trap_table_entry *) trap_table_start; - - sparc_get_tbr( tbr_value ); - - old_tbr = (CPU_Trap_table_entry *) (tbr_value & 0xfffff000); - - memcpy( trap_table, (void *) old_tbr, 256 * sizeof( CPU_Trap_table_entry ) ); - - sparc_set_tbr( trap_table_start ); - -#endif - + sparc_init_tbr(); + #if (SPARC_HAS_FPU == 1) /* |