diff options
| -rw-r--r-- | arch/x86/kernel/process_64.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 63236d8f84bf..a21068e49dac 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
| @@ -110,12 +110,13 @@ void __show_regs(struct pt_regs *regs, int all) | |||
| 110 | get_debugreg(d7, 7); | 110 | get_debugreg(d7, 7); |
| 111 | 111 | ||
| 112 | /* Only print out debug registers if they are in their non-default state. */ | 112 | /* Only print out debug registers if they are in their non-default state. */ |
| 113 | if ((d0 == 0) && (d1 == 0) && (d2 == 0) && (d3 == 0) && | 113 | if (!((d0 == 0) && (d1 == 0) && (d2 == 0) && (d3 == 0) && |
| 114 | (d6 == DR6_RESERVED) && (d7 == 0x400)) | 114 | (d6 == DR6_RESERVED) && (d7 == 0x400))) { |
| 115 | return; | 115 | printk(KERN_DEFAULT "DR0: %016lx DR1: %016lx DR2: %016lx\n", |
| 116 | 116 | d0, d1, d2); | |
| 117 | printk(KERN_DEFAULT "DR0: %016lx DR1: %016lx DR2: %016lx\n", d0, d1, d2); | 117 | printk(KERN_DEFAULT "DR3: %016lx DR6: %016lx DR7: %016lx\n", |
| 118 | printk(KERN_DEFAULT "DR3: %016lx DR6: %016lx DR7: %016lx\n", d3, d6, d7); | 118 | d3, d6, d7); |
| 119 | } | ||
| 119 | 120 | ||
| 120 | if (boot_cpu_has(X86_FEATURE_OSPKE)) | 121 | if (boot_cpu_has(X86_FEATURE_OSPKE)) |
| 121 | printk(KERN_DEFAULT "PKRU: %08x\n", read_pkru()); | 122 | printk(KERN_DEFAULT "PKRU: %08x\n", read_pkru()); |
