forked from Imagelibrary/rtems
Rename hppa1_1 to hppa1.1 and switched to using __XXX__ macros for
the CPU family name constants.
This commit is contained in:
@@ -74,7 +74,7 @@ architecture. The following targets are supported:
|
|||||||
i386-rtems
|
i386-rtems
|
||||||
i386-go32-rtems see notes
|
i386-go32-rtems see notes
|
||||||
i960-rtems
|
i960-rtems
|
||||||
hppa1_1-rtems
|
hppa1.1-rtems
|
||||||
m68k-rtems
|
m68k-rtems
|
||||||
mips64orion-rtems
|
mips64orion-rtems
|
||||||
no_cpu-rtems
|
no_cpu-rtems
|
||||||
@@ -170,7 +170,7 @@ a29k : portsw
|
|||||||
i386 : force386 i386ex
|
i386 : force386 i386ex
|
||||||
i386-go32 : go32 go32_p5
|
i386-go32 : go32 go32_p5
|
||||||
i960 : cvme961
|
i960 : cvme961
|
||||||
hppa1_1 : simhppa
|
hppa1.1 : simhppa
|
||||||
m68k : dmv152 efi332 efi68k gen68302 gen68360 gen68360_040 idp
|
m68k : dmv152 efi332 efi68k gen68302 gen68360 gen68360_040 idp
|
||||||
mvme136 mvme147 mvme147s mvme162 ods68302
|
mvme136 mvme147 mvme147s mvme162 ods68302
|
||||||
no_cpu : no_bsp
|
no_cpu : no_bsp
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ void _CPU_Signal_initialize( void )
|
|||||||
void _CPU_Context_From_CPU_Init()
|
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
|
* HACK - set the _SYSTEM_ID to 0x20c so that setjmp/longjmp
|
||||||
* will handle the full 32 floating point registers.
|
* will handle the full 32 floating point registers.
|
||||||
@@ -474,7 +474,7 @@ void _CPU_Context_Initialize(
|
|||||||
|
|
||||||
addr = (unsigned32 *)_the_context;
|
addr = (unsigned32 *)_the_context;
|
||||||
|
|
||||||
#if defined(hppa1_1)
|
#if defined(__hppa__)
|
||||||
*(addr + RP_OFF) = jmp_addr;
|
*(addr + RP_OFF) = jmp_addr;
|
||||||
*(addr + SP_OFF) = (unsigned32)(_stack_low + CPU_FRAME_SIZE);
|
*(addr + SP_OFF) = (unsigned32)(_stack_low + CPU_FRAME_SIZE);
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ void _CPU_Context_Initialize(
|
|||||||
jmp_addr &= 0xfffffffc;
|
jmp_addr &= 0xfffffffc;
|
||||||
*(addr + RP_OFF) = *(unsigned32 *)jmp_addr;
|
*(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
|
* 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 + SP_OFF) = (unsigned32)(_stack_high - CPU_FRAME_SIZE);
|
||||||
*(addr + FP_OFF) = (unsigned32)(_stack_high);
|
*(addr + FP_OFF) = (unsigned32)(_stack_high);
|
||||||
|
|
||||||
#elif defined(i386) || defined(__i386__)
|
#elif defined(__i386__)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This information was gathered by disassembling setjmp().
|
* This information was gathered by disassembling setjmp().
|
||||||
|
|||||||
@@ -242,9 +242,9 @@ extern "C" {
|
|||||||
* If FALSE, then the grows toward smaller addresses.
|
* If FALSE, then the grows toward smaller addresses.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(hppa1_1)
|
#if defined(__hppa__)
|
||||||
#define CPU_STACK_GROWS_UP TRUE
|
#define CPU_STACK_GROWS_UP TRUE
|
||||||
#elif defined(sparc) || defined(i386) || defined(__i386__)
|
#elif defined(__sparc__) || defined(__i386__)
|
||||||
#define CPU_STACK_GROWS_UP FALSE
|
#define CPU_STACK_GROWS_UP FALSE
|
||||||
#else
|
#else
|
||||||
#error "unknown CPU!!"
|
#error "unknown CPU!!"
|
||||||
@@ -282,11 +282,11 @@ extern "C" {
|
|||||||
* routines are handled.
|
* 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_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
|
||||||
#define CPU_BIG_ENDIAN TRUE
|
#define CPU_BIG_ENDIAN TRUE
|
||||||
#define CPU_LITTLE_ENDIAN FALSE
|
#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_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
|
||||||
#define CPU_BIG_ENDIAN FALSE
|
#define CPU_BIG_ENDIAN FALSE
|
||||||
#define CPU_LITTLE_ENDIAN TRUE
|
#define CPU_LITTLE_ENDIAN TRUE
|
||||||
@@ -313,7 +313,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* may need to put some structures here. */
|
/* may need to put some structures here. */
|
||||||
|
|
||||||
#if defined(hppa1_1)
|
#if defined(__hppa__)
|
||||||
/*
|
/*
|
||||||
* Word indices within a jmp_buf structure
|
* Word indices within a jmp_buf structure
|
||||||
*/
|
*/
|
||||||
@@ -363,7 +363,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(i386) || defined(__i386__)
|
#if defined(__i386__)
|
||||||
|
|
||||||
#ifdef RTEMS_NEWLIB
|
#ifdef RTEMS_NEWLIB
|
||||||
#error "Newlib not installed"
|
#error "Newlib not installed"
|
||||||
@@ -384,7 +384,7 @@ extern "C" {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(sparc)
|
#if defined(__sparc__)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Word indices within a jmp_buf structure
|
* 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
|
* The size of a frame on the stack
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(hppa1_1)
|
#if defined(__hppa__)
|
||||||
#define CPU_FRAME_SIZE (32 * 4)
|
#define CPU_FRAME_SIZE (32 * 4)
|
||||||
#elif defined(sparc)
|
#elif defined(__sparc__)
|
||||||
#define CPU_FRAME_SIZE (112) /* based on disassembled test code */
|
#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 */
|
#define CPU_FRAME_SIZE (24) /* return address, sp, and bp pushed plus fudge */
|
||||||
#else
|
#else
|
||||||
#error "Unknown CPU!!!"
|
#error "Unknown CPU!!!"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@ include $(RTEMS_ROOT)/make/directory.cfg
|
|||||||
# wrapup is the one that actually builds and installs the library
|
# wrapup is the one that actually builds and installs the library
|
||||||
# from the individual .rel files built in other directories
|
# from the individual .rel files built in other directories
|
||||||
# NOTE: we pick up HPPA clock and timer from libcpu/hppa
|
# 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
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ asm("
|
|||||||
_already7:
|
_already7:
|
||||||
movew %sp@+,%d0
|
movew %sp@+,%d0
|
||||||
");
|
");
|
||||||
#if defined (__m68000__) && !defined(__mc68020__)
|
#if defined (__mc68000__) && !defined(__mc68020__)
|
||||||
asm("
|
asm("
|
||||||
lea %sp@(4),%sp"); /* pull off 68000 return address */
|
lea %sp@(4),%sp"); /* pull off 68000 return address */
|
||||||
#endif
|
#endif
|
||||||
@@ -551,7 +551,7 @@ void _returnFromException(Frame *frame)
|
|||||||
frame->fsaveHeader = -1; /* restore regs, but we dont have fsave info*/
|
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
|
/* 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
|
* 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.
|
* onto the stack or the stack will creep every time this happens.
|
||||||
|
|||||||
@@ -119,27 +119,27 @@ extern "C" {
|
|||||||
* view of the VMEbus address space) are not addressed yet.
|
* view of the VMEbus address space) are not addressed yet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(i960)
|
#if defined(__i960__)
|
||||||
#define SHM_LOCK_VALUE 0x00000080
|
#define SHM_LOCK_VALUE 0x00000080
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(m68k)
|
#elif defined(__mc68000__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(i386)
|
#elif defined(__i386__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(mips64orion)
|
#elif defined(__mips__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(hppa1_1)
|
#elif defined(__hppa__)
|
||||||
#define SHM_LOCK_VALUE 0
|
#define SHM_LOCK_VALUE 0
|
||||||
#define SHM_UNLOCK_VALUE 1
|
#define SHM_UNLOCK_VALUE 1
|
||||||
#elif defined(ppc)
|
#elif defined(__PPC__)
|
||||||
#define SHM_LOCK_VALUE 1
|
#define SHM_LOCK_VALUE 1
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(unix)
|
#elif defined(__unix__)
|
||||||
#define SHM_LOCK_VALUE 0
|
#define SHM_LOCK_VALUE 0
|
||||||
#define SHM_UNLOCK_VALUE 1
|
#define SHM_UNLOCK_VALUE 1
|
||||||
#elif defined(no_cpu) /* for this values are irrelevant */
|
#elif defined(no_cpu) /* for this values are irrelevant */
|
||||||
|
|||||||
@@ -119,27 +119,27 @@ extern "C" {
|
|||||||
* view of the VMEbus address space) are not addressed yet.
|
* view of the VMEbus address space) are not addressed yet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(i960)
|
#if defined(__i960__)
|
||||||
#define SHM_LOCK_VALUE 0x00000080
|
#define SHM_LOCK_VALUE 0x00000080
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(m68k)
|
#elif defined(__mc68000__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(i386)
|
#elif defined(__i386__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(mips64orion)
|
#elif defined(__mips__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(hppa1_1)
|
#elif defined(__hppa__)
|
||||||
#define SHM_LOCK_VALUE 0
|
#define SHM_LOCK_VALUE 0
|
||||||
#define SHM_UNLOCK_VALUE 1
|
#define SHM_UNLOCK_VALUE 1
|
||||||
#elif defined(ppc)
|
#elif defined(__PPC__)
|
||||||
#define SHM_LOCK_VALUE 1
|
#define SHM_LOCK_VALUE 1
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(unix)
|
#elif defined(__unix__)
|
||||||
#define SHM_LOCK_VALUE 0
|
#define SHM_LOCK_VALUE 0
|
||||||
#define SHM_UNLOCK_VALUE 1
|
#define SHM_UNLOCK_VALUE 1
|
||||||
#elif defined(no_cpu) /* for this values are irrelevant */
|
#elif defined(no_cpu) /* for this values are irrelevant */
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
* i-cubed limited makes no representations about the suitability
|
* i-cubed limited makes no representations about the suitability
|
||||||
* of this software for any purpose.
|
* 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.
|
* COPYRIGHT (c) 1989-1998.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
* i-cubed limited makes no representations about the suitability
|
* i-cubed limited makes no representations about the suitability
|
||||||
* of this software for any purpose.
|
* 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.
|
* COPYRIGHT (c) 1989-1998.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ entry code transfers control to target board specific
|
|||||||
code).
|
code).
|
||||||
|
|
||||||
For some processors this code exists in some external (to RTEMS)
|
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)
|
and UNIX cpu's)
|
||||||
|
|||||||
@@ -119,27 +119,27 @@ extern "C" {
|
|||||||
* view of the VMEbus address space) are not addressed yet.
|
* view of the VMEbus address space) are not addressed yet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(i960)
|
#if defined(__i960__)
|
||||||
#define SHM_LOCK_VALUE 0x00000080
|
#define SHM_LOCK_VALUE 0x00000080
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(m68k)
|
#elif defined(__mc68000__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(i386)
|
#elif defined(__i386__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(mips64orion)
|
#elif defined(__mips__)
|
||||||
#define SHM_LOCK_VALUE 0x80000000
|
#define SHM_LOCK_VALUE 0x80000000
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(hppa1_1)
|
#elif defined(__hppa__)
|
||||||
#define SHM_LOCK_VALUE 0
|
#define SHM_LOCK_VALUE 0
|
||||||
#define SHM_UNLOCK_VALUE 1
|
#define SHM_UNLOCK_VALUE 1
|
||||||
#elif defined(ppc)
|
#elif defined(__PPC__)
|
||||||
#define SHM_LOCK_VALUE 1
|
#define SHM_LOCK_VALUE 1
|
||||||
#define SHM_UNLOCK_VALUE 0
|
#define SHM_UNLOCK_VALUE 0
|
||||||
#elif defined(unix)
|
#elif defined(__unix__)
|
||||||
#define SHM_LOCK_VALUE 0
|
#define SHM_LOCK_VALUE 0
|
||||||
#define SHM_UNLOCK_VALUE 1
|
#define SHM_UNLOCK_VALUE 1
|
||||||
#elif defined(no_cpu) /* for this values are irrelevant */
|
#elif defined(no_cpu) /* for this values are irrelevant */
|
||||||
|
|||||||
@@ -126,8 +126,6 @@ cdtest(void)
|
|||||||
// in many implementations in order to get global constructors
|
// in many implementations in order to get global constructors
|
||||||
// run.
|
// run.
|
||||||
//
|
//
|
||||||
// Ref: c/src/lib/libbsp/hppa1_1/pxfl/startup/bspstart.c
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
rtems_task main_task(
|
rtems_task main_task(
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ uninitialized = 0;
|
|||||||
|
|
||||||
#ifndef unix /* make sure this is not a native compile */
|
#ifndef unix /* make sure this is not a native compile */
|
||||||
|
|
||||||
#ifdef i386
|
#ifdef __i386__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Null_fp_context) +
|
uninitialized += (sizeof _CPU_Null_fp_context) +
|
||||||
@@ -361,7 +361,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef i960
|
#ifdef __i960__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -369,7 +369,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef hppa1_1
|
#ifdef __hppa__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Null_fp_context) +
|
uninitialized += (sizeof _CPU_Null_fp_context) +
|
||||||
@@ -380,7 +380,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
|
|||||||
(sizeof _CPU_Interrupt_stack_high);
|
(sizeof _CPU_Interrupt_stack_high);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef m68k
|
#ifdef __mc68000__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -388,7 +388,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef sparc
|
#ifdef __sparc__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -417,7 +417,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ppc
|
#ifdef __PPC__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -440,7 +440,7 @@ initialized +=
|
|||||||
(sizeof _TOD_Days_since_last_leap_year);
|
(sizeof _TOD_Days_since_last_leap_year);
|
||||||
|
|
||||||
#ifndef unix /* make sure this is not native */
|
#ifndef unix /* make sure this is not native */
|
||||||
#ifdef sparc
|
#ifdef __sparc__
|
||||||
|
|
||||||
initialized += (sizeof _CPU_Trap_slot_template);
|
initialized += (sizeof _CPU_Trap_slot_template);
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ void _CPU_Signal_initialize( void )
|
|||||||
void _CPU_Context_From_CPU_Init()
|
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
|
* HACK - set the _SYSTEM_ID to 0x20c so that setjmp/longjmp
|
||||||
* will handle the full 32 floating point registers.
|
* will handle the full 32 floating point registers.
|
||||||
@@ -474,7 +474,7 @@ void _CPU_Context_Initialize(
|
|||||||
|
|
||||||
addr = (unsigned32 *)_the_context;
|
addr = (unsigned32 *)_the_context;
|
||||||
|
|
||||||
#if defined(hppa1_1)
|
#if defined(__hppa__)
|
||||||
*(addr + RP_OFF) = jmp_addr;
|
*(addr + RP_OFF) = jmp_addr;
|
||||||
*(addr + SP_OFF) = (unsigned32)(_stack_low + CPU_FRAME_SIZE);
|
*(addr + SP_OFF) = (unsigned32)(_stack_low + CPU_FRAME_SIZE);
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ void _CPU_Context_Initialize(
|
|||||||
jmp_addr &= 0xfffffffc;
|
jmp_addr &= 0xfffffffc;
|
||||||
*(addr + RP_OFF) = *(unsigned32 *)jmp_addr;
|
*(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
|
* 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 + SP_OFF) = (unsigned32)(_stack_high - CPU_FRAME_SIZE);
|
||||||
*(addr + FP_OFF) = (unsigned32)(_stack_high);
|
*(addr + FP_OFF) = (unsigned32)(_stack_high);
|
||||||
|
|
||||||
#elif defined(i386) || defined(__i386__)
|
#elif defined(__i386__)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This information was gathered by disassembling setjmp().
|
* This information was gathered by disassembling setjmp().
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
include $(RTEMS_ROOT)/make/custom/default.cfg
|
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=hppa1_1
|
||||||
RTEMS_CPU_MODEL=hppa7200
|
RTEMS_CPU_MODEL=hppa7200
|
||||||
|
|
||||||
|
|||||||
@@ -126,8 +126,6 @@ cdtest(void)
|
|||||||
// in many implementations in order to get global constructors
|
// in many implementations in order to get global constructors
|
||||||
// run.
|
// run.
|
||||||
//
|
//
|
||||||
// Ref: c/src/lib/libbsp/hppa1_1/pxfl/startup/bspstart.c
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
rtems_task main_task(
|
rtems_task main_task(
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ uninitialized = 0;
|
|||||||
|
|
||||||
#ifndef unix /* make sure this is not a native compile */
|
#ifndef unix /* make sure this is not a native compile */
|
||||||
|
|
||||||
#ifdef i386
|
#ifdef __i386__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Null_fp_context) +
|
uninitialized += (sizeof _CPU_Null_fp_context) +
|
||||||
@@ -361,7 +361,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef i960
|
#ifdef __i960__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -369,7 +369,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef hppa1_1
|
#ifdef __hppa__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Null_fp_context) +
|
uninitialized += (sizeof _CPU_Null_fp_context) +
|
||||||
@@ -380,7 +380,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
|
|||||||
(sizeof _CPU_Interrupt_stack_high);
|
(sizeof _CPU_Interrupt_stack_high);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef m68k
|
#ifdef __mc68000__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -388,7 +388,7 @@ uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef sparc
|
#ifdef __sparc__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -417,7 +417,7 @@ uninitialized += (sizeof _CPU_Null_fp_context) +
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ppc
|
#ifdef __PPC__
|
||||||
|
|
||||||
/* cpu.h */
|
/* cpu.h */
|
||||||
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
uninitialized += (sizeof _CPU_Interrupt_stack_low) +
|
||||||
@@ -440,7 +440,7 @@ initialized +=
|
|||||||
(sizeof _TOD_Days_since_last_leap_year);
|
(sizeof _TOD_Days_since_last_leap_year);
|
||||||
|
|
||||||
#ifndef unix /* make sure this is not native */
|
#ifndef unix /* make sure this is not native */
|
||||||
#ifdef sparc
|
#ifdef __sparc__
|
||||||
|
|
||||||
initialized += (sizeof _CPU_Trap_slot_template);
|
initialized += (sizeof _CPU_Trap_slot_template);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user