mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
bhyve/vga.c: fix atc_color_select_67 bit shift
Gcc noticed that the result of the bit shift is always zero. Shift so that the ATC_CS_C67 bits end up in bits 6 & 7. Reviewed by: grehan, tychon Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D11775
This commit is contained in:
parent
558e4950b3
commit
07451638fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321669
@ -1069,7 +1069,7 @@ vga_port_out_handler(struct vmctx *ctx, int in, int port, int bytes,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user