Add #error instance with comment to explain why this
loader isn't currently usable on PC/BIOS.
This commit is contained in:
parent
dfab719fc8
commit
2f2a344257
2 changed files with 9 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
||||||
an appropiate place in lower memory, between 0x10000 and 0x90000,
|
an appropiate place in lower memory, between 0x10000 and 0x90000,
|
||||||
like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
|
like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
|
||||||
is in our heap (probably as a result of it being corrupted during
|
is in our heap (probably as a result of it being corrupted during
|
||||||
decompression).
|
decompression). Add #error instance with comment to explain why this
|
||||||
|
loader isn't currently usable on PC/BIOS.
|
||||||
|
|
||||||
2008-11-14 Robert Millan <rmh@aybabtu.com>
|
2008-11-14 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <grub/loader.h>
|
#include <grub/loader.h>
|
||||||
|
#include <grub/machine/machine.h>
|
||||||
#include <grub/machine/memory.h>
|
#include <grub/machine/memory.h>
|
||||||
#include <grub/machine/loader.h>
|
#include <grub/machine/loader.h>
|
||||||
#include <grub/file.h>
|
#include <grub/file.h>
|
||||||
|
@ -142,6 +143,12 @@ allocate_pages (grub_size_t prot_size)
|
||||||
real_mode_mem = 0;
|
real_mode_mem = 0;
|
||||||
prot_mode_mem = 0;
|
prot_mode_mem = 0;
|
||||||
|
|
||||||
|
/* i386-pc port adds lower memory to heap, which collides with
|
||||||
|
`real_mode_mem' allocation below. */
|
||||||
|
#ifdef GRUB_MACHINE_PCBIOS
|
||||||
|
#error
|
||||||
|
#endif
|
||||||
|
|
||||||
auto int NESTED_FUNC_ATTR hook (grub_uint64_t, grub_uint64_t, grub_uint32_t);
|
auto int NESTED_FUNC_ATTR hook (grub_uint64_t, grub_uint64_t, grub_uint32_t);
|
||||||
int NESTED_FUNC_ATTR hook (grub_uint64_t addr, grub_uint64_t size, grub_uint32_t type)
|
int NESTED_FUNC_ATTR hook (grub_uint64_t addr, grub_uint64_t size, grub_uint32_t type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue