Skip to content
Commit d7cb6667 authored by Jonas Bonn's avatar Jonas Bonn
Browse files

openrisc: don't use pt_regs in struct sigcontext



As it was decided not to export struct pt_regs to userspace, struct
sigcontext shouldn't be using it either.  The pt_regs struct for OpenRISC
is kernel internal and the layout of the registers may change in the
future.  The struct user_regs_struct is what is guaranteed to remain
stable, so struct sigcontext may use that instead.

This patch removes the usage of struct pt_regs in struct sigcontext and
makes according changes in signal.c to get the register layout right.

The usp field is removed from the sigcontext structure as this information
is already contained in the user_regs_struct.

Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
Reviewed-by: default avatarEmilio Cota <cota@braap.org>
parent 93ee7a93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment