Skip to content

Commit b7d8c16

Browse files
committed
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 <[email protected]>
1 parent 9f6cfef commit b7d8c16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/parisc/include/asm/processor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#ifndef __ASSEMBLY__
1313
#include <linux/threads.h>
1414

15+
#include <asm/assembly.h>
1516
#include <asm/prefetch.h>
1617
#include <asm/hardware.h>
1718
#include <asm/pdc.h>
@@ -101,7 +102,7 @@ DECLARE_PER_CPU(struct cpuinfo_parisc, cpu_data);
101102

102103
#define CPU_HVERSION ((boot_cpu_data.hversion >> 4) & 0x0FFF)
103104

104-
#define ARCH_MIN_TASKALIGN 8
105+
#define ARCH_MIN_TASKALIGN FRAME_ALIGN
105106

106107
struct thread_struct {
107108
struct pt_regs regs;

0 commit comments

Comments
 (0)