Commit de9258a87f8cf142b8d565a3c14d3db7a5a1c14b
1 parent
37f53b4c
specific VGA BIOS for Cirrus VGA Card
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@905 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
4 changed files
with
12 additions
and
1 deletions
Makefile
... | ... | @@ -50,6 +50,7 @@ ifndef CONFIG_WIN32 |
50 | 50 | endif |
51 | 51 | mkdir -p "$(datadir)" |
52 | 52 | install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin \ |
53 | + pc-bios/vgabios-cirrus.bin \ | |
53 | 54 | pc-bios/linux_boot.bin "$(datadir)" |
54 | 55 | mkdir -p "$(docdir)" |
55 | 56 | install -m 644 qemu-doc.html qemu-tech.html "$(docdir)" |
... | ... | @@ -97,6 +98,7 @@ tarbin: |
97 | 98 | $(bindir)/qemu-mkcow $(bindir)/vmdk2raw \ |
98 | 99 | $(datadir)/bios.bin \ |
99 | 100 | $(datadir)/vgabios.bin \ |
101 | + $(datadir)/vgabios-cirrus.bin \ | |
100 | 102 | $(datadir)/linux_boot.bin \ |
101 | 103 | $(docdir)/qemu-doc.html \ |
102 | 104 | $(docdir)/qemu-tech.html \ | ... | ... |
hw/pc.c
... | ... | @@ -28,6 +28,7 @@ |
28 | 28 | |
29 | 29 | #define BIOS_FILENAME "bios.bin" |
30 | 30 | #define VGABIOS_FILENAME "vgabios.bin" |
31 | +#define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin" | |
31 | 32 | #define LINUX_BOOT_FILENAME "linux_boot.bin" |
32 | 33 | |
33 | 34 | #define KERNEL_LOAD_ADDR 0x00100000 |
... | ... | @@ -320,7 +321,11 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device, |
320 | 321 | } |
321 | 322 | |
322 | 323 | /* VGA BIOS load */ |
323 | - snprintf(buf, sizeof(buf), "%s/%s", bios_dir, VGABIOS_FILENAME); | |
324 | + if (cirrus_vga_enabled) { | |
325 | + snprintf(buf, sizeof(buf), "%s/%s", bios_dir, VGABIOS_CIRRUS_FILENAME); | |
326 | + } else { | |
327 | + snprintf(buf, sizeof(buf), "%s/%s", bios_dir, VGABIOS_FILENAME); | |
328 | + } | |
324 | 329 | ret = load_image(buf, phys_ram_base + 0x000c0000); |
325 | 330 | |
326 | 331 | /* setup basic memory access */ | ... | ... |
pc-bios/README
... | ... | @@ -3,3 +3,7 @@ |
3 | 3 | |
4 | 4 | - The VGA BIOS comes from the LGPL VGA bios project |
5 | 5 | (http://www.nongnu.org/vgabios/). |
6 | + | |
7 | +- The Cirrus VGA BIOS comes from the LGPL VGA bios project with | |
8 | + patches from http://ebisa.hp.infoseek.co.jp/bochs/index.shtml. | |
9 | + | |
6 | 10 | \ No newline at end of file | ... | ... |
pc-bios/vgabios-cirrus.bin
0 → 100644
No preview for this file type