diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/ds.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c index 4c8d57ec9663..04e38ef646af 100644 --- a/arch/x86/kernel/ds.c +++ b/arch/x86/kernel/ds.c | |||
@@ -816,13 +816,21 @@ static const struct ds_configuration ds_cfg_var = { | |||
816 | .sizeof_ds = sizeof(long) * 12, | 816 | .sizeof_ds = sizeof(long) * 12, |
817 | .sizeof_field = sizeof(long), | 817 | .sizeof_field = sizeof(long), |
818 | .sizeof_rec[ds_bts] = sizeof(long) * 3, | 818 | .sizeof_rec[ds_bts] = sizeof(long) * 3, |
819 | #ifdef __i386__ | ||
819 | .sizeof_rec[ds_pebs] = sizeof(long) * 10 | 820 | .sizeof_rec[ds_pebs] = sizeof(long) * 10 |
821 | #else | ||
822 | .sizeof_rec[ds_pebs] = sizeof(long) * 18 | ||
823 | #endif | ||
820 | }; | 824 | }; |
821 | static const struct ds_configuration ds_cfg_64 = { | 825 | static const struct ds_configuration ds_cfg_64 = { |
822 | .sizeof_ds = 8 * 12, | 826 | .sizeof_ds = 8 * 12, |
823 | .sizeof_field = 8, | 827 | .sizeof_field = 8, |
824 | .sizeof_rec[ds_bts] = 8 * 3, | 828 | .sizeof_rec[ds_bts] = 8 * 3, |
829 | #ifdef __i386__ | ||
825 | .sizeof_rec[ds_pebs] = 8 * 10 | 830 | .sizeof_rec[ds_pebs] = 8 * 10 |
831 | #else | ||
832 | .sizeof_rec[ds_pebs] = 8 * 18 | ||
833 | #endif | ||
826 | }; | 834 | }; |
827 | 835 | ||
828 | static inline void | 836 | static inline void |