From 6805640ec7e626a8ce21d0527c4f9222716af039 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 29 Jul 1999 23:01:15 +0000 Subject: Patch from Charles-Antoine Gauthier to correct a typo CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES was actually typed in as CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES. --- c/src/exec/score/cpu/a29k/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/hppa1.1/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/i386/cpu.c | 5 ++++- c/src/exec/score/cpu/i386/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/i960/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/m68k/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/mips/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/powerpc/mpc750/cpu.h | 2 +- c/src/exec/score/cpu/powerpc/other_cpu/cpu.h | 2 +- c/src/exec/score/cpu/sh/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/sparc/rtems/score/cpu.h | 2 +- c/src/exec/score/cpu/unix/rtems/score/cpu.h | 4 ++-- 14 files changed, 18 insertions(+), 15 deletions(-) (limited to 'c/src/exec') diff --git a/c/src/exec/score/cpu/a29k/rtems/score/cpu.h b/c/src/exec/score/cpu/a29k/rtems/score/cpu.h index 3bc939ca91..9cf2fa6f2f 100644 --- a/c/src/exec/score/cpu/a29k/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/a29k/rtems/score/cpu.h @@ -312,7 +312,7 @@ extern void a29k_sigdfl_sup(void); #error "Check these definitions!!!" -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/hppa1.1/rtems/score/cpu.h b/c/src/exec/score/cpu/hppa1.1/rtems/score/cpu.h index ea13c01a66..7e810bac52 100644 --- a/c/src/exec/score/cpu/hppa1.1/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/hppa1.1/rtems/score/cpu.h @@ -69,7 +69,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/i386/cpu.c b/c/src/exec/score/cpu/i386/cpu.c index 476e610b67..cabc285ce9 100644 --- a/c/src/exec/score/cpu/i386/cpu.c +++ b/c/src/exec/score/cpu/i386/cpu.c @@ -47,11 +47,12 @@ void _CPU_Initialize( * Manual and should work on any coprocessor greater than * the i80287. * - * NOTE: The NO RTEMS_WAIT form of the coprocessor instructions + * NOTE: The NO WAIT form of the coprocessor instructions * MUST be used in case there is not a coprocessor * to wait for. */ +#if CPU_HARDWARE_FP fp_status = 0xa5a5; asm volatile( "fninit" ); asm volatile( "fnstsw %0" : "=a" (fp_status) : "0" (fp_status) ); @@ -64,6 +65,8 @@ void _CPU_Initialize( : "0" (fp_context) ); } +#endif + } /*PAGE diff --git a/c/src/exec/score/cpu/i386/rtems/score/cpu.h b/c/src/exec/score/cpu/i386/rtems/score/cpu.h index 29f7d1161b..045df2ae72 100644 --- a/c/src/exec/score/cpu/i386/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/i386/rtems/score/cpu.h @@ -85,7 +85,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN FALSE #define CPU_LITTLE_ENDIAN TRUE diff --git a/c/src/exec/score/cpu/i960/rtems/score/cpu.h b/c/src/exec/score/cpu/i960/rtems/score/cpu.h index dacb0b159a..703abab583 100644 --- a/c/src/exec/score/cpu/i960/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/i960/rtems/score/cpu.h @@ -74,7 +74,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/m68k/rtems/score/cpu.h b/c/src/exec/score/cpu/m68k/rtems/score/cpu.h index 743677a944..cc51428243 100644 --- a/c/src/exec/score/cpu/m68k/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/m68k/rtems/score/cpu.h @@ -94,7 +94,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/mips/rtems/score/cpu.h b/c/src/exec/score/cpu/mips/rtems/score/cpu.h index 0dfa3b0e98..ba0e15ab10 100644 --- a/c/src/exec/score/cpu/mips/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/mips/rtems/score/cpu.h @@ -303,7 +303,7 @@ extern void mips_fatal_error ( int error ); * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h b/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h index 0dfa3b0e98..ba0e15ab10 100644 --- a/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/mips64orion/rtems/score/cpu.h @@ -303,7 +303,7 @@ extern void mips_fatal_error ( int error ); * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h b/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h index 68d75c6b9f..ea18fe2cf3 100644 --- a/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/no_cpu/rtems/score/cpu.h @@ -272,7 +272,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/powerpc/mpc750/cpu.h b/c/src/exec/score/cpu/powerpc/mpc750/cpu.h index e3ea78eb82..3d5cc299b4 100644 --- a/c/src/exec/score/cpu/powerpc/mpc750/cpu.h +++ b/c/src/exec/score/cpu/powerpc/mpc750/cpu.h @@ -295,7 +295,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/powerpc/other_cpu/cpu.h b/c/src/exec/score/cpu/powerpc/other_cpu/cpu.h index 325f6bd7af..ba1cddb3ca 100644 --- a/c/src/exec/score/cpu/powerpc/other_cpu/cpu.h +++ b/c/src/exec/score/cpu/powerpc/other_cpu/cpu.h @@ -301,7 +301,7 @@ typedef void ( *ppc_isr_entry )( int, struct CPU_Interrupt_frame * ); * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/sh/rtems/score/cpu.h b/c/src/exec/score/cpu/sh/rtems/score/cpu.h index 0a67679b5e..935cbd4e48 100644 --- a/c/src/exec/score/cpu/sh/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/sh/rtems/score/cpu.h @@ -255,7 +255,7 @@ extern "C" { * NOTE: SHes can be big or little endian, the default is big endian */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE /* __LITTLE_ENDIAN__ is defined if -ml is given to gcc */ #if defined(__LITTLE_ENDIAN__) diff --git a/c/src/exec/score/cpu/sparc/rtems/score/cpu.h b/c/src/exec/score/cpu/sparc/rtems/score/cpu.h index 7a55ae5d0d..5e34126b2f 100644 --- a/c/src/exec/score/cpu/sparc/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/sparc/rtems/score/cpu.h @@ -197,7 +197,7 @@ extern "C" { * routines are handled. */ -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE diff --git a/c/src/exec/score/cpu/unix/rtems/score/cpu.h b/c/src/exec/score/cpu/unix/rtems/score/cpu.h index 227a631139..466a5dc5c7 100644 --- a/c/src/exec/score/cpu/unix/rtems/score/cpu.h +++ b/c/src/exec/score/cpu/unix/rtems/score/cpu.h @@ -291,11 +291,11 @@ extern "C" { */ #if defined(__hppa__) || defined(__sparc__) -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN TRUE #define CPU_LITTLE_ENDIAN FALSE #elif defined(__i386__) -#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE +#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE #define CPU_BIG_ENDIAN FALSE #define CPU_LITTLE_ENDIAN TRUE #else -- cgit v1.2.3