Subject: Re: emuldation initialization
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 12/22/2002 18:52:58
Emmanuel Dreyfus wrote:
> For COMPAT_MACH, I need to initialize some global lists on system
> startup. The best way I thought about it would be to add a e_init field
> to struct emul. e_init would point to a function called at system boot
> time.

What kind of lists? It might be Just Fine to do the initialization
in mach_e_proc_exec() hook first time it's called for Mach process.
You are guaranteed mach_e_proc_exec() is called before mach_e_proc_fork()
since mach_e_proc_fork() is only called when a Mach process forks
another process.

Jaromir 
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-