Lines 49-54
Link Here
|
49 |
#include <asm/ist.h> |
49 |
#include <asm/ist.h> |
50 |
#include <asm/io.h> |
50 |
#include <asm/io.h> |
51 |
#include "setup_arch_pre.h" |
51 |
#include "setup_arch_pre.h" |
|
|
52 |
#include <bios_ebda.h> |
52 |
|
53 |
|
53 |
/* This value is set up by the early boot code to point to the value |
54 |
/* This value is set up by the early boot code to point to the value |
54 |
immediately after the boot time page tables. It contains a *physical* |
55 |
immediately after the boot time page tables. It contains a *physical* |
Lines 991-996
Link Here
|
991 |
} |
992 |
} |
992 |
} |
993 |
} |
993 |
|
994 |
|
|
|
995 |
static void __init reserve_ebda_region(void) |
996 |
{ |
997 |
unsigned int addr; |
998 |
addr = get_bios_ebda(); |
999 |
if (addr) |
1000 |
reserve_bootmem(addr, PAGE_SIZE); |
1001 |
} |
1002 |
|
994 |
static unsigned long __init setup_memory(void) |
1003 |
static unsigned long __init setup_memory(void) |
995 |
{ |
1004 |
{ |
996 |
unsigned long bootmap_size, start_pfn, max_low_pfn; |
1005 |
unsigned long bootmap_size, start_pfn, max_low_pfn; |
Lines 1036-1041
Link Here
|
1036 |
* enabling clean reboots, SMP operation, laptop functions. |
1045 |
* enabling clean reboots, SMP operation, laptop functions. |
1037 |
*/ |
1046 |
*/ |
1038 |
reserve_bootmem(0, PAGE_SIZE); |
1047 |
reserve_bootmem(0, PAGE_SIZE); |
|
|
1048 |
|
1049 |
/* reserve EBDA region, it's a 4K region */ |
1050 |
reserve_ebda_region(); |
1039 |
|
1051 |
|
1040 |
/* could be an AMD 768MPX chipset. Reserve a page before VGA to prevent |
1052 |
/* could be an AMD 768MPX chipset. Reserve a page before VGA to prevent |
1041 |
PCI prefetch into it (errata #56). Usually the page is reserved anyways, |
1053 |
PCI prefetch into it (errata #56). Usually the page is reserved anyways, |