lkml.org 
[lkml]   [2018]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 013/222] parisc: Fix exported address of os_hpmc handler
    Date
    4.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Helge Deller <deller@gmx.de>

    commit 99a3ae51d557d8e38a7aece65678a31f9db215ee upstream.

    In the C-code we need to put the physical address of the hpmc handler in
    the interrupt vector table (IVA) in order to get HPMCs working. Since
    on parisc64 function pointers are indirect (in fact they are function
    descriptors) we instead export the address as variable and not as
    function.

    This reverts a small part of commit f39cce654f9a ("parisc: Add
    cfi_startproc and cfi_endproc to assembly code").

    Signed-off-by: Helge Deller <deller@gmx.de>
    Cc: <stable@vger.kernel.org> [4.9+]
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/parisc/kernel/hpmc.S | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    --- a/arch/parisc/kernel/hpmc.S
    +++ b/arch/parisc/kernel/hpmc.S
    @@ -85,7 +85,7 @@ END(hpmc_pim_data)

    .import intr_save, code
    .align 16
    -ENTRY_CFI(os_hpmc)
    +ENTRY(os_hpmc)
    .os_hpmc:

    /*
    @@ -302,7 +302,6 @@ os_hpmc_6:
    b .
    nop
    .align 16 /* make function length multiple of 16 bytes */
    -ENDPROC_CFI(os_hpmc)
    .os_hpmc_end:



    \
     
     \ /
      Last update: 2018-11-12 00:11    [W:4.032 / U:0.412 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site