aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/fault_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/fault_64.c')
-rw-r--r--arch/x86/mm/fault_64.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/mm/fault_64.c b/arch/x86/mm/fault_64.c
index 9ef0306efe9e..2d9e6da2cb30 100644
--- a/arch/x86/mm/fault_64.c
+++ b/arch/x86/mm/fault_64.c
@@ -514,6 +514,17 @@ good_area:
514 tsk->maj_flt++; 514 tsk->maj_flt++;
515 else 515 else
516 tsk->min_flt++; 516 tsk->min_flt++;
517
518#ifdef CONFIG_X86_32
519 /*
520 * Did it hit the DOS screen memory VA from vm86 mode?
521 */
522 if (v8086_mode(regs)) {
523 unsigned long bit = (address - 0xA0000) >> PAGE_SHIFT;
524 if (bit < 32)
525 tsk->thread.screen_bitmap |= 1 << bit;
526 }
527#endif
517 up_read(&mm->mmap_sem); 528 up_read(&mm->mmap_sem);
518 return; 529 return;
519 530