Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61391
b: refs/heads/master
c: 7ad37df
h: refs/heads/master
i:
  61389: 3d62d40
  61387: 73034b6
  61383: 6ae42ae
  61375: 72a094e
v: v3
  • Loading branch information
H. Peter Anvin committed Jul 18, 2007
1 parent b7d1563 commit 3e4b315
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5593eaa854d0b23c3b270933a93b9b82946df729
refs/heads/master: 7ad37df02c529525c4ad19035359af89d2d2a5bd
7 changes: 6 additions & 1 deletion trunk/arch/i386/boot/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static void vga_recalc_vertical(void)
{
unsigned int font_size, rows;
u16 crtc;
u8 ov;
u8 pt, ov;

set_fs(0);
font_size = rdfs8(0x485); /* BIOS: font size (pixels) */
Expand All @@ -206,7 +206,12 @@ static void vga_recalc_vertical(void)

crtc = vga_crtc();

pt = in_idx(crtc, 0x11);
pt &= ~0x80; /* Unlock CR0-7 */
out_idx(pt, crtc, 0x11);

out_idx((u8)rows, crtc, 0x12); /* Lower height register */

ov = in_idx(crtc, 0x07); /* Overflow register */
ov &= 0xbd;
ov |= (rows >> (8-1)) & 0x02;
Expand Down

0 comments on commit 3e4b315

Please sign in to comment.