Back out previous commit, the so-called "unused code" was most definately

used, and caused a reference to an uninitialised variable (state).
I think I've fixed it now, but since nothing in the tree seems to use it,
I'm not sure.
This commit is contained in:
Peter Wemm 1997-12-27 03:00:59 +00:00
parent 675ea6f083
commit 388610239f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32012
2 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
* $Id: sys_machdep.c,v 1.29 1997/11/20 18:43:45 bde Exp $
* $Id: sys_machdep.c,v 1.30 1997/11/26 22:45:47 joerg Exp $
*
*/
@ -233,6 +233,8 @@ i386_get_ioperm(p, args)
iomap = (char *)p->p_addr->u_pcb.pcb_ext->ext_iomap;
i = ua.start;
state = (iomap[i >> 3] >> (i & 7)) & 1;
ua.enable = !state;
ua.length = 1;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
* $Id: sys_machdep.c,v 1.29 1997/11/20 18:43:45 bde Exp $
* $Id: sys_machdep.c,v 1.30 1997/11/26 22:45:47 joerg Exp $
*
*/
@ -233,6 +233,8 @@ i386_get_ioperm(p, args)
iomap = (char *)p->p_addr->u_pcb.pcb_ext->ext_iomap;
i = ua.start;
state = (iomap[i >> 3] >> (i & 7)) & 1;
ua.enable = !state;
ua.length = 1;