diff options
-rw-r--r-- | arch/x86_64/kernel/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index 4b114ee31e..65e2bc551a 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -205,10 +205,10 @@ static void discover_ebda(void) | |||
205 | * there is a real-mode segmented pointer pointing to the | 205 | * there is a real-mode segmented pointer pointing to the |
206 | * 4K EBDA area at 0x40E | 206 | * 4K EBDA area at 0x40E |
207 | */ | 207 | */ |
208 | ebda_addr = *(unsigned short *)EBDA_ADDR_POINTER; | 208 | ebda_addr = *(unsigned short *)__va(EBDA_ADDR_POINTER); |
209 | ebda_addr <<= 4; | 209 | ebda_addr <<= 4; |
210 | 210 | ||
211 | ebda_size = *(unsigned short *)(unsigned long)ebda_addr; | 211 | ebda_size = *(unsigned short *)__va(ebda_addr); |
212 | 212 | ||
213 | /* Round EBDA up to pages */ | 213 | /* Round EBDA up to pages */ |
214 | if (ebda_size == 0) | 214 | if (ebda_size == 0) |