Subject: port-newsmips/10136: variable "booted_device" must be exported
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/17/2000 00:12:10
>Number:         10136
>Category:       port-newsmips
>Synopsis:       variable "booted_device" must be exported
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-newsmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 17 00:13:00 PDT 2000
>Originator:     MASUDA Hideo
>Release:        NetBSD-current source 2000/05/16 by rsync+cvs
	Ootani, Nagata, Kobe, JAPAN
System: NetBSD 1.4Y NetBSD 1.4Y (BARADAGI) #7: Wed May 17 13:54:11 JST 2000 newsmips

	The variable "booted_device" is refered by "rf_buildroothack()" in
	So this variable must be exported.
	enable "pseudo-device raid", config and make kernel
	"booted_device" in sys/arch/newsmips/newsmips/autoconf.c is
	private variable of cpu_rootconf() function.
	This will be fixed by exporting.
	Quick patch as following:

*** autoconf.c-dist	Thu Dec 23 07:34:32 1999
--- autoconf.c	Wed May 17 08:46:36 2000
*** 114,123 ****
  	_splnone();	/* enable all source forcing SOFT_INTs cleared */
- 	struct device *booted_device;
  	int booted_partition;
  	findroot(&booted_device, &booted_partition);
--- 114,123 ----
  	_splnone();	/* enable all source forcing SOFT_INTs cleared */
+ struct device *booted_device;
  	int booted_partition;
  	findroot(&booted_device, &booted_partition);