Suspicious code in arch/i386/mm/fault.c

Pavel Machek (pavel@bug.ucw.cz)
Tue, 25 Aug 1998 23:25:46 +0200


Hi!

I found this piece of code in `subj`

/*
* Did it hit the DOS screen memory VA from vm86 mode?
*/
if (regs->eflags & VM_MASK) {
unsigned long bit = (address - 0xA0000) >> PAGE_SHIFT;
if (bit < 32)
tsk->tss.screen_bitmap |= 1 << bit;
}

and it looks pretty strange to me. What is it good for? Will it work
in case of someone running vesafb?
Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html