Subject: port-i386/2392: suggestion: compile boot code for i386 with -m386
To: None <gnats-bugs@NetBSD.ORG>
From: None <thomas@cevis.uni-Bremen.de>
List: netbsd-bugs
Date: 05/10/1996 19:40:22
>Number:         2392
>Category:       port-i386
>Synopsis:       suggestion: compile boot code for i386 with -m386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri May 10 14:05:16 1996
>Last-Modified:
>Originator:     Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:        NetBSD-current 960509
>Environment:
	
System: NetBSD ed209 1.1B NetBSD 1.1B (ED209) #0: Fri May 10 01:02:33 MET DST 1996 thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386

Machine: i386
>Description:
	I've changed my gcc to make -m486 the default. This caused non
	functioning boot blocks to be generated. So I added a explicit
	-m386 to the boot code Makefile.
>How-To-Repeat:
	
>Fix:
*** sys/arch/i386/boot/Makefile-	Mon Dec 11 21:34:52 1995
--- sys/arch/i386/boot/Makefile	Sat Dec 23 22:25:44 1995
***************
*** 37,43 ****
  NOPROG=	noprog
  NOMAN=	noman
  
! CFLAGS=	-O6 -D_KERNEL -DI386_CPU -DI486_CPU -DI586_CPU
  CFLAGS+=-DDO_BAD144 -I. -I${.CURDIR} -I$S -I${.CURDIR}/../..
  
  # Uncomment this to make the boot block talk to a serial port.
--- 37,43 ----
  NOPROG=	noprog
  NOMAN=	noman
  
! CFLAGS=	-m386 -O6 -D_KERNEL -DI386_CPU -DI486_CPU -DI586_CPU
  CFLAGS+=-DDO_BAD144 -I. -I${.CURDIR} -I$S -I${.CURDIR}/../..
  
  # Uncomment this to make the boot block talk to a serial port.
>Audit-Trail:
>Unformatted: