Browse Source

parisc: Align os_hpmc_size on word boundary

The os_hpmc_size variable sometimes wasn't aligned at word boundary and thus
triggered the unaligned fault handler at startup.
Fix it by aligning it properly.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v4.14+
Helge Deller 7 years ago
parent
commit
0ed9d3de5f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/parisc/kernel/hpmc.S

+ 1 - 0
arch/parisc/kernel/hpmc.S

@@ -305,6 +305,7 @@ ENDPROC_CFI(os_hpmc)
 
 
 
 
 	__INITRODATA
 	__INITRODATA
+	.align 4
 	.export os_hpmc_size
 	.export os_hpmc_size
 os_hpmc_size:
 os_hpmc_size:
 	.word .os_hpmc_end-.os_hpmc
 	.word .os_hpmc_end-.os_hpmc