svn commit: r323426 - stable/11/usr.sbin/bhyve
Ryan Libby
rlibby at FreeBSD.org
Mon Sep 11 07:22:54 UTC 2017
Author: rlibby
Date: Mon Sep 11 07:22:53 2017
New Revision: 323426
URL: https://svnweb.freebsd.org/changeset/base/323426
Log:
MFC r321669:
bhyve/vga.c: fix atc_color_select_67 bit shift
Modified:
stable/11/usr.sbin/bhyve/vga.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bhyve/vga.c
==============================================================================
--- stable/11/usr.sbin/bhyve/vga.c Mon Sep 11 07:21:34 2017 (r323425)
+++ stable/11/usr.sbin/bhyve/vga.c Mon Sep 11 07:22:53 2017 (r323426)
@@ -1069,7 +1069,7 @@ vga_port_out_handler(struct vmctx *ctx, int in, int po
sc->vga_atc.atc_color_select_45 =
(val & ATC_CS_C45) << 4;
sc->vga_atc.atc_color_select_67 =
- (val & ATC_CS_C67) << 6;
+ ((val & ATC_CS_C67) >> 2) << 6;
break;
default:
//printf("XXX VGA ATC: outb 0x%04x, 0x%02x at index %d\n", port, val, sc->vga_atc.atc_index);
More information about the svn-src-stable
mailing list