forked from Imagelibrary/rtems
2001-04-17 Joel Sherrill <joel@OARcorp.com>
* shared/include/cpu.h: Added ifndef ASM.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2001-04-17 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* shared/include/cpu.h: Added ifndef ASM.
|
||||||
|
|
||||||
2001-04-17 Joel Sherrill <joel@OARcorp.com>
|
2001-04-17 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* ChangeLog: Corrected paths on past few commits.
|
* ChangeLog: Corrected paths on past few commits.
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <rtems/score/cpu.h>
|
#include <rtems/score/cpu.h>
|
||||||
#include <libcpu/raw_exception.h>
|
#include <libcpu/raw_exception.h>
|
||||||
#include <libcpu/cpu.h>
|
#include <libcpu/cpu.h>
|
||||||
|
#include <libcpu/cpuIdent.h>
|
||||||
|
|
||||||
static rtems_raw_except_connect_data* raw_except_table;
|
static rtems_raw_except_connect_data* raw_except_table;
|
||||||
static rtems_raw_except_connect_data default_raw_except_entry;
|
static rtems_raw_except_connect_data default_raw_except_entry;
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ n:
|
|||||||
* Routines to access the time base register
|
* Routines to access the time base register
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef ASM
|
||||||
static inline unsigned long long PPC_Get_timebase_register( void )
|
static inline unsigned long long PPC_Get_timebase_register( void )
|
||||||
{
|
{
|
||||||
unsigned long tbr_low;
|
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));
|
asm volatile( "mtspr 285, %0" : : "r" (tbr_high));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* ASM */
|
||||||
|
|
||||||
#define _CPU_MSR_GET( _msr_value ) \
|
#define _CPU_MSR_GET( _msr_value ) \
|
||||||
do { \
|
do { \
|
||||||
|
|||||||
Reference in New Issue
Block a user