diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-29 17:19:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-09-29 17:19:16 +0000 |
commit | 11290355c9454c575d56c7928a725fd95e88d6f8 (patch) | |
tree | 1cd5ff063250cff764a59189f1e1956c40925a35 /cpukit/score/cpu | |
parent | new programs added (diff) | |
download | rtems-11290355c9454c575d56c7928a725fd95e88d6f8.tar.bz2 |
all targets compile .. tony's patches in place
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/hppa1.1/cpu.c | 21 | ||||
-rw-r--r-- | cpukit/score/cpu/unix/cpu.c | 2 |
2 files changed, 19 insertions, 4 deletions
diff --git a/cpukit/score/cpu/hppa1.1/cpu.c b/cpukit/score/cpu/hppa1.1/cpu.c index f132033595..09c5d3d54b 100644 --- a/cpukit/score/cpu/hppa1.1/cpu.c +++ b/cpukit/score/cpu/hppa1.1/cpu.c @@ -14,12 +14,13 @@ * Division Incorporated makes no representations about the * suitability of this software for any purpose. * - * $Id$ + * cpu.c,v 1.7 1995/09/19 14:49:35 joel Exp */ #include <rtems/system.h> -#include <rtems/score/isr.h> -#include <rtems/score/wkspace.h> +#include <rtems/fatal.h> +#include <rtems/core/isr.h> +#include <rtems/core/wkspace.h> void hppa_external_interrupt_initialize(void); void hppa_external_interrupt_enable(unsigned32); @@ -105,6 +106,20 @@ void _CPU_Initialize( /*PAGE * + * _CPU_ISR_Get_level + */ + +unsigned32 _CPU_ISR_Get_level(void) +{ + int level; + HPPA_ASM_SSM(0, level); /* change no bits; just get copy */ + if (level & HPPA_PSW_I) + return 1; + return 0; +} + +/*PAGE + * * _CPU_ISR_install_raw_handler */ diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c index 54d4104ac7..a7b2140742 100644 --- a/cpukit/score/cpu/unix/cpu.c +++ b/cpukit/score/cpu/unix/cpu.c @@ -173,7 +173,7 @@ void _CPU_Signal_initialize( void ) void _CPU_Context_From_CPU_Init() { -#if defined(hppa1_1) && defined(RTEMS_UNIXLIB) +#if defined(hppa1_1) && defined(RTEMS_UNIXLIB_SETJMP) /* * HACK - set the _SYSTEM_ID to 0x20c so that setjmp/longjmp * will handle the full 32 floating point registers. |