OSDN Git Service

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 c298140..eb2e4bd 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