Reset register flag versus the actual register

Alexander Sack pisymbol at gmail.com
Tue Jan 27 14:37:17 PST 2009


Whoops!!!  I had a brain fart...

On Sun, Jan 25, 2009 at 8:35 PM, Alexander Sack <pisymbol at gmail.com> wrote:
> Hi Everybody:
>
> I've ran into the quintessential "it works on Linux but does not work
> on FreeBSD" vendor comment regarding the boxes ability to reboot
> successfully.  I'm running FreeBSD-6.1 but this also applies the
> FreeBSD-CURRENT as well.  The problem boils down to the fact that the
> BIOS does set the ResetRegister bit in the FADT feature flags.
> However, I've noticed that latest stable Linux kernel has the
> following logic with respect to the reset register:
>
> acpi_reboot():
>
>  18        /* Is the reset register supported? */
>  19        if (!(acpi_gbl_FADT.flags & ACPI_FADT_RESET_REGISTER) ||
>  20            rr->bit_width != 8 || rr->bit_offset != 0)
>  21                return;

This checks the flag.  I didn't see the NOT for some odd reason.
Uggh, weird, I got to go back and now find out why on Linux uses the
hook and FreeBSD does not.

-aps
_______________________________________________
freebsd-current at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"


More information about the freebsd-acpi mailing list