Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2929e738 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: Move hpmc stack into page aligned bss section



Do not reserve space in data section for hpmc stack, instead move it
into the page aligned bss section.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 92420bd0
Loading
Loading
Loading
Loading
+8 −4
Original line number Original line Diff line number Diff line
@@ -41,12 +41,12 @@
 */
 */


	.level		1.1
	.level		1.1
	.data


#include <asm/assembly.h>
#include <asm/assembly.h>
#include <asm/pdc.h>
#include <asm/pdc.h>


#include <linux/linkage.h>
#include <linux/linkage.h>
#include <linux/init.h>


	/*
	/*
	 * stack for os_hpmc, the HPMC handler.
	 * stack for os_hpmc, the HPMC handler.
@@ -55,22 +55,26 @@
	 * IODC requires 7K byte stack.  That leaves 1K byte for os_hpmc.
	 * IODC requires 7K byte stack.  That leaves 1K byte for os_hpmc.
	 */
	 */


	__PAGE_ALIGNED_BSS
	.align 4096
	.align 4096
hpmc_stack:
hpmc_stack:
	.block 16384
	.block 16384


#define HPMC_IODC_BUF_SIZE 0x8000
#define HPMC_IODC_BUF_SIZE 0x8000


	__PAGE_ALIGNED_BSS
	.align 4096
	.align 4096
hpmc_iodc_buf:
hpmc_iodc_buf:
	.block HPMC_IODC_BUF_SIZE
	.block HPMC_IODC_BUF_SIZE


	.section .bss
	.align 8
	.align 8
hpmc_raddr:
hpmc_raddr:
	.block 128
	.block 128


#define HPMC_PIM_DATA_SIZE 896 /* Enough to hold all architected 2.0 state */
#define HPMC_PIM_DATA_SIZE 896 /* Enough to hold all architected 2.0 state */


	.section .bss
	.align 8
	.align 8
ENTRY(hpmc_pim_data)
ENTRY(hpmc_pim_data)
	.block HPMC_PIM_DATA_SIZE
	.block HPMC_PIM_DATA_SIZE
@@ -297,9 +301,9 @@ os_hpmc_6:
	nop
	nop
ENDPROC(os_hpmc)
ENDPROC(os_hpmc)
.os_hpmc_end:
.os_hpmc_end:
	nop

.data

.align 4
	__INITRODATA
	.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