2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
commit532798d4346379dc64dfe266d0ba5d549f08189e
authorRobert Millan <rmh@aybabtu.com>
Fri, 9 Oct 2009 17:57:02 +0000 (9 17:57 +0000)
committerRobert Millan <rmh@aybabtu.com>
Fri, 9 Oct 2009 17:57:02 +0000 (9 17:57 +0000)
treee2592812ec121f0d9413e8ea274373e1efc4f619
parent63cf17c0e95c1971412244166e5a2d7a87af022f
2009-10-09  Robert Millan  <rmh.grub@aybabtu.com>

        Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.

        * include/grub/i386/cpuid.h: New file.
        * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
        (has_longmode): Rename to ...
        (grub_cpuid_has_longmode): ... this.  Update all users.  Remove
        `static' attribute.
        * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
        (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
        on a CPU that doesn't implement AMD64 instruction set.

git-svn-id: svn://svn.savannah.gnu.org/grub/trunk/grub2@2627 d0de0278-0dc1-4c01-8a07-af38b3205e46
ChangeLog
commands/i386/cpuid.c
include/grub/i386/cpuid.h [new file with mode: 0644]
loader/i386/bsd.c