diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-05-02 10:23:51 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1997-05-02 10:23:51 +0000 |
commit | 35d67eebed13d351279ad5d556dc04dafb068638 (patch) | |
tree | f270675e1e64e6f2c5bc08db10131adb420529f8 | |
parent | 861ebf8542fb824b4e6455b1a9b42b2152c3ffe1 (diff) |
changes to make libkvm.old build again on the pmax
-rw-r--r-- | sys/arch/pmax/include/cpuregs.h | 6 | ||||
-rw-r--r-- | sys/arch/pmax/include/pte.h | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/arch/pmax/include/cpuregs.h b/sys/arch/pmax/include/cpuregs.h index 2ac0b9825ee..f446b79de00 100644 --- a/sys/arch/pmax/include/cpuregs.h +++ b/sys/arch/pmax/include/cpuregs.h @@ -67,6 +67,12 @@ #define MACH_MAX_MEM_ADDR 0xbe000000 #define MACH_RESERVED_ADDR 0xbfc80000 +/* XXX - this is just to make libkvm happy - all MACH_CAHED... + should be changed to CAHED etc. to be in sync with + the arc +*/ +#define CACHED_TO_PHYS(x) ((unsigned)(x) & 0x1fffffff) + #define MACH_CACHED_TO_PHYS(x) ((unsigned)(x) & 0x1fffffff) #define MACH_PHYS_TO_CACHED(x) ((unsigned)(x) | MACH_CACHED_MEMORY_ADDR) #define MACH_UNCACHED_TO_PHYS(x) ((unsigned)(x) & 0x1fffffff) diff --git a/sys/arch/pmax/include/pte.h b/sys/arch/pmax/include/pte.h index c5dbb36a89b..756562207a7 100644 --- a/sys/arch/pmax/include/pte.h +++ b/sys/arch/pmax/include/pte.h @@ -16,6 +16,14 @@ #ifndef __MIPS_PTE_H__ #define __MIPS_PTE_H__ +/* XXX hack to make libkvm.old happy - MIPS1 is only defined if we are + building a kernel - but not for libkvm.old - so we define MIPS1 + here - which is no problem at the moment - because the pmax port + at the moment only supports MIPS1 cpu based machines +*/ +#if !defined(MIPS1) && !defined(MIPS3) +#define MIPS1 +#endif #if defined(MIPS1) && defined(MIPS3) #error Cannot yet support both "MIPS1" (r2000 family) and "MIPS3" (r4000 family) in the same kernel. |