Rename hppa1_1 to hppa1.1 and switched to using __XXX__ macros for

the CPU family name constants.
This commit is contained in:
Joel Sherrill
1998-03-24 16:24:39 +00:00
parent 222788b43d
commit 3ec7bfc7c4
17 changed files with 62 additions and 65 deletions

View File

@@ -74,7 +74,7 @@ architecture. The following targets are supported:
i386-rtems
i386-go32-rtems see notes
i960-rtems
hppa1_1-rtems
hppa1.1-rtems
m68k-rtems
mips64orion-rtems
no_cpu-rtems
@@ -170,7 +170,7 @@ a29k : portsw
i386 : force386 i386ex
i386-go32 : go32 go32_p5
i960 : cvme961
hppa1_1 : simhppa
hppa1.1 : simhppa
m68k : dmv152 efi332 efi68k gen68302 gen68360 gen68360_040 idp
mvme136 mvme147 mvme147s mvme162 ods68302
no_cpu : no_bsp

View File

@@ -174,7 +174,7 @@ void _CPU_Signal_initialize( void )
void _CPU_Context_From_CPU_Init()
{
#if defined(hppa1_1) && defined(RTEMS_UNIXLIB_SETJMP)
#if defined(__hppa__) && defined(RTEMS_UNIXLIB_SETJMP)
/*
* HACK - set the _SYSTEM_ID to 0x20c so that setjmp/longjmp
* will handle the full 32 floating point registers.
@@ -474,7 +474,7 @@ void _CPU_Context_Initialize(
addr = (unsigned32 *)_the_context;
#if defined(hppa1_1)
#if defined(__hppa__)
*(addr + RP_OFF) = jmp_addr;
*(addr + SP_OFF) = (unsigned32)(_stack_low + CPU_FRAME_SIZE);
@@ -489,7 +489,7 @@ void _CPU_Context_Initialize(
jmp_addr &= 0xfffffffc;
*(addr + RP_OFF) = *(unsigned32 *)jmp_addr;
}
#elif defined(sparc)
#elif defined(__sparc__)
/*
* See /usr/include/sys/stack.h in Solaris 2.3 for a nice
@@ -502,7 +502,7 @@ void _CPU_Context_Initialize(
*(addr + SP_OFF) = (unsigned32)(_stack_high - CPU_FRAME_SIZE);
*(addr + FP_OFF) = (unsigned32)(_stack_high);
#elif defined(i386) || defined(__i386__)
#elif defined(__i386__)
/*
* This information was gathered by disassembling setjmp().

View File

@@ -242,9 +242,9 @@ extern "C" {
* If FALSE, then the grows toward smaller addresses.
*/
#if defined(hppa1_1)
#if defined(__hppa__)
#define CPU_STACK_GROWS_UP TRUE
#elif defined(sparc) || defined(i386) || defined(__i386__)
#elif defined(__sparc__) || defined(__i386__)
#define CPU_STACK_GROWS_UP FALSE
#else
#error "unknown CPU!!"
@@ -282,11 +282,11 @@ extern "C" {
* routines are handled.
*/
#if defined(hppa1_1) || defined(sparc)
#if defined(__hppa__) || defined(__sparc__)
#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#elif defined(i386) || defined(__i386__)
#elif defined(__i386__)
#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
@@ -313,7 +313,7 @@ extern "C" {
/* may need to put some structures here. */
#if defined(hppa1_1)
#if defined(__hppa__)
/*
* Word indices within a jmp_buf structure
*/
@@ -363,7 +363,7 @@ extern "C" {
#endif
#endif
#if defined(i386) || defined(__i386__)
#if defined(__i386__)
#ifdef RTEMS_NEWLIB
#error "Newlib not installed"
@@ -384,7 +384,7 @@ extern "C" {
#endif
#if defined(sparc)
#if defined(__sparc__)
/*
* Word indices within a jmp_buf structure
@@ -550,11 +550,11 @@ SCORE_EXTERN void (*_CPU_Thread_dispatch_pointer)();
* The size of a frame on the stack
*/
#if defined(hppa1_1)
#if defined(__hppa__)
#define CPU_FRAME_SIZE (32 * 4)
#elif defined(sparc)
#elif defined(__sparc__)
#define CPU_FRAME_SIZE (112) /* based on disassembled test code */
#elif defined(i386) || defined(__i386__)
#elif defined(__i386__)
#define CPU_FRAME_SIZE (24) /* return address, sp, and bp pushed plus fudge */
#else
#error "Unknown CPU!!!"

View File

@@ -14,4 +14,4 @@ include $(RTEMS_ROOT)/make/directory.cfg
# wrapup is the one that actually builds and installs the library
# from the individual .rel files built in other directories
# NOTE: we pick up HPPA clock and timer from libcpu/hppa
SUB_DIRS=tools include startup tty shmsupp wrapup
SUB_DIRS=tools include start startup tty shmsupp wrapup

View File

@@ -331,7 +331,7 @@ asm("
_already7:
movew %sp@+,%d0
");
#if defined (__m68000__) && !defined(__mc68020__)
#if defined (__mc68000__) && !defined(__mc68020__)
asm("
lea %sp@(4),%sp"); /* pull off 68000 return address */
#endif
@@ -551,7 +551,7 @@ void _returnFromException(Frame *frame)
frame->fsaveHeader = -1; /* restore regs, but we dont have fsave info*/
}
#if defined(__m68000__) && !defined(__mc68020__)
#if defined(__mc68000__) && !defined(__mc68020__)
/* a 68000 cannot use the internal info pushed onto a bus error
* or address error frame when doing an RTE so don't put this info
* onto the stack or the stack will creep every time this happens.

View File

@@ -119,27 +119,27 @@ extern "C" {
* view of the VMEbus address space) are not addressed yet.
*/
#if defined(i960)
#if defined(__i960__)
#define SHM_LOCK_VALUE 0x00000080
#define SHM_UNLOCK_VALUE 0
#elif defined(m68k)
#elif defined(__mc68000__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(i386)
#elif defined(__i386__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(mips64orion)
#elif defined(__mips__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(hppa1_1)
#elif defined(__hppa__)
#define SHM_LOCK_VALUE 0
#define SHM_UNLOCK_VALUE 1
#elif defined(ppc)
#elif defined(__PPC__)
#define SHM_LOCK_VALUE 1
#define SHM_UNLOCK_VALUE 0
#elif defined(unix)
#elif defined(__unix__)
#define SHM_LOCK_VALUE 0
#define SHM_UNLOCK_VALUE 1
#elif defined(no_cpu) /* for this values are irrelevant */

View File

@@ -119,27 +119,27 @@ extern "C" {
* view of the VMEbus address space) are not addressed yet.
*/
#if defined(i960)
#if defined(__i960__)
#define SHM_LOCK_VALUE 0x00000080
#define SHM_UNLOCK_VALUE 0
#elif defined(m68k)
#elif defined(__mc68000__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(i386)
#elif defined(__i386__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(mips64orion)
#elif defined(__mips__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(hppa1_1)
#elif defined(__hppa__)
#define SHM_LOCK_VALUE 0
#define SHM_UNLOCK_VALUE 1
#elif defined(ppc)
#elif defined(__PPC__)
#define SHM_LOCK_VALUE 1
#define SHM_UNLOCK_VALUE 0
#elif defined(unix)
#elif defined(__unix__)
#define SHM_LOCK_VALUE 0
#define SHM_UNLOCK_VALUE 1
#elif defined(no_cpu) /* for this values are irrelevant */

View File

@@ -18,7 +18,7 @@
* i-cubed limited makes no representations about the suitability
* of this software for any purpose.
*
* Derived from c/src/lib/libcpu/hppa1_1/clock/clock.c:
* Derived from c/src/lib/libcpu/hppa1.1/clock/clock.c:
*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).

View File

@@ -21,7 +21,7 @@
* i-cubed limited makes no representations about the suitability
* of this software for any purpose.
*
* Derived from c/src/lib/libcpu/hppa1_1/timer/timer.c:
* Derived from c/src/lib/libcpu/hppa1.1/timer/timer.c:
*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).

View File

@@ -6,5 +6,5 @@ entry code transfers control to target board specific
code).
For some processors this code exists in some external (to RTEMS)
library such as libgloss or the host system (for example the hppa1_1
library such as libgloss or the host system (for example the hppa1.1
and UNIX cpu's)

View File

@@ -119,27 +119,27 @@ extern "C" {
* view of the VMEbus address space) are not addressed yet.
*/
#if defined(i960)
#if defined(__i960__)
#define SHM_LOCK_VALUE 0x00000080
#define SHM_UNLOCK_VALUE 0
#elif defined(m68k)
#elif defined(__mc68000__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(i386)
#elif defined(__i386__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(mips64orion)
#elif defined(__mips__)
#define SHM_LOCK_VALUE 0x80000000
#define SHM_UNLOCK_VALUE 0
#elif defined(hppa1_1)
#elif defined(__hppa__)
#define SHM_LOCK_VALUE 0
#define SHM_UNLOCK_VALUE 1
#elif defined(ppc)
#elif defined(__PPC__)
#define SHM_LOCK_VALUE 1
#define SHM_UNLOCK_VALUE 0
#elif defined(unix)
#elif defined(__unix__)
#define SHM_LOCK_VALUE 0
#define SHM_UNLOCK_VALUE 1
#elif defined(no_cpu) /* for this values are irrelevant */

View File

@@ -126,8 +126,6 @@ cdtest(void)
// in many implementations in order to get global constructors
// run.
//
// Ref: c/src/lib/libbsp/hppa1_1/pxfl/startup/bspstart.c
//
rtems_task main_task(

View File

@@ -352,7 +352,7 @@ uninitialized = 0;
#ifndef unix /* make sure this is not a native compile */
#ifdef i386
#ifdef __i386__
/* cpu.h */
uninitialized += (sizeof _CPU_Null_fp_context) +
@@ -361,7 +361,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
#endif
#ifdef i960
#ifdef __i960__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -369,7 +369,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
#endif
#ifdef hppa1_1
#ifdef __hppa__
/* cpu.h */
uninitialized += (sizeof _CPU_Null_fp_context) +
@@ -380,7 +380,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
(sizeof _CPU_Interrupt_stack_high);
#endif
#ifdef m68k
#ifdef __mc68000__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -388,7 +388,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
#endif
#ifdef sparc
#ifdef __sparc__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -417,7 +417,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
#endif
#ifdef ppc
#ifdef __PPC__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -440,7 +440,7 @@ initialized +=
(sizeof _TOD_Days_since_last_leap_year);
#ifndef unix /* make sure this is not native */
#ifdef sparc
#ifdef __sparc__
initialized += (sizeof _CPU_Trap_slot_template);

View File

@@ -174,7 +174,7 @@ void _CPU_Signal_initialize( void )
void _CPU_Context_From_CPU_Init()
{
#if defined(hppa1_1) && defined(RTEMS_UNIXLIB_SETJMP)
#if defined(__hppa__) && defined(RTEMS_UNIXLIB_SETJMP)
/*
* HACK - set the _SYSTEM_ID to 0x20c so that setjmp/longjmp
* will handle the full 32 floating point registers.
@@ -474,7 +474,7 @@ void _CPU_Context_Initialize(
addr = (unsigned32 *)_the_context;
#if defined(hppa1_1)
#if defined(__hppa__)
*(addr + RP_OFF) = jmp_addr;
*(addr + SP_OFF) = (unsigned32)(_stack_low + CPU_FRAME_SIZE);
@@ -489,7 +489,7 @@ void _CPU_Context_Initialize(
jmp_addr &= 0xfffffffc;
*(addr + RP_OFF) = *(unsigned32 *)jmp_addr;
}
#elif defined(sparc)
#elif defined(__sparc__)
/*
* See /usr/include/sys/stack.h in Solaris 2.3 for a nice
@@ -502,7 +502,7 @@ void _CPU_Context_Initialize(
*(addr + SP_OFF) = (unsigned32)(_stack_high - CPU_FRAME_SIZE);
*(addr + FP_OFF) = (unsigned32)(_stack_high);
#elif defined(i386) || defined(__i386__)
#elif defined(__i386__)
/*
* This information was gathered by disassembling setjmp().

View File

@@ -6,6 +6,7 @@
include $(RTEMS_ROOT)/make/custom/default.cfg
# this really should be hppa1.1 but you define that with cpp :(
RTEMS_CPU=hppa1_1
RTEMS_CPU_MODEL=hppa7200

View File

@@ -126,8 +126,6 @@ cdtest(void)
// in many implementations in order to get global constructors
// run.
//
// Ref: c/src/lib/libbsp/hppa1_1/pxfl/startup/bspstart.c
//
rtems_task main_task(

View File

@@ -352,7 +352,7 @@ uninitialized = 0;
#ifndef unix /* make sure this is not a native compile */
#ifdef i386
#ifdef __i386__
/* cpu.h */
uninitialized += (sizeof _CPU_Null_fp_context) +
@@ -361,7 +361,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
#endif
#ifdef i960
#ifdef __i960__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -369,7 +369,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
#endif
#ifdef hppa1_1
#ifdef __hppa__
/* cpu.h */
uninitialized += (sizeof _CPU_Null_fp_context) +
@@ -380,7 +380,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
(sizeof _CPU_Interrupt_stack_high);
#endif
#ifdef m68k
#ifdef __mc68000__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -388,7 +388,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
#endif
#ifdef sparc
#ifdef __sparc__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -417,7 +417,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
#endif
#ifdef ppc
#ifdef __PPC__
/* cpu.h */
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
@@ -440,7 +440,7 @@ initialized +=
(sizeof _TOD_Days_since_last_leap_year);
#ifndef unix /* make sure this is not native */
#ifdef sparc
#ifdef __sparc__
initialized += (sizeof _CPU_Trap_slot_template);