diff options
author | Helge Deller <deller@gmx.de> | 2018-04-11 09:09:53 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2018-04-11 11:40:35 +0200 |
commit | 71d577db01a5177c7807a2f3d3df9bab9d21c500 (patch) | |
tree | 12293e0fc6a19226bce734e0826b2f4f95144e50 /arch/parisc/include/asm/compat.h | |
parent | parisc: Move cache flush functions into .text.hot section (diff) | |
download | linux-71d577db01a5177c7807a2f3d3df9bab9d21c500.tar.xz linux-71d577db01a5177c7807a2f3d3df9bab9d21c500.zip |
parisc: Switch to generic COMPAT_BINFMT_ELF
Drop our own compat binfmt implementation in
arch/parisc/kernel/binfmt_elf32.c in favour of the generic
implementation with CONFIG_COMPAT_BINFMT_ELF.
While cleaning up the dependencies, I noticed that ELF_PLATFORM was strangely
defined: On a 32-bit kernel, it was defined to "PARISC", while when running in
compat mode on a 64-bit kernel it was defined to "PARISC32". Since it doesn't
seem to be used in glibc yet, it's now defined in both cases to "PARISC". In
any case, it can be distinguished because it's either a 32-bit or a 64-bit ELF
file.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/include/asm/compat.h')
-rw-r--r-- | arch/parisc/include/asm/compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h index c22db5323244..57b8b2a2fd4e 100644 --- a/arch/parisc/include/asm/compat.h +++ b/arch/parisc/include/asm/compat.h @@ -193,6 +193,12 @@ struct compat_shmid64_ds { }; /* + * The type of struct elf_prstatus.pr_reg in compatible core dumps. + */ +#define COMPAT_ELF_NGREG 80 +typedef compat_ulong_t compat_elf_gregset_t[COMPAT_ELF_NGREG]; + +/* * A pointer passed in from user mode. This should not * be used for syscall parameters, just declare them * as pointers because the syscall entry code will have |