X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-powerpc%2Fprocessor.h;h=a26c32ee5527f300dc45620a7ab582b6bed8d699;hb=refs%2Fheads%2Fvserver;hp=ee810c659612638a149e991c803bdf91e1cec36a;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git diff --git a/include/asm-powerpc/processor.h b/include/asm-powerpc/processor.h index ee810c659..a26c32ee5 100644 --- a/include/asm-powerpc/processor.h +++ b/include/asm-powerpc/processor.h @@ -32,6 +32,7 @@ #define _CHRP_Motorola 0x04 /* motorola chrp, the cobra */ #define _CHRP_IBM 0x05 /* IBM chrp, the longtrail and longtrail 2 */ #define _CHRP_Pegasos 0x06 /* Genesi/bplan's Pegasos and Pegasos2 */ +#define _CHRP_briq 0x07 /* TotalImpact's briQ */ #if defined(__KERNEL__) && defined(CONFIG_PPC32) @@ -52,10 +53,6 @@ extern unsigned char ucBoardRevMaj, ucBoardRevMin; #endif /* CONFIG_PPC_PREP */ -#ifndef CONFIG_PPC_MULTIPLATFORM -#define _machine 0 -#endif /* CONFIG_PPC_MULTIPLATFORM */ - #endif /* defined(__KERNEL__) && defined(CONFIG_PPC32) */ /* @@ -273,23 +270,6 @@ static inline void prefetchw(const void *x) #define HAVE_ARCH_PICK_MMAP_LAYOUT #endif -#ifdef CONFIG_PPC_CELL /* MAMBO SIMULATION code */ -#define MSR_SIM_LG 29 -#define MSR_SIM __MASK(MSR_SIM_LG) - -static __inline__ int __onsim(void) -{ - unsigned long msr; - __asm__ __volatile__ ("mfmsr %0" : "=&r" (msr)); - return ((msr & MSR_SIM) ? 1 : 0); -} -#endif /* CONFIG_PPC_CELL */ - #endif /* __KERNEL__ */ -#else -/* must be given a register to perform the compare, set cr0 = 1 - * Usage: __onsim(r0); bne _if_onsim - */ -#define __onsim(r) mfmsr r; rldicl. r,r,35,63 #endif /* __ASSEMBLY__ */ #endif /* _ASM_POWERPC_PROCESSOR_H */