summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/kdrive/linux/keyboard.c4
-rw-r--r--hw/kdrive/src/kmap.c12
2 files changed, 11 insertions, 5 deletions
diff --git a/hw/kdrive/linux/keyboard.c b/hw/kdrive/linux/keyboard.c
index b9d52884d..3040af987 100644
--- a/hw/kdrive/linux/keyboard.c
+++ b/hw/kdrive/linux/keyboard.c
@@ -1,5 +1,5 @@
/*
- * $XFree86$
+ * $XFree86: xc/programs/Xserver/hw/kdrive/linux/keyboard.c,v 1.4 2000/10/10 14:05:48 tsi Exp $
*
* Copyright © 1999 Keith Packard
*
@@ -64,7 +64,7 @@ static const KeySym linux_to_x[256] = {
XK_p, XK_q, XK_r, XK_s,
XK_t, XK_u, XK_v, XK_w,
XK_x, XK_y, XK_z, XK_braceleft,
- XK_bar, XK_braceright, XK_asciitilde, XK_Delete,
+ XK_bar, XK_braceright, XK_asciitilde, XK_BackSpace,
NoSymbol, NoSymbol, NoSymbol, NoSymbol,
NoSymbol, NoSymbol, NoSymbol, NoSymbol,
NoSymbol, NoSymbol, NoSymbol, NoSymbol,
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;