aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/setup.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@in.ibm.com>2007-05-02 13:27:07 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:07 -0400
commitbdb96a6614cfaba24e23dd9de4040c068c3af19b (patch)
treea94da98ad0a434e31e992810d9ab8123ed53ae9d /arch/x86_64/kernel/setup.c
parentd8e1baf10d62c06fc52e89137357e54da3d92672 (diff)
[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>
Diffstat (limited to 'arch/x86_64/kernel/setup.c')
-rw-r--r--arch/x86_64/kernel/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index 4b114ee31ebc..65e2bc551a2b 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)