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:
Ralf Corsepius
2005-02-09 15:59:50 +00:00
parent 80df34a21b
commit d946f95b9e
10 changed files with 18 additions and 30 deletions

View File

@@ -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.

View File

@@ -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."

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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.

View File

@@ -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."

View File

@@ -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

View File

@@ -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)

View File

@@ -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