libc: Fix struct user_vfp definition.

This patch moves the definition of struct user_vfp from <asm/ptrace.h>
to <asm/user.h> for the ARM platform, in order to match the original
kernel headers.

See patches  94519 and 94520 for a description of the problem and a
fix for debuggerd that uses the structure.

This prevented us from properly re-running the kernel headers cleanup
scripts.

Change-Id: I43718a59ae49b9d89fc2d1c8affb65973fb2919c
This commit is contained in:
David 'Digit' Turner 2011-02-01 14:50:12 +01:00
parent 040e18f362
commit 30b4d82bba
2 changed files with 12 additions and 6 deletions

View File

@ -67,11 +67,6 @@ struct pt_regs {
long uregs[18]; long uregs[18];
}; };
struct user_vfp {
unsigned long long fpregs[32];
unsigned long fpscr;
};
#define ARM_cpsr uregs[16] #define ARM_cpsr uregs[16]
#define ARM_pc uregs[15] #define ARM_pc uregs[15]
#define ARM_lr uregs[14] #define ARM_lr uregs[14]

View File

@ -58,4 +58,15 @@ struct user{
#define HOST_TEXT_START_ADDR (u.start_code) #define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) #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 #endif