Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c0897856
Commit
c0897856
authored
Jun 24, 2006
by
Russell King
Committed by
Russell King
Jun 24, 2006
Browse files
Options
Browse Files
Download
Plain Diff
Merge signal handler branch
parents
e11c910b
85fe0681
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
160 additions
and
126 deletions
+160
-126
arch/arm/kernel/signal.c
arch/arm/kernel/signal.c
+82
-125
include/asm-arm/ucontext.h
include/asm-arm/ucontext.h
+78
-1
No files found.
arch/arm/kernel/signal.c
View file @
c0897856
This diff is collapsed.
Click to expand it.
include/asm-arm/ucontext.h
View file @
c0897856
#ifndef _ASMARM_UCONTEXT_H
#define _ASMARM_UCONTEXT_H
#include <asm/fpstate.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
;
/* mask last for extensibility */
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.
*/
#ifdef CONFIG_IWMMXT
/* iwmmxt_area is 0x98 bytes long, preceeded 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
#if __LINUX_ARM_ARCH__ < 6
/* For ARM pre-v6, we use fstmiax and fldmiax. This adds one extra
* word after the registers, and a word of padding at the end for
* alignment. */
#define VFP_MAGIC 0x56465001
#define VFP_STORAGE_SIZE 152
#else
#define VFP_MAGIC 0x56465002
#define VFP_STORAGE_SIZE 144
#endif
struct
vfp_sigframe
{
unsigned
long
magic
;
unsigned
long
size
;
union
vfp_state
storage
;
};
#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_IWMMXT
struct
iwmmxt_sigframe
iwmmxt
;
#endif
#if 0 && defined CONFIG_VFP /* Not yet saved. */
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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment