aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/fault_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/fault_32.c')
-rw-r--r--arch/x86/mm/fault_32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/mm/fault_32.c b/arch/x86/mm/fault_32.c
index 276863dc4bdd..93ede2dde958 100644
--- a/arch/x86/mm/fault_32.c
+++ b/arch/x86/mm/fault_32.c
@@ -475,14 +475,16 @@ good_area:
475 else 475 else
476 tsk->min_flt++; 476 tsk->min_flt++;
477 477
478#ifdef CONFIG_X86_32
478 /* 479 /*
479 * Did it hit the DOS screen memory VA from vm86 mode? 480 * Did it hit the DOS screen memory VA from vm86 mode?
480 */ 481 */
481 if (regs->flags & VM_MASK) { 482 if (v8086_mode(regs)) {
482 unsigned long bit = (address - 0xA0000) >> PAGE_SHIFT; 483 unsigned long bit = (address - 0xA0000) >> PAGE_SHIFT;
483 if (bit < 32) 484 if (bit < 32)
484 tsk->thread.screen_bitmap |= 1 << bit; 485 tsk->thread.screen_bitmap |= 1 << bit;
485 } 486 }
487#endif
486 up_read(&mm->mmap_sem); 488 up_read(&mm->mmap_sem);
487 return; 489 return;
488 490