Text File

Aucbvax.5399 net.2bsd-bugs utzoo!decvax!ucbvax!dist2 Sun Dec 6 03:21:11 1981 FIXED: the ecc algorithm in kernel/sys/dev/hp.c The ecc algorithm in hpecc() is not correct. The corrections needed are:

diff kernel/sys/dev/hp.c.old kernel/sys/dev/hp.c 434a435 > ocmd = (rp->hpcs1.w&~DRY)|IE|GO; 450c451 b_bcount && wrong!=0 ) --- > while( 0<=BYTE BYTE<BP- &&>b_bcount && (wrong<<=BIT)!=0 ) < 462D462 464C464 PUTMEMC(ADDR,GETMEMC(ADDR)^WRONG); WRONG --- <<="bit;"> putmemc(addr,getmemc(addr)^(int)wrong); 469a470,471 > /*getmemc() changes pri. might be a race.*/ > spl5(); 479d480 hpcs1.w&~DRY)|IE|GO;

The changes are necessary on tapes written before 12/5/81.

Carl

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.