diff options
author | Keith Packard <keithp@keithp.com> | 2000-12-08 23:04:57 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2000-12-08 23:04:57 +0000 |
commit | ec4916836c42cb4a1dc1622dddd27951a90a52c9 (patch) | |
tree | 0bc722c38480573b02903cab1f908f030933843c /hw/kdrive/src/kmap.c | |
parent | d09a156d92dbcd9368be20dabe47ea197f19357e (diff) |
kdrive: dont try MTRR on non-x86, fix backspace mappingxf-4_0_1Zaxf-4_0_1Z
Diffstat (limited to 'hw/kdrive/src/kmap.c')
-rw-r--r-- | hw/kdrive/src/kmap.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/hw/kdrive/src/kmap.c b/hw/kdrive/src/kmap.c index e0d615576..a5e34766d 100644 --- a/hw/kdrive/src/kmap.c +++ b/hw/kdrive/src/kmap.c @@ -26,6 +26,12 @@ #include "kdrive.h" #ifdef linux +#ifdef __i386__ +#define HAS_MTRR +#endif +#endif + +#ifdef HAS_MTRR #include <errno.h> #include <unistd.h> #include <sys/mman.h> @@ -91,14 +97,14 @@ KdUnmapDevice (void *addr, CARD32 size) #endif } -#ifdef linux +#ifdef HAS_MTRR static int mtrr; #endif void KdSetMappedMode (CARD32 addr, CARD32 size, int mode) { -#ifdef linux +#ifdef HAS_MTRR struct mtrr_sentry sentry; unsigned long base, bound; unsigned int type; @@ -131,7 +137,7 @@ KdSetMappedMode (CARD32 addr, CARD32 size, int mode) void KdResetMappedMode (CARD32 addr, CARD32 size, int mode) { -#ifdef linux +#ifdef HAS_MTRR struct mtrr_sentry sentry; unsigned long base, bound; unsigned int type; |