]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/9/teg2/main.c
devarch: restrict i/o port access to 64K, disallow msr 32-bit wrap arround (thanks...
[plan9front.git] / sys / src / 9 / teg2 / main.c
index e26d8bd87c4ca90c4b9bc1925d8a7ad6dd793fbf..892224132ab62b9fca3a5aecdb1419190664975a 100644 (file)
@@ -455,7 +455,6 @@ main(void)
 //     i8250console();                 /* too early; see init0 */
 
        pageinit();                     /* prints "1020M memory: ⋯ */
-       swapinit();
        userinit();
 
        /*
@@ -495,7 +494,7 @@ exit(int)
 int
 isaconfig(char *class, int ctlrno, ISAConf *isa)
 {
-       char cc[32], *p;
+       char cc[32], *p, *x;
        int i;
 
        snprint(cc, sizeof cc, "%s%d", class, ctlrno);
@@ -503,6 +502,10 @@ isaconfig(char *class, int ctlrno, ISAConf *isa)
        if(p == nil)
                return 0;
 
+       x = nil;
+       kstrdup(&x, p);
+       p = x;
+
        isa->type = "";
        isa->nopt = tokenize(p, isa->opt, NISAOPT);
        for(i = 0; i < isa->nopt; i++){
@@ -907,3 +910,10 @@ wakewfi(void)
                intrcpu(cpu);
 #endif
 }
+
+void
+setupwatchpts(Proc *, Watchpt *, int n)
+{
+       if(n > 0)
+               error("no watchpoints");
+}