From patchwork Thu Dec 3 20:34:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Albert Herranz X-Patchwork-Id: 40241 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 747B3B7E8F for ; Fri, 4 Dec 2009 07:35:19 +1100 (EST) Received: from smtp120.mail.ukl.yahoo.com (smtp120.mail.ukl.yahoo.com [77.238.184.51]) by ozlabs.org (Postfix) with SMTP id 99715B7B64 for ; Fri, 4 Dec 2009 07:35:10 +1100 (EST) Received: (qmail 83785 invoked from network); 3 Dec 2009 20:35:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References:In-Reply-To:References; b=MJ7E3h2lV3a9E6tjvdRgjWBA713bnzfXlcYC2y6aGwy3L4mI8PPXZ8IL+vmJVF8JkkzYFhMibLT4dtH+mI3mTzXoOHN9vZTvLoaVJ409FEurohJOB9ybGxF6RSviq70sPyFGlQqUZ7bSx+eSH835f6yGMAKcLFBqZ/7yPd4QEzM= ; Received: from 59.Red-88-24-158.staticIP.rima-tde.net (albert_herranz@88.24.158.59 with login) by smtp120.mail.ukl.yahoo.com with SMTP; 03 Dec 2009 20:35:09 +0000 GMT X-Yahoo-SMTP: czee06uswBAtfIYshc.kP27UlfEXaxwWNSjJ X-YMail-OSG: x.f3qHoVM1kDNr.dZbWsMW_V2fQnwHE7zSl6hv9BEz.tgclm5NQOhrA55hRwdmov2r.G8hOVo_1TsnkaJYmbJZyW18jwmrhsxd47gdxADcHYZuAAOZ2In2KSV7VYsUO6Izr3JaOa_h5mAk__5F4l_aJdqazHL.QpDPzdUvdAaKpNJfYKoywMXaEVj7ZBlPZkMeqaAPAdoCpqZLT2FuUqrBC7usXDuq8QGeHQhOEzKtV7bN7jysTKd8bMTeyjScv9tz5wDqtJyWSAiartzShygSXbkSXc7vd0 X-Yahoo-Newman-Property: ymail-3 From: Albert Herranz To: linuxppc-dev@lists.ozlabs.org Subject: [RFC PATCH v4 1/2] powerpc: reserve fixmap entries for early debug Date: Thu, 3 Dec 2009 21:34:59 +0100 Message-Id: <731eb73d0a309d0c23b30bea3718b976c3782b71.1259871725.git.albert_herranz@yahoo.es> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: References: In-Reply-To: References: Cc: Albert Herranz X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Add a set of entries to the fixmap table to allow usage of known reserved virtual address space by early debug code. The address space reserved is the top 128K of the 32-bit address space. This allows, if required, the use of a BAT to do the mappings. Signed-off-by: Albert Herranz Acked-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/fixmap.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/fixmap.h b/arch/powerpc/include/asm/fixmap.h index f1f4e23..5c2c023 100644 --- a/arch/powerpc/include/asm/fixmap.h +++ b/arch/powerpc/include/asm/fixmap.h @@ -44,6 +44,9 @@ */ enum fixed_addresses { FIX_HOLE, + /* reserve the top 128K for early debugging purposes */ + FIX_EARLY_DEBUG_TOP = FIX_HOLE, + FIX_EARLY_DEBUG_BASE = FIX_EARLY_DEBUG_TOP+((128*1024)/PAGE_SIZE)-1, #ifdef CONFIG_HIGHMEM FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1,