Skip to content

Commit

Permalink
parisc: Fix exported address of os_hpmc handler
Browse files Browse the repository at this point in the history
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 f39cce6 ("parisc: Add
cfi_startproc and cfi_endproc to assembly code").

Signed-off-by: Helge Deller <[email protected]>
Cc: <[email protected]>    [4.9+]
  • Loading branch information
hdeller committed Oct 17, 2018
1 parent 3c229b3 commit 99a3ae5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/parisc/kernel/hpmc.S
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ END(hpmc_pim_data)

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

/*
Expand Down Expand Up @@ -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:


Expand Down

0 comments on commit 99a3ae5

Please sign in to comment.