Subject: lwp_emuldata
To: None <>
From: Emmanuel Dreyfus <>
List: tech-kern
Date: 12/13/2003 12:51:27
So here is what we could do:

- add l_emuldata in struct lwp

- add void e_newlwp and e_lwp_exit hooks in struct emul:
void e_newlwp(struct lwp *l1, struct lwp *l2); 
void e_lwp_exit(struct lwp *l);

- call e_newlwp just before returning from newlwp

- call e_lwp_exit at the very beginning of lwp_exit (after the DPRINTF)

As far as COMPAT_MACH is concerned, e_newlwp does not need the parent
thread l1. Should we have it anyway?

Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.