NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/46732: setroot(9) is called twice after "MI root on wedges" changes



The following reply was made to PR kern/46732; it has been noted by GNATS.

From: Michael van Elst <mlelstv%serpens.de@localhost>
To: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, mlelstv%NetBSD.org@localhost
Subject: Re: kern/46732: setroot(9) is called twice after "MI root on wedges"
 changes
Date: Sun, 22 Jul 2012 18:08:59 +0200

 On Mon, Jul 23, 2012 at 12:15:24AM +0900, Izumi Tsutsui wrote:
 > >  I see three possible solutions.
 > >  
 > >  Drop setroot calls in MD code and adjust documentation (cpu_rootconf(9)).
 > >  cpu_rootconf is then only a hook that lets MD code set the variables
 > >  booted_device, booted_partition, booted_startblk, booted_blks.
 > 
 > I like this one.
 
 I have prepared a patch and will test this on amd64 and amiga.
 See f.n.o:/pub/NetBSD/misc/mlelstv/setroot.diff.
 
 There is an issue with hp300 and hp700. In cpu_rootconf() they
 call setroot() and then catch the root device and partition
 so that the MD code can later reboot from the same device.
 
 This can't work when setroot is only called later.
 Maybe the code could be moved into cpu_reboot().
 
 
 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index