Acquiring ACPI_LOCK(acpi) from kernel module during boot process

Maxim Ignatenko gelraen.ua at gmail.com
Fri Oct 14 12:40:32 UTC 2011


Hi,

I have this code:
https://gitorious.org/acpi_call-freebsd/acpi_call-freebsd/blobs/5e6a79869721a2bd8de88b5cfa90c14b429cb5c7/acpi_call.c
It works just fine when loaded into kernel manually, but crashes if
loaded during boot via loader.conf: http://i.imgur.com/fLPen.png

I've added some printf's to acpi_register_ioctl() to track down where
it hangs and crashes after about one minute:
http://pastebin.com/vvJutWLA

What am I missing? Do I need to somehow (how?) specify module
initialization order? Or just call acpi_register_ioctl() by some other
mean when it would not cause panic?

Thanks.


More information about the freebsd-acpi mailing list