Skip to content

Commit

Permalink
[PATCH] x86-64: Modify discover_ebda to use virtual addresses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivek Goyal authored and Andi Kleen committed May 2, 2007
1 parent d8e1baf commit bdb96a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bdb96a6

Please sign in to comment.