mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-17 07:54:54 +08:00
441692aafc
Pull ARM updates from Russell King: - add support for ELF fdpic binaries on both MMU and noMMU platforms - linker script cleanups - support for compressed .data section for XIP images - discard memblock arrays when possible - various cleanups - atomic DMA pool updates - better diagnostics of missing/corrupt device tree - export information to allow userspace kexec tool to place images more inteligently, so that the device tree isn't overwritten by the booting kernel - make early_printk more efficient on semihosted systems - noMMU cleanups - SA1111 PCMCIA update in preparation for further cleanups * 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: (38 commits) ARM: 8719/1: NOMMU: work around maybe-uninitialized warning ARM: 8717/2: debug printch/printascii: translate '\n' to "\r\n" not "\n\r" ARM: 8713/1: NOMMU: Support MPU in XIP configuration ARM: 8712/1: NOMMU: Use more MPU regions to cover memory ARM: 8711/1: V7M: Add support for MPU to M-class ARM: 8710/1: Kconfig: Kill CONFIG_VECTORS_BASE ARM: 8709/1: NOMMU: Disallow MPU for XIP ARM: 8708/1: NOMMU: Rework MPU to be mostly done in C ARM: 8707/1: NOMMU: Update MPU accessors to use cp15 helpers ARM: 8706/1: NOMMU: Move out MPU setup in separate module ARM: 8702/1: head-common.S: Clear lr before jumping to start_kernel() ARM: 8705/1: early_printk: use printascii() rather than printch() ARM: 8703/1: debug.S: move hexbuf to a writable section ARM: add additional table to compressed kernel ARM: decompressor: fix BSS size calculation pcmcia: sa1111: remove special sa1111 mmio accessors pcmcia: sa1111: use sa1111_get_irq() to obtain IRQ resources ARM: better diagnostics with missing/corrupt dtb ARM: 8699/1: dma-mapping: Remove init_dma_coherent_pool_size() ARM: 8698/1: dma-mapping: Mark atomic_pool as __ro_after_init ..
111 lines
3.0 KiB
C
111 lines
3.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASMARM_UCONTEXT_H
|
|
#define _ASMARM_UCONTEXT_H
|
|
|
|
#include <asm/fpstate.h>
|
|
#include <asm/user.h>
|
|
|
|
/*
|
|
* struct sigcontext only has room for the basic registers, but struct
|
|
* ucontext now has room for all registers which need to be saved and
|
|
* restored. Coprocessor registers are stored in uc_regspace. Each
|
|
* coprocessor's saved state should start with a documented 32-bit magic
|
|
* number, followed by a 32-bit word giving the coproccesor's saved size.
|
|
* uc_regspace may be expanded if necessary, although this takes some
|
|
* coordination with glibc.
|
|
*/
|
|
|
|
struct ucontext {
|
|
unsigned long uc_flags;
|
|
struct ucontext *uc_link;
|
|
stack_t uc_stack;
|
|
struct sigcontext uc_mcontext;
|
|
sigset_t uc_sigmask;
|
|
/* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */
|
|
int __unused[32 - (sizeof (sigset_t) / sizeof (int))];
|
|
/* Last for extensibility. Eight byte aligned because some
|
|
coprocessors require eight byte alignment. */
|
|
unsigned long uc_regspace[128] __attribute__((__aligned__(8)));
|
|
};
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
/*
|
|
* Coprocessor save state. The magic values and specific
|
|
* coprocessor's layouts are part of the userspace ABI. Each one of
|
|
* these should be a multiple of eight bytes and aligned to eight
|
|
* bytes, to prevent unpredictable padding in the signal frame.
|
|
*/
|
|
|
|
/*
|
|
* Dummy padding block: if this magic is encountered, the block should
|
|
* be skipped using the corresponding size field.
|
|
*/
|
|
#define DUMMY_MAGIC 0xb0d9ed01
|
|
|
|
#ifdef CONFIG_CRUNCH
|
|
#define CRUNCH_MAGIC 0x5065cf03
|
|
#define CRUNCH_STORAGE_SIZE (CRUNCH_SIZE + 8)
|
|
|
|
struct crunch_sigframe {
|
|
unsigned long magic;
|
|
unsigned long size;
|
|
struct crunch_state storage;
|
|
} __attribute__((__aligned__(8)));
|
|
#endif
|
|
|
|
#ifdef CONFIG_IWMMXT
|
|
/* iwmmxt_area is 0x98 bytes long, preceded by 8 bytes of signature */
|
|
#define IWMMXT_MAGIC 0x12ef842a
|
|
#define IWMMXT_STORAGE_SIZE (IWMMXT_SIZE + 8)
|
|
|
|
struct iwmmxt_sigframe {
|
|
unsigned long magic;
|
|
unsigned long size;
|
|
struct iwmmxt_struct storage;
|
|
} __attribute__((__aligned__(8)));
|
|
#endif /* CONFIG_IWMMXT */
|
|
|
|
#ifdef CONFIG_VFP
|
|
#define VFP_MAGIC 0x56465001
|
|
|
|
struct vfp_sigframe
|
|
{
|
|
unsigned long magic;
|
|
unsigned long size;
|
|
struct user_vfp ufp;
|
|
struct user_vfp_exc ufp_exc;
|
|
} __attribute__((__aligned__(8)));
|
|
|
|
/*
|
|
* 8 byte for magic and size, 264 byte for ufp, 12 bytes for ufp_exc,
|
|
* 4 bytes padding.
|
|
*/
|
|
#define VFP_STORAGE_SIZE sizeof(struct vfp_sigframe)
|
|
|
|
#endif /* CONFIG_VFP */
|
|
|
|
/*
|
|
* Auxiliary signal frame. This saves stuff like FP state.
|
|
* The layout of this structure is not part of the user ABI,
|
|
* because the config options aren't. uc_regspace is really
|
|
* one of these.
|
|
*/
|
|
struct aux_sigframe {
|
|
#ifdef CONFIG_CRUNCH
|
|
struct crunch_sigframe crunch;
|
|
#endif
|
|
#ifdef CONFIG_IWMMXT
|
|
struct iwmmxt_sigframe iwmmxt;
|
|
#endif
|
|
#ifdef CONFIG_VFP
|
|
struct vfp_sigframe vfp;
|
|
#endif
|
|
/* Something that isn't a valid magic number for any coprocessor. */
|
|
unsigned long end_magic;
|
|
} __attribute__((__aligned__(8)));
|
|
|
|
#endif
|
|
|
|
#endif /* !_ASMARM_UCONTEXT_H */
|