On Thu 26 Jul 2007 09:34, Phil Wilshire pondered:
> Bernd Schmidt wrote:
> > This isn't necessarily a safe interface - assume you have two modules
> > which want to replace the same exception vector, and you have the
> > following order:
> >   load A
> >   load B
> >   unload A
> >   unload B
> > 
> > 
> > Bernd
> If you make B depend on A then B will have to unload first.
>    Just a thought

Since these are all kernel modules - dependancy checking (having B call a 
function in A should be caught by the standard kernel module install/remove 
routines.

The only issue would be if B threw an exception into A. If A was not 
installed, then it would be caught by traps_c, and an unknown exception would 
print out, and the thread/application would be killed, or the kernel would 
panic. The complexity of handling this case (since it is unlikely to happen - 
if you are already in exception n, then why call a different exception via 
EXCEPT - just do a function call) isn't worth the effort (IMHO).

-Robin
_______________________________________________
Uclinux-dist-devel mailing list
Uclinux-dist-devel@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel

Reply via email to