diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-24 20:48:14 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-24 20:48:14 -0400 |
| commit | dfd8317d3340f03bc06eba6b58f0ec0861da4a13 (patch) | |
| tree | 43bd5c93ad045355687c26beb0983fcf6ca18a6b /include/asm-arm/ucontext.h | |
| parent | 83626b01275d0228516b4d97da008328fc37c934 (diff) | |
| parent | c0897856553d45aee1780bed455b7c2e888dd64b (diff) | |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm: (25 commits)
[ARM] 3648/1: Update struct ucontext layout for coprocessor registers
[ARM] Add identifying number for non-rt sigframe
[ARM] Gather common sigframe saving code into setup_sigframe()
[ARM] Gather common sigframe restoration code into restore_sigframe()
[ARM] Re-use sigframe within rt_sigframe
[ARM] Merge sigcontext and sigmask members of sigframe
[ARM] Replace extramask with a full copy of the sigmask
[ARM] Remove rt_sigframe puc and pinfo pointers
[ARM] 3647/1: S3C24XX: add Osiris to the list of simtec pm machines
[ARM] 3645/1: S3C2412: irq support for external interrupts
[ARM] 3643/1: S3C2410: Add new usb clocks
[ARM] 3642/1: S3C24XX: Add machine SMDK2413
[ARM] 3641/1: S3C2412: Fixup gpio register naming
[ARM] 3640/1: S3C2412: Use S3C24XX_DCLKCON instead of S3C2410_DCLKCON
[ARM] 3639/1: S3C2412: serial port support
[ARM] 3638/1: S3C2412: core clocks
[ARM] 3637/1: S3C24XX: Add mpll clock, and set as fclk parent
[ARM] 3636/1: S3C2412: Add selection of CPU_ARM926
[ARM] 3635/1: S3C24XX: Add S3C2412 core cpu support
[ARM] 3633/1: S3C24XX: s3c2410 gpio bugfix - wrong pin nos
...
Diffstat (limited to 'include/asm-arm/ucontext.h')
| -rw-r--r-- | include/asm-arm/ucontext.h | 79 |
1 files changed, 78 insertions, 1 deletions
diff --git a/include/asm-arm/ucontext.h b/include/asm-arm/ucontext.h index f853130137..9e6f7ca9f5 100644 --- a/include/asm-arm/ucontext.h +++ b/include/asm-arm/ucontext.h | |||
| @@ -1,12 +1,89 @@ | |||
| 1 | #ifndef _ASMARM_UCONTEXT_H | 1 | #ifndef _ASMARM_UCONTEXT_H |
| 2 | #define _ASMARM_UCONTEXT_H | 2 | #define _ASMARM_UCONTEXT_H |
| 3 | 3 | ||
| 4 | #include <asm/fpstate.h> | ||
| 5 | |||
| 6 | /* | ||
| 7 | * struct sigcontext only has room for the basic registers, but struct | ||
| 8 | * ucontext now has room for all registers which need to be saved and | ||
| 9 | * restored. Coprocessor registers are stored in uc_regspace. Each | ||
| 10 | * coprocessor's saved state should start with a documented 32-bit magic | ||
| 11 | * number, followed by a 32-bit word giving the coproccesor's saved size. | ||
| 12 | * uc_regspace may be expanded if necessary, although this takes some | ||
| 13 | * coordination with glibc. | ||
| 14 | */ | ||
| 15 | |||
| 4 | struct ucontext { | 16 | struct ucontext { |
| 5 | unsigned long uc_flags; | 17 | unsigned long uc_flags; |
| 6 | struct ucontext *uc_link; | 18 | struct ucontext *uc_link; |
| 7 | stack_t uc_stack; | 19 | stack_t uc_stack; |
| 8 | struct sigcontext uc_mcontext; | 20 | struct sigcontext uc_mcontext; |
| 9 | sigset_t uc_sigmask; /* mask last for extensibility */ | 21 | sigset_t uc_sigmask; |
| 22 | /* Allow for uc_sigmask growth. Glibc uses a 1024-bit sigset_t. */ | ||
| 23 | int __unused[32 - (sizeof (sigset_t) / sizeof (int))]; | ||
| 24 | /* Last for extensibility. Eight byte aligned because some | ||
| 25 | coprocessors require eight byte alignment. */ | ||
| 26 | unsigned long uc_regspace[128] __attribute__((__aligned__(8))); | ||
| 10 | }; | 27 | }; |
| 11 | 28 | ||
| 29 | #ifdef __KERNEL__ | ||
| 30 | |||
| 31 | /* | ||
| 32 | * Coprocessor save state. The magic values and specific | ||
| 33 | * coprocessor's layouts are part of the userspace ABI. Each one of | ||
| 34 | * these should be a multiple of eight bytes and aligned to eight | ||
| 35 | * bytes, to prevent unpredictable padding in the signal frame. | ||
| 36 | */ | ||
| 37 | |||
| 38 | #ifdef CONFIG_IWMMXT | ||
| 39 | /* iwmmxt_area is 0x98 bytes long, preceeded by 8 bytes of signature */ | ||
| 40 | #define IWMMXT_MAGIC 0x12ef842a | ||
| 41 | #define IWMMXT_STORAGE_SIZE (IWMMXT_SIZE + 8) | ||
| 42 | |||
| 43 | struct iwmmxt_sigframe { | ||
| 44 | unsigned long magic; | ||
| 45 | unsigned long size; | ||
| 46 | struct iwmmxt_struct storage; | ||
| 47 | } __attribute__((__aligned__(8))); | ||
| 48 | #endif /* CONFIG_IWMMXT */ | ||
| 49 | |||
| 50 | #ifdef CONFIG_VFP | ||
| 51 | #if __LINUX_ARM_ARCH__ < 6 | ||
| 52 | /* For ARM pre-v6, we use fstmiax and fldmiax. This adds one extra | ||
| 53 | * word after the registers, and a word of padding at the end for | ||
| 54 | * alignment. */ | ||
| 55 | #define VFP_MAGIC 0x56465001 | ||
| 56 | #define VFP_STORAGE_SIZE 152 | ||
| 57 | #else | ||
| 58 | #define VFP_MAGIC 0x56465002 | ||
| 59 | #define VFP_STORAGE_SIZE 144 | ||
| 60 | #endif | ||
| 61 | |||
| 62 | struct vfp_sigframe | ||
| 63 | { | ||
| 64 | unsigned long magic; | ||
| 65 | unsigned long size; | ||
| 66 | union vfp_state storage; | ||
| 67 | }; | ||
| 68 | #endif /* CONFIG_VFP */ | ||
| 69 | |||
| 70 | /* | ||
| 71 | * Auxiliary signal frame. This saves stuff like FP state. | ||
| 72 | * The layout of this structure is not part of the user ABI, | ||
| 73 | * because the config options aren't. uc_regspace is really | ||
| 74 | * one of these. | ||
| 75 | */ | ||
| 76 | struct aux_sigframe { | ||
| 77 | #ifdef CONFIG_IWMMXT | ||
| 78 | struct iwmmxt_sigframe iwmmxt; | ||
| 79 | #endif | ||
| 80 | #if 0 && defined CONFIG_VFP /* Not yet saved. */ | ||
| 81 | struct vfp_sigframe vfp; | ||
| 82 | #endif | ||
| 83 | /* Something that isn't a valid magic number for any coprocessor. */ | ||
| 84 | unsigned long end_magic; | ||
| 85 | } __attribute__((__aligned__(8))); | ||
| 86 | |||
| 87 | #endif | ||
| 88 | |||
| 12 | #endif /* !_ASMARM_UCONTEXT_H */ | 89 | #endif /* !_ASMARM_UCONTEXT_H */ |
