aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-30 22:27:16 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-30 22:27:16 -0700
commit5cf4f7fa13ffdd72cf79bdddf258677d3167bdd1 (patch)
treedc9b216183d0e65ca93f76c923b2759573e1eec7
parentc537e06012c19dca57a14bda713a4a467a0c41e8 (diff)
downloadlwip-5cf4f7fa13ffdd72cf79bdddf258677d3167bdd1.tar.gz
lwip-5cf4f7fa13ffdd72cf79bdddf258677d3167bdd1.tar.xz
lwip-5cf4f7fa13ffdd72cf79bdddf258677d3167bdd1.zip
graphics: actually do 32-bit writes to VGA
Use "rep movsd" to copy data to VGA memory, not "rep movsb". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/graphics.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/graphics.inc b/core/graphics.inc
index 884776ea..26925e9a 100644
--- a/core/graphics.inc
+++ b/core/graphics.inc
@@ -206,8 +206,8 @@ outputvga:
.loop1:
out dx,al ; Select the bit plane to write
push di
- mov cx,640/8
- rep movsb
+ mov cx,640/32
+ rep movsd
pop di
add ax,ax
cmp al,8