mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
* cpu.c, cpu_asm.S, irq_stub.S, rtems/score/ppc_offs.h: Remove PPC_ABI_GCC27.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* cpu.c, cpu_asm.S, irq_stub.S, rtems/score/ppc_offs.h:
|
||||
Remove PPC_ABI_GCC27.
|
||||
|
||||
2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
|
||||
|
||||
@@ -65,12 +65,10 @@ void _CPU_Initialize(
|
||||
#endif
|
||||
#if (PPC_ABI != PPC_ABI_POWEROPEN)
|
||||
register uint32_t r2 = 0;
|
||||
#if (PPC_ABI != PPC_ABI_GCC27)
|
||||
register uint32_t r13 = 0;
|
||||
|
||||
asm ("mr %0,13" : "=r" ((r13)) : "0" ((r13)));
|
||||
_CPU_IRQ_info.Default_r13 = r13;
|
||||
#endif
|
||||
|
||||
asm ("mr %0,2" : "=r" ((r2)) : "0" ((r2)));
|
||||
_CPU_IRQ_info.Default_r2 = r2;
|
||||
@@ -356,7 +354,7 @@ void _CPU_ISR_install_vector(
|
||||
|
||||
void _CPU_Install_interrupt_stack( void )
|
||||
{
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
_CPU_IRQ_info.Stack = _CPU_Interrupt_stack_high - 56;
|
||||
#else
|
||||
_CPU_IRQ_info.Stack = _CPU_Interrupt_stack_high - 8;
|
||||
@@ -412,7 +410,7 @@ void _CPU_Fatal_error(uint32_t _error)
|
||||
|
||||
const CPU_Trap_table_entry _CPU_Trap_slot_template = {
|
||||
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
#error " Vector install not tested."
|
||||
#if (PPC_HAS_FPU)
|
||||
#error " Vector install not tested."
|
||||
|
||||
@@ -570,7 +570,7 @@ PROC (_CPU_Context_restore):
|
||||
blr
|
||||
|
||||
/* Individual interrupt prologues look like this:
|
||||
* #if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
* #if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
* #if (PPC_HAS_FPU)
|
||||
* stwu r1, -(20*4 + 18*8 + IP_END)(r1)
|
||||
* #else
|
||||
|
||||
@@ -134,11 +134,6 @@ LABEL (nested):
|
||||
mtlr r6
|
||||
lwz r11,8(r4)
|
||||
#endif
|
||||
#if (PPC_ABI == PPC_ABI_GCC27)
|
||||
lwz r2, Default_r2(r11)
|
||||
mtlr r4
|
||||
#lwz r2, 0(r2)
|
||||
#endif
|
||||
#if (PPC_ABI == PPC_ABI_SVR4 || PPC_ABI == PPC_ABI_EABI)
|
||||
mtlr r4
|
||||
lwz r2, Default_r2(r11)
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
#endif
|
||||
|
||||
.set IP_LINK, 0
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
.set IP_0, (IP_LINK + 56)
|
||||
#else
|
||||
.set IP_0, (IP_LINK + 8)
|
||||
@@ -153,12 +153,8 @@
|
||||
.set Switch_necessary, 20
|
||||
#else
|
||||
.set Default_r2, 16
|
||||
#if (PPC_ABI != PPC_ABI_GCC27)
|
||||
.set Default_r13, 20
|
||||
.set Switch_necessary, 24
|
||||
#else
|
||||
.set Switch_necessary, 20
|
||||
#endif
|
||||
#endif
|
||||
.set Signal, Switch_necessary + 4
|
||||
.set msr_initial, Signal + 4
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* cpu.c, cpu_asm.S, irq_stub.S, rtems/score/ppc_offs.h:
|
||||
Remove PPC_ABI_GCC27.
|
||||
|
||||
2005-01-07 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Eliminate CFLAGS_OPTIMIZE_V.
|
||||
|
||||
@@ -65,12 +65,10 @@ void _CPU_Initialize(
|
||||
#endif
|
||||
#if (PPC_ABI != PPC_ABI_POWEROPEN)
|
||||
register uint32_t r2 = 0;
|
||||
#if (PPC_ABI != PPC_ABI_GCC27)
|
||||
register uint32_t r13 = 0;
|
||||
|
||||
asm ("mr %0,13" : "=r" ((r13)) : "0" ((r13)));
|
||||
_CPU_IRQ_info.Default_r13 = r13;
|
||||
#endif
|
||||
|
||||
asm ("mr %0,2" : "=r" ((r2)) : "0" ((r2)));
|
||||
_CPU_IRQ_info.Default_r2 = r2;
|
||||
@@ -356,7 +354,7 @@ void _CPU_ISR_install_vector(
|
||||
|
||||
void _CPU_Install_interrupt_stack( void )
|
||||
{
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
_CPU_IRQ_info.Stack = _CPU_Interrupt_stack_high - 56;
|
||||
#else
|
||||
_CPU_IRQ_info.Stack = _CPU_Interrupt_stack_high - 8;
|
||||
@@ -412,7 +410,7 @@ void _CPU_Fatal_error(uint32_t _error)
|
||||
|
||||
const CPU_Trap_table_entry _CPU_Trap_slot_template = {
|
||||
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
#error " Vector install not tested."
|
||||
#if (PPC_HAS_FPU)
|
||||
#error " Vector install not tested."
|
||||
|
||||
@@ -570,7 +570,7 @@ PROC (_CPU_Context_restore):
|
||||
blr
|
||||
|
||||
/* Individual interrupt prologues look like this:
|
||||
* #if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
* #if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
* #if (PPC_HAS_FPU)
|
||||
* stwu r1, -(20*4 + 18*8 + IP_END)(r1)
|
||||
* #else
|
||||
|
||||
@@ -134,11 +134,6 @@ LABEL (nested):
|
||||
mtlr r6
|
||||
lwz r11,8(r4)
|
||||
#endif
|
||||
#if (PPC_ABI == PPC_ABI_GCC27)
|
||||
lwz r2, Default_r2(r11)
|
||||
mtlr r4
|
||||
#lwz r2, 0(r2)
|
||||
#endif
|
||||
#if (PPC_ABI == PPC_ABI_SVR4 || PPC_ABI == PPC_ABI_EABI)
|
||||
mtlr r4
|
||||
lwz r2, Default_r2(r11)
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
#endif
|
||||
|
||||
.set IP_LINK, 0
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN || PPC_ABI == PPC_ABI_GCC27)
|
||||
#if (PPC_ABI == PPC_ABI_POWEROPEN)
|
||||
.set IP_0, (IP_LINK + 56)
|
||||
#else
|
||||
.set IP_0, (IP_LINK + 8)
|
||||
@@ -153,12 +153,8 @@
|
||||
.set Switch_necessary, 20
|
||||
#else
|
||||
.set Default_r2, 16
|
||||
#if (PPC_ABI != PPC_ABI_GCC27)
|
||||
.set Default_r13, 20
|
||||
.set Switch_necessary, 24
|
||||
#else
|
||||
.set Switch_necessary, 20
|
||||
#endif
|
||||
#endif
|
||||
.set Signal, Switch_necessary + 4
|
||||
.set msr_initial, Signal + 4
|
||||
|
||||
Reference in New Issue
Block a user