diff options
Diffstat (limited to 'arch/x86/boot/video-vga.c')
| -rw-r--r-- | arch/x86/boot/video-vga.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/boot/video-vga.c b/arch/x86/boot/video-vga.c index 8f8d827e254d..819caa1f2008 100644 --- a/arch/x86/boot/video-vga.c +++ b/arch/x86/boot/video-vga.c | |||
| @@ -47,14 +47,6 @@ static u8 vga_set_basic_mode(void) | |||
| 47 | 47 | ||
| 48 | initregs(&ireg); | 48 | initregs(&ireg); |
| 49 | 49 | ||
| 50 | #ifdef CONFIG_VIDEO_400_HACK | ||
| 51 | if (adapter >= ADAPTER_VGA) { | ||
| 52 | ireg.ax = 0x1202; | ||
| 53 | ireg.bx = 0x0030; | ||
| 54 | intcall(0x10, &ireg, NULL); | ||
| 55 | } | ||
| 56 | #endif | ||
| 57 | |||
| 58 | ax = 0x0f00; | 50 | ax = 0x0f00; |
| 59 | intcall(0x10, &ireg, &oreg); | 51 | intcall(0x10, &ireg, &oreg); |
| 60 | mode = oreg.al; | 52 | mode = oreg.al; |
| @@ -62,11 +54,9 @@ static u8 vga_set_basic_mode(void) | |||
| 62 | set_fs(0); | 54 | set_fs(0); |
| 63 | rows = rdfs8(0x484); /* rows minus one */ | 55 | rows = rdfs8(0x484); /* rows minus one */ |
| 64 | 56 | ||
| 65 | #ifndef CONFIG_VIDEO_400_HACK | ||
| 66 | if ((oreg.ax == 0x5003 || oreg.ax == 0x5007) && | 57 | if ((oreg.ax == 0x5003 || oreg.ax == 0x5007) && |
| 67 | (rows == 0 || rows == 24)) | 58 | (rows == 0 || rows == 24)) |
| 68 | return mode; | 59 | return mode; |
| 69 | #endif | ||
| 70 | 60 | ||
| 71 | if (mode != 3 && mode != 7) | 61 | if (mode != 3 && mode != 7) |
| 72 | mode = 3; | 62 | mode = 3; |
