>
> See sys/i386/bios.c for how to make BIOS calls out of the kernel. But
> note that obtaining this information in the kernel is too late. See
> sys/boot/i386/libi386/biosdisk.c for how to call the BIOS in the
> loader, where you have a chance to obtain this information and use it
> to decrypt your kernel.
I forgot to mention that there's a simpler example of calling the
real-mode BIOS in sys/i386/apm/apm.c (on -current), which is probably
what you want.
--
\\ Give a man a fish, and you feed him for a day. \\ Mike Smith
\\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message