ndk: arm: Update <asm/ptrace.h> and <asm/user.h>

This is a minor update to two ARM-specific kernel headers.

- <asm/ptrace.h>: Add two new constants
- <asm/user.h>: Add 'struct vfp_user' and 'struct vfp_user_exc'

Change-Id: I25d31bb33a9102e3c74a169c28dce66211ced636
This commit is contained in:
David 'Digit' Turner
2012-01-11 10:50:27 +01:00
parent 21fc12da17
commit a58e7602fe
2 changed files with 14 additions and 0 deletions

View File

@@ -29,6 +29,9 @@
#define PTRACE_GETCRUNCHREGS 25
#define PTRACE_SETCRUNCHREGS 26
#define PTRACE_GETVFPREGS 27
#define PTRACE_SETVFPREGS 28
#define USR26_MODE 0x00000000
#define FIQ26_MODE 0x00000001
#define IRQ26_MODE 0x00000002

View File

@@ -58,4 +58,15 @@ struct user{
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
struct user_vfp {
unsigned long long fpregs[32];
unsigned long fpscr;
};
struct user_vfp_exc {
unsigned long fpexc;
unsigned long fpinst;
unsigned long fpinst2;
};
#endif