Commit a3c30f18 authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: force kernel stack to be 16 bytes aligned

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IBDJNZ



--------------------------------

Make struct pt_regs and struct rt_sigframe 16 bytes aligned to make sure
the kernel stack is always 16 bytes aligned.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 07b64cc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ struct pt_regs {
	unsigned long earg0;
	unsigned long earg1;
	unsigned long earg2;
};
} __aligned(16);

#define arch_has_single_step()		(1)
#define user_mode(regs) (((regs)->ps & 8) != 0)
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ SYSCALL_DEFINE3(odd_sigaction, int, sig,
struct rt_sigframe {
	struct siginfo info;
	struct ucontext uc;
};
} __aligned(16);

/*
 * If this changes, userland unwinders that Know Things about our signal