From cg@scotty.edvz.uni-linz.ac.at  Tue May  9 12:33:51 1995
Received: from FIMP01.fim.uni-linz.ac.at (fimp01.fim.uni-linz.ac.at [140.78.100.24])
          by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id MAA23772
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 9 May 1995 12:33:45 -0700
Received: by FIMP01.fim.uni-linz.ac.at (5.57/Ultrix3.0-C)
	id AA14962; Tue, 9 May 95 21:38:22 +0200
Received: from scotty (scotty [192.168.1.1]) by uhura (8.6.8/8.6.6) with ESMTP id VAA00112 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 9 May 1995 21:32:07 +0200
Received: (from cg@localhost) by scotty (8.6.11/8.6.9) id VAA00461; Tue, 9 May 1995 21:28:40 +0200
Message-Id: <199505091928.VAA00461@scotty>
Date: Tue, 9 May 1995 21:28:40 +0200
From: "DI. Christian Gusenbauer" <cg@scotty.edvz.uni-linz.ac.at>
Reply-To: cg@fimp01.fim.uni-linz.ac.at
To: FreeBSD-gnats-submit@freebsd.org
Subject: /sys/i386/boot/kzipboot/boot.c bug
X-Send-Pr-Version: 3.2

>Number:         390
>Category:       i386
>Synopsis:       missing parameter in function "boot"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  9 12:40:01 1995
>Closed-Date:    Wed May 17 00:42:44 PDT 1995
>Last-Modified:
>Originator:     DI. Christian Gusenbauer
>Release:        FreeBSD 2.0-BUILT-19950505 i386
>Organization:
>Environment:
	using kzip'ed kernels

>Description:
	The bootstrap loader starts the kernel and passes one argument
	"howto" to the kernel. This is also true when using kzip'ed kernels,
	but in "/sys/i386/boot/kzipboot/head.S" the function "_boot" is called
	which puts another int on the stack, so the parameter "howto" of the
	function "boot" refers to the wrong address.

>How-To-Repeat:
	Just boot a kzip'ed kernel.

>Fix:
	Add a dummy-parameter to the function "boot", like:

		void boot (int dummy, int howto)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bde 
State-Changed-When: Wed May 17 00:42:44 PDT 1995 
State-Changed-Why:  
Fixed in revision 1.2 of kzipboot/head.S. 
>Unformatted:



