Date: Fri, 14 Oct 2011 15:11:10 +0300 From: Maxim Ignatenko <gelraen.ua@gmail.com> To: freebsd-hackers@freebsd.org Cc: freebsd-acpi@freebsd.org Subject: Acquiring ACPI_LOCK(acpi) from kernel module during boot process Message-ID: <CABWTX-Zj%2Bx-g3YVEZEqjwMJhyAq2g_jayQanCi6P=favCzRn-w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABWTX-Zj%2Bx-g3YVEZEqjwMJhyAq2g_jayQanCi6P=favCzRn-w>