Skip to content

Commit

Permalink
parisc: Fix HPMC handler by increasing size to multiple of 16 bytes
Browse files Browse the repository at this point in the history
Make sure that the HPMC (High Priority Machine Check) handler is 16-byte
aligned and that it's length in the IVT is a multiple of 16 bytes.
Otherwise PDC may decide not to call the HPMC crash handler.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
  • Loading branch information
Helge Deller committed Mar 27, 2018
1 parent c14b302 commit d5654e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/parisc/kernel/hpmc.S
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ END(hpmc_pim_data)
.text

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

Expand Down Expand Up @@ -300,12 +301,15 @@ os_hpmc_6:

b .
nop
.align 16 /* make function length multiple of 16 bytes */
ENDPROC_CFI(os_hpmc)
.os_hpmc_end:


__INITRODATA
.globl os_hpmc_size
.align 4
.export os_hpmc_size
.type os_hpmc_size, @object
.size os_hpmc_size, 4
os_hpmc_size:
.word .os_hpmc_end-.os_hpmc

0 comments on commit d5654e1

Please sign in to comment.