提交 e41a6afd 编写于 作者: H Helge Deller 提交者: Greg Kroah-Hartman

parisc: Fix exported address of os_hpmc handler

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 f39cce65 ("parisc: Add
cfi_startproc and cfi_endproc to assembly code").
Signed-off-by: NHelge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org>    [4.9+]
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 72f6b9c0
...@@ -85,7 +85,7 @@ END(hpmc_pim_data) ...@@ -85,7 +85,7 @@ END(hpmc_pim_data)
.import intr_save, code .import intr_save, code
.align 16 .align 16
ENTRY_CFI(os_hpmc) ENTRY(os_hpmc)
.os_hpmc: .os_hpmc:
/* /*
...@@ -302,7 +302,6 @@ os_hpmc_6: ...@@ -302,7 +302,6 @@ os_hpmc_6:
b . b .
nop nop
.align 16 /* make function length multiple of 16 bytes */ .align 16 /* make function length multiple of 16 bytes */
ENDPROC_CFI(os_hpmc)
.os_hpmc_end: .os_hpmc_end:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册