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:
parent
675ea6f083
commit
388610239f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32012
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user