Subject: Re: MI changes & code ownership
To: Cherry G. Mathew <cherry@zyx.in>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 04/25/2006 20:43:56
On Mon, Apr 24, 2006 at 02:26:19PM +0530, Cherry G. Mathew wrote:
> 
> As far as I can tell, cpu_reboot() gets called from panic() and ddb, 
> both of which
> can't be assumed to be within reliable thread context AFAIU. Therefore, 
> would it
> be an acceptable implementation to call the shutdownhooks from
> within kern_xxx.c:sys_reboot() first, and then later within 
> cpu_reboot() ( with
> flags indicating appropriate info) ?

Yes, it's probably appropriate to call shutdownhooks from process contrext
only for a regular reboot from userland.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--