]> xenbits.xen.org Git - xenclient/xen-pq.git/commitdiff
XC-441: Don't check amount of memory in vbe.
authorJean Guyader <jean.guyader@eu.citrix.com>
Tue, 1 Dec 2009 17:54:00 +0000 (17:54 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Tue, 1 Dec 2009 17:54:00 +0000 (17:54 +0000)
master/hack-vbe-dont-check-mem [new file with mode: 0644]
master/series

diff --git a/master/hack-vbe-dont-check-mem b/master/hack-vbe-dont-check-mem
new file mode 100644 (file)
index 0000000..bae14e3
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/tools/firmware/vgabios/vbe.c b/tools/firmware/vgabios/vbe.c
+index a0f3288..26582d0 100644
+--- a/tools/firmware/vgabios/vbe.c
++++ b/tools/firmware/vgabios/vbe.c
+@@ -847,8 +847,9 @@ Bit16u *AX;Bit16u ES;Bit16u DI;
+         do
+         {
+                 if ((cur_info->info.XResolution <= dispi_get_max_xres()) &&
+-                    (cur_info->info.BitsPerPixel <= dispi_get_max_bpp()) &&
+-                    (cur_info->info.XResolution * cur_info->info.XResolution * cur_info->info.BitsPerPixel <= vbe_info_block.TotalMemory << 19 )) {
++                    (cur_info->info.BitsPerPixel <= dispi_get_max_bpp())) {
++                    /* FIXME remove memory check because it's done in 16bits
++                    ** and the resolution is unusable */
+ #ifdef DEBUG
+                   printf("VBE found mode %x => %x\n", cur_info->mode,cur_mode);
+ #endif
index c4d03adbbcf489b7186f880807de7b09f87ccd11..4ced81cdb7d9a72e01a6c2f651d4fc51dbf913cf 100644 (file)
@@ -27,3 +27,4 @@ b-m-arb-sync-with-native-linux
 iommu-replace-panic-with-printk
 hack-vbe-always-on
 filter-igfx-io
+hack-vbe-dont-check-mem