M pc/devarch.c => pc/devarch.c +1 -0
@@ 107,6 107,7 @@ ioinit(void)
// a dummy entry at 2^16
ioalloc(0x10000, 1, 0, "dummy");
+ ioalloc(0x1000, 1, 0, "dummy");
}
// Reserve a range to be ioalloced later. This is in particular useful for exchangable cards, such
M pc/etherelnk3.c => pc/etherelnk3.c +2 -2
@@ 1491,8 1491,8 @@ tcm59Xpci(void)
if(!(p->mem[0].bar & 0x01))
continue;
port = p->mem[0].bar & ~0x01;
- print("tcm59Xpci: Allocating port %X\n", port);
- if(ioalloc(port, p->mem[0].size, 0, "tcm59Xpci") < 0){
+ if((port = ioalloc((port == 0)? -1: port, p->mem[0].size,
+ 0, "tcm59Xpci")) < 0){
print("tcm59Xpci: port 0x%uX in use\n", port);
continue;
}
M pc/pci.c => pc/pci.c +2 -2
@@ 575,7 575,7 @@ pcicfginit(void)
/* reset the cardbus */
bcr = pcicfgr16(pci, PciBCR);
pcicfgw16(pci, PciBCR, 0x40 | bcr);
- pcicfgw16(pci, PciBCR, bcr);
+ delay(50);
}
pci = pci->link;
}
@@ 851,7 851,7 @@ pcilhinv(Pcidev* p)
}
while(p != nil) {
if(p->bridge != nil)
- pcihinv(p->bridge);
+ pcilhinv(p->bridge);
p = p->link;
}
}
M port/auth.c => port/auth.c +1 -1
@@ 5,7 5,7 @@
#include "fns.h"
#include "../port/error.h"
-#include <auth.h>
+#include <authsrv.h>
char *eve;
char evekey[DESKEYLEN];
M port/devcons.c => port/devcons.c +1 -1
@@ 5,7 5,7 @@
#include "fns.h"
#include "../port/error.h"
-#include <auth.h>
+#include <authsrv.h>
void (*consdebug)(void) = nil;
void (*screenputs)(char*, int) = nil;