linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Nicholas Piggin <npiggin@gmail.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH 1/2] powerpc/64: Correct comment on LOAD_HANDLER()
Date: Tue, 26 Jul 2016 16:17:07 +1000	[thread overview]
Message-ID: <20160726161707.6a175d1d@roar.ozlabs.ibm.com> (raw)
In-Reply-To: <1469510970-11599-1-git-send-email-mpe@ellerman.id.au>

On Tue, 26 Jul 2016 15:29:29 +1000
Michael Ellerman <mpe@ellerman.id.au> wrote:

> The comment for LOAD_HANDLER() was wrong. The part about kdump has not
> been true since 1f6a93e4c35e ("powerpc: Make it possible to move the
> interrupt handlers away from the kernel").
> 
> Describe how it currently works, and combine the two separate comments
> into one.
> 
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

Reviewed-by: Nick Piggin <npiggin@gmail.com>

> ---
>  arch/powerpc/include/asm/exception-64s.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/exception-64s.h
> b/arch/powerpc/include/asm/exception-64s.h index
> 93ae809fe5ea..4ff3e2f16b5d 100644 ---
> a/arch/powerpc/include/asm/exception-64s.h +++
> b/arch/powerpc/include/asm/exception-64s.h @@ -84,12 +84,12 @@
>  
>  /*
>   * We're short on space and time in the exception prolog, so we can't
> - * use the normal SET_REG_IMMEDIATE macro. Normally we just need the
> - * low halfword of the address, but for Kdump we need the whole low
> - * word.
> + * use the normal LOAD_REG_IMMEDIATE macro to load the address of
> label.
> + * Instead we get the base of the kernel from paca->kernelbase and
> or in the low
> + * part of label. This requires that the label be within 64KB of
> kernelbase, and
> + * that kernelbase be 64K aligned.
>   */
>  #define LOAD_HANDLER(reg,
> label)					\
> -	/* Handlers must be within 64K of kbase, which must be 64k
> aligned */ \ ori	reg,reg,(label)-_stext;	/* virt addr
> of handler ... */ 
>  /* Exception register prefixes */

  parent reply	other threads:[~2016-07-26  6:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-26  5:29 [PATCH 1/2] powerpc/64: Correct comment on LOAD_HANDLER() Michael Ellerman
2016-07-26  5:29 ` [PATCH 2/2] powerpc/64: Do load of PACAKBASE in LOAD_HANDLER Michael Ellerman
2016-07-26  6:36   ` Nicholas Piggin
2016-09-13 12:16   ` [2/2] " Michael Ellerman
2016-07-26  6:17 ` Nicholas Piggin [this message]
2016-09-13 12:16 ` [1/2] powerpc/64: Correct comment on LOAD_HANDLER() Michael Ellerman

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=20160726161707.6a175d1d@roar.ozlabs.ibm.com \
    --to=npiggin@gmail.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mpe@ellerman.id.au \
    /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;
as well as URLs for NNTP newsgroup(s).