From b929c2de1db33aee7ac850f8e3a01cddec1eaf26 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 17 Apr 2002 19:39:16 +0000 Subject: 2001-04-17 Joel Sherrill * shared/include/cpu.h: Added ifndef ASM. --- c/src/lib/libcpu/powerpc/ChangeLog | 4 ++++ c/src/lib/libcpu/powerpc/mpc8xx/exceptions/raw_exception.c | 1 + c/src/lib/libcpu/powerpc/shared/include/cpu.h | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libcpu/powerpc') diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 5ca295aede..711bbf1617 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,7 @@ +2001-04-17 Joel Sherrill + + * shared/include/cpu.h: Added ifndef ASM. + 2001-04-17 Joel Sherrill * ChangeLog: Corrected paths on past few commits. diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/exceptions/raw_exception.c b/c/src/lib/libcpu/powerpc/mpc8xx/exceptions/raw_exception.c index d1dfde1f12..c983e5c26d 100644 --- a/c/src/lib/libcpu/powerpc/mpc8xx/exceptions/raw_exception.c +++ b/c/src/lib/libcpu/powerpc/mpc8xx/exceptions/raw_exception.c @@ -23,6 +23,7 @@ #include #include #include +#include static rtems_raw_except_connect_data* raw_except_table; static rtems_raw_except_connect_data default_raw_except_entry; diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpu.h b/c/src/lib/libcpu/powerpc/shared/include/cpu.h index fa68d6604e..7d61aef09b 100644 --- a/c/src/lib/libcpu/powerpc/shared/include/cpu.h +++ b/c/src/lib/libcpu/powerpc/shared/include/cpu.h @@ -179,6 +179,7 @@ n: * Routines to access the time base register */ +#ifndef ASM static inline unsigned long long PPC_Get_timebase_register( void ) { unsigned long tbr_low; @@ -209,7 +210,7 @@ static inline void PPC_Set_timebase_register (unsigned long long tbr) asm volatile( "mtspr 285, %0" : : "r" (tbr_high)); } -#endif +#endif /* ASM */ #define _CPU_MSR_GET( _msr_value ) \ do { \ -- cgit v1.2.3