# HG changeset patch # User "Jun Nakajima " # Node ID 60da204cb23a5ac709ef46bd9092c1d6680274b1 # Parent 51e9c0c806b2776a5c33c1735e928d066e81c866 Avoid stack overflow diff -r 51e9c0c806b2 -r 60da204cb23a xen/arch/x86/setup.c --- a/xen/arch/x86/setup.c Wed Aug 17 17:00:29 2005 +++ b/xen/arch/x86/setup.c Wed Aug 17 20:55:55 2005 @@ -244,6 +244,8 @@ #define EARLY_FAIL() for ( ; ; ) __asm__ __volatile__ ( "hlt" ) +static struct e820entry e820_raw[E820MAX]; + void __init __start_xen(multiboot_info_t *mbi) { char *cmdline; @@ -253,7 +255,6 @@ unsigned long _initrd_start = 0, _initrd_len = 0; unsigned int initrdidx = 1; physaddr_t s, e; - struct e820entry e820_raw[E820MAX]; int i, e820_raw_nr = 0, bytes = 0; struct ns16550_defaults ns16550 = { .data_bits = 8,