Commit bc713dcf authored by Ingo Molnar's avatar Ingo Molnar

x86: fix prefetch workaround

some early Athlon XP's and Opterons generate bogus faults on prefetch
instructions. The workaround for this regressed over .24 - reinstate it.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 08dcf29e
...@@ -92,7 +92,8 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr, ...@@ -92,7 +92,8 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr,
unsigned char *max_instr; unsigned char *max_instr;
#ifdef CONFIG_X86_32 #ifdef CONFIG_X86_32
if (!(__supported_pte_mask & _PAGE_NX)) /* Catch an obscure case of prefetch inside an NX page: */
if ((__supported_pte_mask & _PAGE_NX) && (error_code & 16))
return 0; return 0;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment