*BSD News Article 6934


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!dkuug!dkuug!flshub!phk
From: phk@data.fls.dk (Poul-Henning Kamp)
Newsgroups: comp.unix.bsd
Subject: [386bsd] PATCH: cut /386bsd size on i387/i486 systems.
Message-ID: <1992Oct22.194513.19890@data.fls.dk>
Date: 22 Oct 92 19:45:13 GMT
Organization: FLS Data A/S, Valby, Copenhagen, Denmark.
Lines: 46

What it does:
=============
	This patch allows you to cut the size of your kernel by quite a chunk,
	but only if you have a numeric hardware device, ie. i387 or i486.

What to do:
===========
	Apply all of the applicable patches from the 'patch-kit'.
	Apply patch with:
		patch -d/ -p0 < patch_file

	On systems with the right hardware add either of these lines to your
	config file:
		options	"i486"
	or as an alternative
		options	"i387"
	run config and rebuild the kernel.

enjoy,
	Poul-Henning

diff -r -C2 /ref/usr/src/sys.386bsd//i386/i386/math_emulate.c /usr/src/sys.386bsd//i386/i386/math_emulate.c
*** /ref/usr/src/sys.386bsd//i386/i386/math_emulate.c	Sun Oct 11 05:18:14 1992
--- /usr/src/sys.386bsd//i386/i386/math_emulate.c	Sun Oct 11 07:41:10 1992
***************
*** 77,80 ****
--- 77,84 ----
  math_emulate(struct trapframe * info)
  {
+ #if defined(i486) || defined(i387)
+ 	panic("math_emulate(), shouldn't happen with -Di486 or -Di387");
+ }
+ #else
  	unsigned short code;
  	temp_real tmp;
***************
*** 1479,1480 ****
--- 1483,1485 ----
  	}
  }
+ #endif /* defined(i486) || defined(i387) */
-- 
phk@data.fls.dk		  || 			$HOME
Poul-Henning Kamp	  ||	
FLS DATA A/S		  ||			sweet
Phone: (+45) 36 18 12 35  ||