Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161019AbWHALHR (ORCPT ); Tue, 1 Aug 2006 07:07:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161015AbWHALHI (ORCPT ); Tue, 1 Aug 2006 07:07:08 -0400 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:16605 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S932620AbWHALGg (ORCPT ); Tue, 1 Aug 2006 07:06:36 -0400 From: "Eric W. Biederman" To: Cc: , Horms , Jan Kratochvil , "H. Peter Anvin" , Magnus Damm , Vivek Goyal , Linda Wang , "Eric W. Biederman" Subject: [PATCH 27/33] x86_64: Modify discover_ebda to use virtual addresses Date: Tue, 1 Aug 2006 05:03:42 -0600 Message-Id: <11544302453338-git-send-email-ebiederm@xmission.com> X-Mailer: git-send-email 1.4.2.rc2.g5209e In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 30 Signed-off-by: Eric W. Biederman --- 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 66816ba..21840ca 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c @@ -505,10 +505,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) -- 1.4.2.rc2.g5209e - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/