M pc/mem.h => pc/mem.h +1 -1
@@ 49,7 49,7 @@
#define KSTACK 4096 /* Size of kernel stack */
#define ROMBIOS (KZERO|0xF0000)
#define ISAMEMSIZE (4*MB) /* mem space reserved for ISA */
-#define globalmem(x) (((ulong)x)&KZERO) /* addresses valid in all contexts */
+#define globalmem(x) ((((ulong)x)&0xF0000000)==KZERO) /* addresses valid in all contexts */
#define MACHSIZE 4096
M port/devproc.c => port/devproc.c +0 -2
@@ 818,8 818,6 @@ procctlmemio(Proc *p, ulong offset, int n, void *va, int read)
if(read == 0)
p->newtlb = 1;
- qunlock(&s->lk);
-
return n;
}