[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:
parent
d8e1baf10d
commit
bdb96a6614
|
@ -205,10 +205,10 @@ static void discover_ebda(void)
|
|||
* there is a real-mode segmented pointer pointing to the
|
||||
* 4K EBDA area at 0x40E
|
||||
*/
|
||||
ebda_addr = *(unsigned short *)EBDA_ADDR_POINTER;
|
||||
ebda_addr = *(unsigned short *)__va(EBDA_ADDR_POINTER);
|
||||
ebda_addr <<= 4;
|
||||
|
||||
ebda_size = *(unsigned short *)(unsigned long)ebda_addr;
|
||||
ebda_size = *(unsigned short *)__va(ebda_addr);
|
||||
|
||||
/* Round EBDA up to pages */
|
||||
if (ebda_size == 0)
|
||||
|
|
Loading…
Reference in New Issue