Skip to content

Commit

Permalink
parisc: Allocate task struct with stack frame alignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helge Deller committed Oct 30, 2021
1 parent 9f6cfef commit b7d8c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/parisc/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b7d8c16

Please sign in to comment.