~kris/9p

9hist

6efe82f1388aef952d326232ebfa97c1b9d52584 — David du Colombier 35 years ago b359528
Plan 9 from Bell Labs 1991-04-04
2 files changed, 3 insertions(+), 1 deletions(-)

M port/stream.c
M ss/mem.h
M port/stream.c => port/stream.c +1 -1
@@ 1249,7 1249,7 @@ streamwrite(Chan *c, void *a, long n, int docopy)
	if(q->other->flag & QHUNGUP)
		error(Ehungup);

	if(!docopy && GLOBAL(a)){
	if(!docopy && isphys(a)){
		/*
		 *  `a' is global to the whole system, just create a
		 *  pointer to it and pass it on.

M ss/mem.h => ss/mem.h +2 -0
@@ 131,3 131,5 @@

#define	NSEG		5
#define	MACHSIZE	4096

#define isphys(x) ((((ulong)(x)&0xF0000000) == KZERO)