[PATCH] x86-64: Modify discover_ebda to use virtual addresses

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
Vivek Goyal 2007-05-02 19:27:07 +02:00 committed by Andi Kleen
parent d8e1baf10d
commit bdb96a6614
1 changed files with 2 additions and 2 deletions

View File

@ -205,10 +205,10 @@ static void discover_ebda(void)
* there is a real-mode segmented pointer pointing to the * there is a real-mode segmented pointer pointing to the
* 4K EBDA area at 0x40E * 4K EBDA area at 0x40E
*/ */
ebda_addr = *(unsigned short *)EBDA_ADDR_POINTER; ebda_addr = *(unsigned short *)__va(EBDA_ADDR_POINTER);
ebda_addr <<= 4; ebda_addr <<= 4;
ebda_size = *(unsigned short *)(unsigned long)ebda_addr; ebda_size = *(unsigned short *)__va(ebda_addr);
/* Round EBDA up to pages */ /* Round EBDA up to pages */
if (ebda_size == 0) if (ebda_size == 0)