diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-09-04 13:16:36 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-09-04 13:16:36 -0400 |
commit | 49ddd9ebbebab5a9f2e40f63755c66747a175257 (patch) | |
tree | d431800bf7d0e06501a94252ea7226b56901c6d2 /vgasrc/bochsvga.c | |
parent | ef4f9e183751df5ccd32eb5dda2ce6816b53695f (diff) | |
download | seabios-49ddd9ebbebab5a9f2e40f63755c66747a175257.tar.gz |
vgabios: Check for relocatable windows before advertising support for it.
Use the VBE_win_granularity field to determine if the memory windows
are relocatable. (Bochs and Cirrus vga support relocatable windows
while the standard vga controller does not.)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/bochsvga.c')
-rw-r--r-- | vgasrc/bochsvga.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c index 2a8aeb18..938dba07 100644 --- a/vgasrc/bochsvga.c +++ b/vgasrc/bochsvga.c @@ -364,6 +364,7 @@ bochsvga_init(void) SET_VGA(VBE_framebuffer, lfb_addr); u32 totalmem = dispi_read(VBE_DISPI_INDEX_VIDEO_MEMORY_64K) * 64 * 1024; SET_VGA(VBE_total_memory, totalmem); + SET_VGA(VBE_win_granularity, 64); SET_VGA(VBE_capabilities, VBE_CAPABILITY_8BIT_DAC); dprintf(1, "VBE DISPI: lfb_addr=%x, size %d MB\n", |