Subject: port-i386/21603: Build error in sys/arch/i386/isa/pccons.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kristerw@netbsd.org>
List: netbsd-bugs
Date: 05/17/2003 00:09:45
>Number:         21603
>Category:       port-i386
>Synopsis:       Build error in sys/arch/i386/isa/pccons.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 17 00:10:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Krister Walfridsson
>Release:        Source as of 2003-05-16
>Organization:
	
>Environment:
	
	
Architecture: i386
Machine: i386
>Description:
The DISKLESS kernel fail to build, because of what looks like a botch
during the nathanw_sa merge.

>How-To-Repeat:
	
>Fix:
Comparision to similar code makes me believe that the patch below
should be applied.

diff -u -r1.165 pccons.c
--- pccons.c    2003/05/14 12:10:04     1.165
+++ pccons.c    2003/05/17 00:01:34
@@ -2741,7 +2741,7 @@
 
 #ifdef COMPAT_10
        /* This is done by i386_iopl(3) now. */
-       fp = curlwp->p_md.md_regs;
+       fp = curlwp->l_md.md_regs;
        fp->tf_eflags |= PSL_IOPL;
 #endif
 }
@@ -2761,7 +2761,7 @@
 #endif
        async_update();
 
-       fp = curlwp->p_md.md_regs;
+       fp = curlwp->l_md.md_regs;
        fp->tf_eflags &= ~PSL_IOPL;
 }
 #endif /* XSERVER */

>Release-Note:
>Audit-Trail:
>Unformatted: