lkml.org 
[lkml]   [2019]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/11] powerpc/32: add START_EXCEPTION() in head_32.h
    Date
    Add START_EXCEPTION() in head_32.h for preparing the use
    of head_32.h in head_40x.S

    Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
    ---
    arch/powerpc/kernel/head_32.h | 7 +++++--
    1 file changed, 5 insertions(+), 2 deletions(-)

    diff --git a/arch/powerpc/kernel/head_32.h b/arch/powerpc/kernel/head_32.h
    index 643dd8d34aac..f77f13142410 100644
    --- a/arch/powerpc/kernel/head_32.h
    +++ b/arch/powerpc/kernel/head_32.h
    @@ -72,10 +72,13 @@
    /*
    * Exception vectors.
    */
    -#define EXCEPTION(n, label, hdlr, xfer) \
    +#define START_EXCEPTION(n, label) \
    . = n; \
    DO_KVM n; \
    -label: \
    +label:
    +
    +#define EXCEPTION(n, label, hdlr, xfer) \
    + START_EXCEPTION(n, label) \
    EXCEPTION_PROLOG; \
    addi r3,r1,STACK_FRAME_OVERHEAD; \
    xfer(n, hdlr)
    --
    2.13.3
    \
     
     \ /
      Last update: 2019-01-28 12:12    [W:4.577 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site