]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: don't use pt_regs in struct sigcontext
authorJonas Bonn <jonas@southpole.se>
Sat, 30 Jul 2011 14:15:42 +0000 (16:15 +0200)
committerJonas Bonn <jonas@southpole.se>
Mon, 5 Sep 2011 12:29:12 +0000 (14:29 +0200)
commit7c0a0bad1c95b5600d8f3faa610bfdea30183eb2
tree26a3ec9893bb31dd1945f3f3db9869d590a268e3
parent0ce4436a35d4d3c43b130212cebb130e5f30ad5d
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: Jonas Bonn <jonas@southpole.se>
Reviewed-by: Emilio Cota <cota@braap.org>
arch/openrisc/include/asm/sigcontext.h
arch/openrisc/kernel/signal.c