Subject: Re: port-sun3/1929: it's not easy to change si_coptions per kernel
To: None <thorpej@SJ.Xenotropic.COM>
From: Gordon W. Ross <gwr@mc.com>
List: netbsd-bugs
Date: 01/11/1996 14:52:58
> Date: Thu, 11 Jan 1996 08:53:49 -0800
> From: "Jason R. Thorpe" <thorpej@SJ.Xenotropic.COM>
> >Number: 1929
> >Category: port-sun3
> >Synopsis: it's not easy to change si_coptions per kernel
> >Confidential: no
> >Severity: non-critical
> >Priority: medium
> >Responsible: gnats-admin (GNATS administrator)
> >State: open
> >Class: change-request
> >Submitter-Id: net
> >Arrival-Date: Thu Jan 11 12:05:00 1996
> >Last-Modified:
> >Originator:
> >Organization:
> Just me and my collection of obsolete computer gear(s).
> >Release: NetBSD 1.1A, Jan 10, 1996
> >Environment:
>
> System: NetBSD ovation 1.1 NetBSD 1.1 (OVATION) #44: Sun Dec 10 17:55:35 PST 1995 thorpej@ovation:/tmp_mnt/basalt/work/netbsd/src/sys/arch/sun3/compile/OVATION sun3
>
>
> >Description:
> The "si_options" flags are hard-coded in the driver. This makes
> it difficult to change the settings from machine to machine.
> >How-To-Repeat:
> Own 2 sun3s. Try to enable reselects in the driver on one and
> not on the other. You have to edit code.
Actually, you do not have to edit any code, of course.
The reason it is a global variable is so you can use gdb:
% gdb -k --write /netbsd
(kgdb) set si_options = 3
(kgdb) quit
None the less, allowing si_options to be set from the config flags
is a nice idea.
> >Fix:
> Here's a patch that pulls in the "si_options" handling code
> that I added when I ported the ncr_si driver to NetBSD/sparc.
> You can change the options using the `flags' directive in your
> kernel configuration file. It also prints which options
> are enabled at attach time.