parisc: Re-use toc_stack as hpmc_stack
authorHelge Deller <deller@gmx.de>
Fri, 7 Jan 2022 13:16:26 +0000 (14:16 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 11 Jan 2022 10:57:37 +0000 (11:57 +0100)
No need to have an own hpmc_stack. Just re-use the toc_stack of the
monarch CPU as either a TOC or a HPMC will happen at the same time.
This reduces the kernel memory footprint by 16k.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/hpmc.S

index c2981401775c7919f2a415798164796b4472ddde..eb2e4bd67035ff2331b19bc710ded8f431a79a9a 100644 (file)
         * IODC requires 7K byte stack.  That leaves 1K byte for os_hpmc.
         */
 
-       __PAGE_ALIGNED_BSS
-       .align 4096
-hpmc_stack:
-       .block 16384
+       .import toc_stack,data
+#define hpmc_stack     toc_stack       /* re-use the TOC stack */
 
 #define HPMC_IODC_BUF_SIZE 0x8000