From 3d2b230129a8376f215b1ccba2a855233c5bbd03 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Sat, 1 Jan 1994 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1994-01-01 --- pc/mem.h | 2 +- port/devproc.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pc/mem.h b/pc/mem.h index 3b4faee802a5cb9138e2ba0cf0ad49444adea820..db5ab4f333556d5b285a411377d9a40a295c8ba3 100644 --- a/pc/mem.h +++ b/pc/mem.h @@ -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 diff --git a/port/devproc.c b/port/devproc.c index 4b74abec9fa019870e81aa4173f403d1bc146ef2..c6dc6cf545794bdabe0ad914b9d1347def62444b 100644 --- a/port/devproc.c +++ b/port/devproc.c @@ -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; }