Subject: port-i386/5884: sys/arch/i386/i386/ibcs2_machdep.c needs vm86.h
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon J. Gerraty <sjg@quick.com.au>
List: netbsd-bugs
Date: 08/01/1998 16:41:03
>Number:         5884
>Category:       port-i386
>Synopsis:       ibcs2_machdep.c needs vm86.h
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 31 23:50:00 1998
>Last-Modified:
>Originator:     Simon J. Gerraty
>Organization:
Zen Programming...
>Release:        1.3.2
>Environment:
	
System: NetBSD zen.quick.com.au 1.3 NetBSD 1.3 (ZEN) #6: Fri Jul 3 01:06:04 EST 1998 root@zen.quick.com.au:/u0/usr/src/sys/arch/i386/compile/ZEN i386


>Description:
	
Building a 1.3.2 kernel ibcs2_machdep.c fails to compile for lack of 
get_vflags()
While 1.3 /usr/sbin/config was used, I could see no diffs between 1.3 and 1.3.2
that changed config.
>How-To-Repeat:
	
>Fix:
	
The following patch certainly gets a kernel to compile, and other files
include vm86.h directly - but perhaps this belongs in machine/vmparam.h ?


*** sys/arch/i386/i386/ibcs2_machdep.c.~1~	Tue May  5 19:44:39 1998
--- sys/arch/i386/i386/ibcs2_machdep.c	Sat Aug  1 16:31:17 1998
***************
*** 54,59 ****
--- 54,63 ----
  
  #include <compat/ibcs2/ibcs2_signal.h>
  
+ #ifdef VM86
+ #include <machine/vm86.h>
+ #endif
+ 
  void
  ibcs2_setregs(p, epp, stack)
  	struct proc *p;
>Audit-Trail:
>Unformatted: