ref: 1d674abe9cdb20c59852fe096412a6890314f99a
parent: 035aacf6f5c23f0513e240046818ef203e8d87cb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Dec 14 16:58:02 EST 2014
xen: fix mtrr dummy functions
--- a/sys/src/9/xen/archxen.c
+++ b/sys/src/9/xen/archxen.c
@@ -97,7 +97,8 @@
void i8259off(void) {}
int i8259vecno(int) { return 0; }
int mtrrprint(char*, long) { return 0; }
-int mtrr(uvlong, uvlong, char *) { return 0; }
+char* mtrr(uvlong, uvlong, char *) { return nil; }
+void mtrrsync(void) {}
/*
* XXX until fpsave is debugged
--- a/sys/src/9/xen/fns.h
+++ b/sys/src/9/xen/fns.h
@@ -78,8 +78,9 @@
int mmukmapsync(ulong);
#define mmunewpage(x)
ulong* mmuwalk(ulong*, ulong, int, int);
-int mtrr(uvlong, uvlong, char *);
+char* mtrr(uvlong, uvlong, char *);
int mtrrprint(char *, long);
+void mtrrsync(void);
void outb(int, int);
void outsb(int, void*, int);
void outs(int, ushort);