2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org>

* rtems/asm.h, rtems/old-exceptions/cpu.h, rtems/score/powerpc.h:
	Remove PPC_ABI_POWEROPEN.
This commit is contained in:
Ralf Corsepius
2005-02-10 15:22:07 +00:00
parent abeac6688c
commit 3d852abd06
5 changed files with 8 additions and 44 deletions

View File

@@ -295,17 +295,8 @@ extern "C" {
* Application binary interfaces.
*
* PPC_ABI MUST be defined as one of these.
* Only PPC_ABI_POWEROPEN is currently fully supported.
* Only EABI will be supported in the end when
* the tools are there.
* Only big endian is currently supported.
*/
/*
* PowerOpen ABI. This is Andy's hack of the
* PowerOpen ABI to ELF. ELF rather than a
* XCOFF assembler is used.
*/
#define PPC_ABI_POWEROPEN 0
/*
* SVR4 ABI
*/
@@ -323,18 +314,13 @@ extern "C" {
#define PPC_ABI PPC_ABI_EABI
#endif
#if (PPC_ABI == PPC_ABI_POWEROPEN)
#define PPC_STACK_ALIGNMENT 8
#elif (PPC_ABI == PPC_ABI_SVR4)
#if (PPC_ABI == PPC_ABI_SVR4)
#define PPC_STACK_ALIGNMENT 16
#elif (PPC_ABI == PPC_ABI_EABI)
#define PPC_STACK_ALIGNMENT 8
#else
#error "PPC_ABI is not properly defined"
#endif
#ifndef PPC_ABI
#error "PPC_ABI is not properly defined"
#endif
/*
* Assemblers.

View File

@@ -1,3 +1,8 @@
2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/asm.h, rtems/old-exceptions/cpu.h, rtems/score/powerpc.h:
Remove PPC_ABI_POWEROPEN.
2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/powerpc.h: Remove hard-coded PPC_HAS_FPU.

View File

@@ -60,12 +60,6 @@
#define __FLOAT_REGISTER_PREFIX__ __REGISTER_PREFIX__
#endif
#if (PPC_ABI == PPC_ABI_POWEROPEN)
#ifndef __PROC_LABEL_PREFIX__
#define __PROC_LABEL_PREFIX__ .
#endif
#endif
#ifndef __PROC_LABEL_PREFIX__
#define __PROC_LABEL_PREFIX__ __USER_LABEL_PREFIX__
#endif

View File

@@ -372,11 +372,8 @@ typedef struct {
typedef struct CPU_Interrupt_frame {
uint32_t stacklink; /* Ensure this is a real frame (also reg1 save) */
#if (PPC_ABI == PPC_ABI_POWEROPEN)
uint32_t dummy[13]; /* Used by callees: PowerOpen ABI */
#else
uint32_t dummy[1]; /* Used by callees: SVR4/EABI */
#endif
/* This is what is left out of the primary contexts */
uint32_t gpr0;
uint32_t gpr2; /* play safe */
@@ -570,12 +567,8 @@ SCORE_EXTERN struct {
uint32_t volatile* Disable_level;
void *Vector_table;
void *Stack;
#if (PPC_ABI == PPC_ABI_POWEROPEN)
uint32_t Dispatch_r2;
#else
uint32_t Default_r2;
uint32_t Default_r13;
#endif
volatile boolean *Switch_necessary;
boolean *Signal;

View File

@@ -295,17 +295,8 @@ extern "C" {
* Application binary interfaces.
*
* PPC_ABI MUST be defined as one of these.
* Only PPC_ABI_POWEROPEN is currently fully supported.
* Only EABI will be supported in the end when
* the tools are there.
* Only big endian is currently supported.
*/
/*
* PowerOpen ABI. This is Andy's hack of the
* PowerOpen ABI to ELF. ELF rather than a
* XCOFF assembler is used.
*/
#define PPC_ABI_POWEROPEN 0
/*
* SVR4 ABI
*/
@@ -323,18 +314,13 @@ extern "C" {
#define PPC_ABI PPC_ABI_EABI
#endif
#if (PPC_ABI == PPC_ABI_POWEROPEN)
#define PPC_STACK_ALIGNMENT 8
#elif (PPC_ABI == PPC_ABI_SVR4)
#if (PPC_ABI == PPC_ABI_SVR4)
#define PPC_STACK_ALIGNMENT 16
#elif (PPC_ABI == PPC_ABI_EABI)
#define PPC_STACK_ALIGNMENT 8
#else
#error "PPC_ABI is not properly defined"
#endif
#ifndef PPC_ABI
#error "PPC_ABI is not properly defined"
#endif
/*
* Assemblers.