summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2009-12-30 16:42:38 +0200
committerTiago Vignatti <tiago.vignatti@nokia.com>2009-12-30 16:42:38 +0200
commit306864f1daedb674772809f7597e12c922546d64 (patch)
tree492ccff56f52a8b1241c33d486292c1abba58551
parent36edcf280080e53efee30bbaca07767350674c16 (diff)
lrmi/vm86: make compile using dummy functions
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
-rw-r--r--src/lrmi/backend-vm86.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/src/lrmi/backend-vm86.c b/src/lrmi/backend-vm86.c
index bac1414..c8c14a2 100644
--- a/src/lrmi/backend-vm86.c
+++ b/src/lrmi/backend-vm86.c
@@ -46,16 +46,17 @@ set_bit(unsigned int bit, void *array)
a[bit / 8] |= (1 << (bit % 8));
}
-int
-LRMI_init(void)
+void
+LRMI_init(xf86Int10InfoPtr pInt)
{
+#if 0
void *m;
if (context.ready)
- return 1;
+ return;
if (!LRMI_common_init())
- return 0;
+ return;
/*
Allocate a stack
@@ -91,10 +92,11 @@ LRMI_init(void)
#endif
context.ready = 1;
-
- return 1;
+#endif
+ return;
}
+#if 0
static void
set_regs(struct LRMI_regs *r)
{
@@ -129,7 +131,9 @@ get_regs(struct LRMI_regs *r)
r->fs = CONTEXT_REGS.REG(fs);
r->gs = CONTEXT_REGS.REG(gs);
}
+#endif
+#if 0
int
LRMI_call(struct LRMI_regs *r)
{
@@ -159,7 +163,12 @@ LRMI_call(struct LRMI_regs *r)
return vret;
}
+#endif
+void
+LRMI_int(xf86Int10InfoPtr pInt)
+{
+#if 0
int
LRMI_int(int i, struct LRMI_regs *r)
{
@@ -204,12 +213,13 @@ LRMI_int(int i, struct LRMI_regs *r)
get_regs(r);
return vret;
+#endif
}
-size_t
-LRMI_base_addr(void)
+void *
+LRMI_base_addr(xf86Int10InfoPtr pInt, unsigned long addr)
{
- return 0;
+ return NULL;
}
#else /* (__linux__ || __NetBSD__ || __FreeBSD__ || __OpenBSD__) && __i386__ */