add a new option, --disable-auto-linux-mem-opt, into configure.

This commit is contained in:
okuji committed 2001-02-27 15:24:48 +00:00
1 parent 1372bfd60a
commit 4b1637c671
7 files changed
+133 -85

No files matched your search

+6 -1
View File
@@ -451,7 +451,8 @@ chainloader_func (char *arg, int flags)
/* XXX: Windows evil hack. For now, only the first five letters are
checked. */
if (IS_PC_SLICE_TYPE_FAT (current_slice)
&& ! grub_memcmp (BOOTSEC_LOCATION + BOOTSEC_BPB_SYSTEM_ID, "MSWIN", 5))
&& ! grub_memcmp ((char *) BOOTSEC_LOCATION + BOOTSEC_BPB_SYSTEM_ID,
"MSWIN", 5))
*((unsigned long *) (BOOTSEC_LOCATION + BOOTSEC_BPB_HIDDEN_SECTORS))
= part_start;
@@ -2211,6 +2212,10 @@ kernel_func (char *arg, int flags)
kernel_t suggested_type = KERNEL_TYPE_NONE;
unsigned long load_flags = 0;
#ifndef AUTO_LINUX_MEM_OPT
load_flags |= KERNEL_LOAD_NO_MEM_OPTION;
#endif
/* Deal with GNU-style long options. */
while (1)
{