Skip to content

Commit

Permalink
[S390] Introduce user_regset accessors for s390
Browse files Browse the repository at this point in the history
Add the user_regset definitions for normal and compat processes, replace
the dump_regs core dump cruft with the generic CORE_DUMP_USER_REGSET and
replace binfmt_elf32.c with the generic compat_binfmt_elf.c implementation.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
  • Loading branch information
Martin Schwidefsky authored and Heiko Carstens committed Jul 14, 2008
1 parent ae437a4 commit 63506c4
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 304 deletions.
1 change: 1 addition & 0 deletions arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ config MATHEMU
config COMPAT
bool "Kernel support for 31 bit emulation"
depends on 64BIT
select COMPAT_BINFMT_ELF
help
Select this option if you want to enable your system kernel to
handle system-calls from ELF binaries for 31 bit ESA. This option
Expand Down
7 changes: 6 additions & 1 deletion arch/s390/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
#
CFLAGS_smp.o := -Wno-nonnull

#
# Pass UTS_MACHINE for user_regset definition
#
CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'

obj-y := bitmap.o traps.o time.o process.o base.o early.o \
setup.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o \
s390_ext.o debug.o irq.o ipl.o dis.o diag.o
Expand All @@ -23,7 +28,7 @@ obj-$(CONFIG_AUDIT) += audit.o
compat-obj-$(CONFIG_AUDIT) += compat_audit.o
obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \
compat_wrapper.o compat_exec_domain.o \
binfmt_elf32.o $(compat-obj-y)
$(compat-obj-y)

obj-$(CONFIG_VIRT_TIMER) += vtime.o
obj-$(CONFIG_STACKTRACE) += stacktrace.o
Expand Down
214 changes: 0 additions & 214 deletions arch/s390/kernel/binfmt_elf32.c

This file was deleted.

4 changes: 2 additions & 2 deletions arch/s390/kernel/compat_ptrace.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _PTRACE32_H
#define _PTRACE32_H

#include "compat_linux.h" /* needed for _psw_t32 */
#include "compat_linux.h" /* needed for psw_compat_t */

typedef struct {
__u32 cr[3];
Expand Down Expand Up @@ -38,7 +38,7 @@ typedef struct {

struct user_regs_struct32
{
_psw_t32 psw;
psw_compat_t psw;
u32 gprs[NUM_GPRS];
u32 acrs[NUM_ACRS];
u32 orig_gpr2;
Expand Down
Loading

0 comments on commit 63506c4

Please sign in to comment.