~kris/9p

9hist

5273ecd4b5be9b45f86238a026940af8a0ad0a13 — David du Colombier 33 years ago b14b431
Plan 9 from Bell Labs 1993-04-10
3 files changed, 13 insertions(+), 3 deletions(-)

M boot/local.c
M pc/devfloppy.c
M port/stfcall.c
M boot/local.c => boot/local.c +2 -0
@@ 24,6 24,8 @@ configlocal(Method *mp)
	}
	if(*sys == '/' || *sys == '#')
		disk = sys;
	if(disk)
		setenv("bootdisk", disk);
	USED(mp);
}


M pc/devfloppy.c => pc/devfloppy.c +1 -0
@@ 110,6 110,7 @@ Type floppytype[] =
 { "5¼HD",	T1200kb, 512, 15, 2, 1, 80, 0x2A, 0x50, 0, },
 { "5¼DD",	T1200kb, 512,  9, 2, 2, 40, 0x2A, 0x50, 1, },
 { "5¼DD",	T360kb,  512,  9, 2, 1, 40, 0x2A, 0x50, 2, },
 { "ATT3B1",	T360kb,	 512,  8, 2, 1, 48, 0x2A, 0x50, 2, },
};
#define NTYPES (sizeof(floppytype)/sizeof(Type))


M port/stfcall.c => port/stfcall.c +10 -3
@@ 158,9 158,16 @@ fcalliput(Queue *q, Block *bp)
	
		if(q->len < len)
			return;
	
		pullup(q->first, len);
		bp = q->first;

		/*
		 *  the lock here is wrong.  it should be a qlock since
		 *  the pullup may block.  not worth fixing.
		 */
		lock(q);
		bp = q->first = pullup(q->first, len);
		if(bp == 0)
			q->len = 0;
		unlock(q);
		need = len+bp->rptr[off]+(bp->rptr[off+1]<<8);
		if(q->len < need)
			return;