loader isn't currently usable on PC/BIOS.
an appropiate place in lower memory, between 0x10000 and 0x90000,
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
- 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>
*/
#include <grub/loader.h>
+#include <grub/machine/machine.h>
#include <grub/machine/memory.h>
#include <grub/machine/loader.h>
#include <grub/file.h>
real_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);
int NESTED_FUNC_ATTR hook (grub_uint64_t addr, grub_uint64_t size, grub_uint32_t type)
{