cvs commit: src/sys/kern subr_firmware.c
Sam Leffler
sam at FreeBSD.org
Wed Apr 9 19:07:49 UTC 2008
sam 2008-04-09 19:07:49 UTC
FreeBSD src repository
Modified files:
sys/kern subr_firmware.c
Log:
Do image loading in a context known to have a root directory:
o create a private task queue thread that sets up root and current
directories (hooking mountroot event as needed); this is necessary
because task queue threads are parented from proc0 and it does not
have a reference to rootvnode (lost when / mounting moved to init)
o bounce image load + unload requests through the private task q so
we can load images even when the request is made from a thread that
does not have sufficient context (e.g. task q thread)
o add a check in the task q thread to fail requests before root is
mounted (just in case)
Reviewed by: jhb, mlaier, luigi (glance)
MFC after: 1 month
Revision Changes Path
1.10 +121 -23 src/sys/kern/subr_firmware.c
More information about the cvs-src
mailing list