From mboxrd@z Thu Jan 1 00:00:00 1970 From: Helge Deller Subject: Re: [RFC][PATCH v2] Fix HPMC handler by increasing size to multiple of 16 bytes Date: Sat, 24 Mar 2018 21:18:25 +0100 Message-ID: <20180324201825.GA22115@ls3530.fritz.box> References: <20180317113655.GA30572@ls3530.fritz.box> <81f118a7-5bc5-c6b2-eb10-a9c683c72a26@bell.net> <20180319222353.GA28132@ls3530.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: debian-hppa@lists.debian.org To: John David Anglin , linux-parisc@vger.kernel.org, James Bottomley Return-path: In-Reply-To: Resent-Message-ID: List-Id: linux-parisc.vger.kernel.org List-Id: List-URL: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Archive: https://lists.debian.org/msgid-search/20180324201825.GA22115@ls3530.fritz.box 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 Cc: stable@vger.kernel.org diff --git a/arch/parisc/kernel/hpmc.S b/arch/parisc/kernel/hpmc.S index 8d072c44f300..781c3b9a3e46 100644 --- a/arch/parisc/kernel/hpmc.S +++ b/arch/parisc/kernel/hpmc.S @@ -84,6 +84,7 @@ END(hpmc_pim_data) .text .import intr_save, code + .align 16 ENTRY_CFI(os_hpmc) .os_hpmc: @@ -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