diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2014-06-02 16:31:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-06-03 08:35:47 +0200 |
commit | 8df1f408fd8c4f67629f32470b5b7d94123bc305 (patch) | |
tree | c64a21cd0f587bae7926c2ff4d7349df026249e3 /cpukit/score/cpu/sparc/cpu.c | |
parent | libblock: Avoid recursive mutex (diff) | |
download | rtems-8df1f408fd8c4f67629f32470b5b7d94123bc305.tar.bz2 |
score/sparc: Add support for paravirtualization
Guest systems in paravirtualization environments run usually in user
mode. Thus it is not possible to directly access the PSR and TBR
registers. Use functions instead of inline assembler to access these
registers if RTEMS_PARAVIRT is defined.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/sparc/cpu.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c index ee0d622067..c616de4971 100644 --- a/cpukit/score/cpu/sparc/cpu.c +++ b/cpukit/score/cpu/sparc/cpu.c @@ -72,23 +72,6 @@ SPARC_ASSERT_OFFSET(is_executing, SPARC_CONTEXT_CONTROL_IS_EXECUTING); #endif /* - * This initializes the set of opcodes placed in each trap - * table entry. The routine which installs a handler is responsible - * for filling in the fields for the _handler address and the _vector - * trap type. - * - * The constants following this structure are masks for the fields which - * must be filled in when the handler is installed. - */ - -const CPU_Trap_table_entry _CPU_Trap_slot_template = { - 0xa1480000, /* mov %psr, %l0 */ - 0x29000000, /* sethi %hi(_handler), %l4 */ - 0x81c52000, /* jmp %l4 + %lo(_handler) */ - 0xa6102000 /* mov _vector, %l3 */ -}; - -/* * _CPU_Initialize * * This routine performs processor dependent initialization. |