aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2021-10-04 23:40:48 +0200
committerHelge Deller <deller@gmx.de>2021-10-30 23:11:01 +0200
commitb7d8c16a58f8e843f1db6dd08aa0d72683b336c1 (patch)
tree7a85bee50e538f258b939e7488ad57f6ccdc9691 /arch/parisc/include/asm
parentparisc: Define FRAME_ALIGN and PRIV_USER/PRIV_KERNEL in assembly.h (diff)
downloadlinux-dev-b7d8c16a58f8e843f1db6dd08aa0d72683b336c1.tar.xz
linux-dev-b7d8c16a58f8e843f1db6dd08aa0d72683b336c1.zip
parisc: Allocate task struct with stack frame alignment
We will put the stack directly behind the task struct, so make sure that we allocate it with an alignment of 64 bytes. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm')
-rw-r--r--arch/parisc/include/asm/processor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
index eeb7da064289..290471ef5bac 100644
--- a/arch/parisc/include/asm/processor.h
+++ b/arch/parisc/include/asm/processor.h
@@ -12,6 +12,7 @@
#ifndef __ASSEMBLY__
#include <linux/threads.h>
+#include <asm/assembly.h>
#include <asm/prefetch.h>
#include <asm/hardware.h>
#include <asm/pdc.h>
@@ -101,7 +102,7 @@ DECLARE_PER_CPU(struct cpuinfo_parisc, cpu_data);
#define CPU_HVERSION ((boot_cpu_data.hversion >> 4) & 0x0FFF)
-#define ARCH_MIN_TASKALIGN 8
+#define ARCH_MIN_TASKALIGN FRAME_ALIGN
struct thread_struct {
struct pt_regs regs;