[SeaBIOS] [PATCH 6/6] [workaround] cbvga_set_mode: disable clearmem

Gerd Hoffmann kraxel at redhat.com
Thu May 31 08:33:53 CEST 2018


Break windows, memcpy_high call is problematic.
Possibly the windows x86 emulator doesn't support int 1587.

Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 vgasrc/cbvga.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c
index 13a666b22b..6933fc72aa 100644
--- a/vgasrc/cbvga.c
+++ b/vgasrc/cbvga.c
@@ -196,6 +196,7 @@ cbvga_set_mode(struct vgamode_s *vmode_g, int flags)
 {
     u8 emul = vmode_g == &CBemulinfo || GET_GLOBAL(CBmode) == 0x03;
     MASK_BDA_EXT(flags, BF_EMULATE_TEXT, emul ? BF_EMULATE_TEXT : 0);
+#if 0
     if (!(flags & MF_NOCLEARMEM)) {
         if (GET_GLOBAL(CBmodeinfo.memmodel) == MM_TEXT) {
             memset16_far(SEG_CTEXT, (void*)0, 0x0720, 80*25*2);
@@ -209,6 +210,7 @@ cbvga_set_mode(struct vgamode_s *vmode_g, int flags)
         op.op = GO_MEMSET;
         handle_gfx_op(&op);
     }
+#endif
     return 0;
 }
 
-- 
2.9.3




More information about the SeaBIOS mailing list