From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Albert Herranz <albert_herranz@yahoo.es>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [RFC PATCH v4 1/2] powerpc: reserve fixmap entries for early debug
Date: Sat, 12 Dec 2009 09:15:08 +1100 [thread overview]
Message-ID: <1260569708.16132.377.camel@pasglop> (raw)
In-Reply-To: <731eb73d0a309d0c23b30bea3718b976c3782b71.1259871725.git.albert_herranz@yahoo.es>
On Thu, 2009-12-03 at 21:34 +0100, Albert Herranz wrote:
> 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 <albert_herranz@yahoo.es>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
That will do for now. I have ideas to clean it up a bit but for now it's
fine.
> ---
> 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,
next prev parent reply other threads:[~2009-12-11 22:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-03 20:34 [RFC PATCH v4 0/2] rework of usbgecko-based early debug Albert Herranz
2009-12-03 20:34 ` [RFC PATCH v4 1/2] powerpc: reserve fixmap entries for " Albert Herranz
2009-12-11 22:15 ` Benjamin Herrenschmidt [this message]
2009-12-03 20:35 ` [RFC PATCH v4 2/2] powerpc: gamecube/wii: early debugging using usbgecko Albert Herranz
2009-12-04 12:04 ` Segher Boessenkool
2009-12-04 16:54 ` Albert Herranz
2009-12-04 19:56 ` Segher Boessenkool
2009-12-11 22:16 ` Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1260569708.16132.377.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=albert_herranz@yahoo.es \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox