diff options
Diffstat (limited to 'arch/x86/kernel/ptrace.c')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index b7ff783dc5fe..170f0932f70f 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -1397,6 +1397,9 @@ static const struct user_regset_view user_x86_64_view = { | |||
1397 | #define genregs32_get genregs_get | 1397 | #define genregs32_get genregs_get |
1398 | #define genregs32_set genregs_set | 1398 | #define genregs32_set genregs_set |
1399 | 1399 | ||
1400 | #define user_i387_ia32_struct user_i387_struct | ||
1401 | #define user32_fxsr_struct user_fxsr_struct | ||
1402 | |||
1400 | #endif /* CONFIG_X86_64 */ | 1403 | #endif /* CONFIG_X86_64 */ |
1401 | 1404 | ||
1402 | #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION | 1405 | #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION |
@@ -1409,13 +1412,13 @@ static const struct user_regset x86_32_regsets[] = { | |||
1409 | }, | 1412 | }, |
1410 | [REGSET_FP] = { | 1413 | [REGSET_FP] = { |
1411 | .core_note_type = NT_PRFPREG, | 1414 | .core_note_type = NT_PRFPREG, |
1412 | .n = sizeof(struct user_i387_struct) / sizeof(u32), | 1415 | .n = sizeof(struct user_i387_ia32_struct) / sizeof(u32), |
1413 | .size = sizeof(u32), .align = sizeof(u32), | 1416 | .size = sizeof(u32), .align = sizeof(u32), |
1414 | .active = fpregs_active, .get = fpregs_get, .set = fpregs_set | 1417 | .active = fpregs_active, .get = fpregs_get, .set = fpregs_set |
1415 | }, | 1418 | }, |
1416 | [REGSET_XFP] = { | 1419 | [REGSET_XFP] = { |
1417 | .core_note_type = NT_PRXFPREG, | 1420 | .core_note_type = NT_PRXFPREG, |
1418 | .n = sizeof(struct user_i387_struct) / sizeof(u32), | 1421 | .n = sizeof(struct user32_fxsr_struct) / sizeof(u32), |
1419 | .size = sizeof(u32), .align = sizeof(u32), | 1422 | .size = sizeof(u32), .align = sizeof(u32), |
1420 | .active = xfpregs_active, .get = xfpregs_get, .set = xfpregs_set | 1423 | .active = xfpregs_active, .get = xfpregs_get, .set = xfpregs_set |
1421 | }, | 1424 | }, |