~kris/9p

9hist

045493be88e7d848bf68089e3fd591f2314a132a — David du Colombier 33 years ago a5cb940
Plan 9 from Bell Labs 1992-11-20
1 files changed, 3 insertions(+), 3 deletions(-)

M pc/devfloppy.c
M pc/devfloppy.c => pc/devfloppy.c +3 -3
@@ 645,7 645,7 @@ floppycmd(void)
	fl.nstat = 0;
	for(i = 0; i < fl.ncmd; i++){
		for(tries = 0; ; tries++){
			if(tries > 1000){
			if(tries > 10000){
				DPRINT("cmd %ux can't be sent (%d %ux)\n",
					fl.cmd[0], i, inb(Pmsr));
				fl.confused = 1;


@@ 769,7 769,7 @@ floppyrecal(Drive *dp)
		return -1;
	floppywait();
	if(fl.nstat < 2){
		DPRINT("recalibrate: confused\n");
		DPRINT("recalibrate: confused %ux\n", inb(Pmsr));
		fl.confused = 1;
		return -1;
	}


@@ 816,7 816,7 @@ floppyrevive(void)
		floppywait();
		fl.confused = 0;
		outb(Pdsr, 0);
		fl.rate = 0;
		fl.rate = -1;
	}
}