int disable_pse __initdata = 0;
+static inline char * __init machine_specific_memory_setup(void);
+
/*
* Machine setup..
*/
#define RAMDISK_LOAD_FLAG 0x4000
static char command_line[COMMAND_LINE_SIZE];
+ char saved_command_line[COMMAND_LINE_SIZE];
unsigned char __initdata boot_params[PARAM_SIZE];
}
#if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE)
-struct edd edd;
+unsigned char eddnr;
+struct edd_info edd[EDDMAXNR];
+unsigned int edd_disk80_sig;
#ifdef CONFIG_EDD_MODULE
+EXPORT_SYMBOL(eddnr);
EXPORT_SYMBOL(edd);
+EXPORT_SYMBOL(edd_disk80_sig);
#endif
/**
* copy_edd() - Copy the BIOS EDD information
*/
static inline void copy_edd(void)
{
- memcpy(edd.mbr_signature, EDD_MBR_SIGNATURE, sizeof(edd.mbr_signature));
- memcpy(edd.edd_info, EDD_BUF, sizeof(edd.edd_info));
- edd.mbr_signature_nr = EDD_MBR_SIG_NR;
- edd.edd_info_nr = EDD_NR;
+ eddnr = EDD_NR;
+ memcpy(edd, EDD_BUF, sizeof(edd));
+ edd_disk80_sig = DISK80_SIGNATURE;
}
#else
-static inline void copy_edd(void)
-{
-}
+#define copy_edd() do {} while (0)
#endif
/*
*/
#define LOWMEMSIZE() (0x9f000)
-unsigned long crashdump_addr = 0xdeadbeef;
+static void __init setup_memory_region(void)
+{
+ char *who = machine_specific_memory_setup();
+ printk(KERN_INFO "BIOS-provided physical RAM map:\n");
+ print_memory_map(who);
+} /* setup_memory_region */
+
static void __init parse_cmdline_early (char ** cmdline_p)
{
if (c == ' ' && !memcmp(from, "highmem=", 8))
highmem_pages = memparse(from+8, &from) >> PAGE_SHIFT;
- if (c == ' ' && !memcmp(from, "crashdump=", 10))
- crashdump_addr = memparse(from+10, &from);
-
c = *(from++);
if (!c)
break;
} noptypes[] = {
{ X86_FEATURE_K8, k8_nops },
{ X86_FEATURE_K7, k7_nops },
- { -1, NULL }
+ { -1, 0 }
};
/* Replace instructions with better alternatives for this CPU type.
__setup("noreplacement", noreplacement_setup);
-static char * __init machine_specific_memory_setup(void);
-
-#ifdef CONFIG_CRASH_DUMP_SOFTBOOT
-extern void crashdump_reserve(void);
-#endif
-
/*
* Determine if we were loaded by an EFI loader. If so, then we have also been
* passed the efi memmap, systab, etc., so we should use these data structures
ARCH_SETUP
if (efi_enabled)
efi_init();
- else {
- printk(KERN_INFO "BIOS-provided physical RAM map:\n");
- print_memory_map(machine_specific_memory_setup());
- }
+ else
+ setup_memory_region();
copy_edd();
#endif
-#ifdef CONFIG_CRASH_DUMP_SOFTBOOT
- crashdump_reserve(); /* Preserve crash dump state from prev boot */
-#endif
-
dmi_scan_machine();
#ifdef CONFIG_X86_GENERICARCH