diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-13 05:32:19 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-07-13 05:32:19 +0000 |
commit | 2127edd2e4b37d0e5b88e5d8eed4f87e927f83da (patch) | |
tree | 735db4c7a37fa272b6302d00e5a8c7e4c1bf84cb /sys/powerpc/include/spr.h | |
parent | 0ac6bad14a01affb256183801472e3a26ef32a4e (diff) | |
download | FreeBSD-src-2127edd2e4b37d0e5b88e5d8eed4f87e927f83da.zip FreeBSD-src-2127edd2e4b37d0e5b88e5d8eed4f87e927f83da.tar.gz |
MFppc64:
Kernel sources for 64-bit PowerPC, along with build-system changes to keep
32-bit kernels compiling (build system changes for 64-bit kernels are
coming later). Existing 32-bit PowerPC kernel configurations must be
updated after this change to specify their architecture.
Diffstat (limited to 'sys/powerpc/include/spr.h')
-rw-r--r-- | sys/powerpc/include/spr.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/powerpc/include/spr.h b/sys/powerpc/include/spr.h index 48ee536..317f4d1 100644 --- a/sys/powerpc/include/spr.h +++ b/sys/powerpc/include/spr.h @@ -37,6 +37,9 @@ __asm __volatile("mfspr %0,%1" : "=r"(val) : "K"(reg)); \ val; } ) + +#ifndef __powerpc64__ + /* The following routines allow manipulation of the full 64-bit width * of SPRs on 64 bit CPUs in bridge mode */ @@ -74,6 +77,8 @@ : "=r"(scratch), "=r"(val) : "K"(reg), "r"(32), "r"(1)); \ val; } ) +#endif + #endif /* _LOCORE */ /* @@ -143,13 +148,26 @@ #define IBM401E2 0x0025 #define IBM401F2 0x0026 #define IBM401G2 0x0027 +#define IBMRS64II 0x0033 +#define IBMRS64III 0x0034 +#define IBMPOWER4 0x0035 +#define IBMRS64III_2 0x0036 +#define IBMRS64IV 0x0037 +#define IBMPOWER4PLUS 0x0038 #define IBM970 0x0039 +#define IBMPOWER5 0x003a +#define IBMPOWER5PLUS 0x003b #define IBM970FX 0x003c -#define IBMPOWER3 0x0041 +#define IBMPOWER6 0x003e +#define IBMPOWER7 0x003f +#define IBMPOWER3 0x0040 +#define IBMPOWER3PLUS 0x0041 #define IBM970MP 0x0044 #define IBM970GX 0x0045 #define MPC860 0x0050 +#define IBMCELLBE 0x0070 #define MPC8240 0x0081 +#define PA6T 0x0090 #define IBM405GP 0x4011 #define IBM405L 0x4161 #define IBM750FX 0x7000 |