mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
Revert "video:uvesafb: Fix oops that uvesafb try to execute NX-protected page"
This reverts commit ec0d22e4d5
.
This patch requires exporting 'pcibios_enabled' to avoid breaking
modular uvesafb builds. As this gets some opposition by Alan Cox it
needs more discussion, revert the patch for now.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
This commit is contained in:
parent
dc7e57fa80
commit
6bff98b455
@ -23,7 +23,6 @@
|
||||
#include <video/uvesafb.h>
|
||||
#ifdef CONFIG_X86
|
||||
#include <video/vga.h>
|
||||
#include <linux/pci.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MTRR
|
||||
#include <asm/mtrr.h>
|
||||
@ -816,15 +815,8 @@ static int __devinit uvesafb_vbe_init(struct fb_info *info)
|
||||
par->pmi_setpal = pmi_setpal;
|
||||
par->ypan = ypan;
|
||||
|
||||
if (par->pmi_setpal || par->ypan) {
|
||||
if (pcibios_enabled) {
|
||||
if (par->pmi_setpal || par->ypan)
|
||||
uvesafb_vbe_getpmi(task, par);
|
||||
} else {
|
||||
par->pmi_setpal = par->ypan = 0;
|
||||
printk(KERN_WARNING "uvesafb: PCI BIOS area is NX."
|
||||
"Can't use protected mode interface\n");
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* The protected mode interface is not available on non-x86. */
|
||||
par->pmi_setpal = par->ypan = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user