[openfirmware] [commit] r3714 - cpu/ppc
repository service
svn at openfirmware.info
Fri Mar 14 22:24:32 CET 2014
Author: wmb
Date: Fri Mar 14 22:24:32 2014
New Revision: 3714
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3714
Log:
Fixed bugs in PowerPC 16- and 32-bit framebuffer operations.
Modified:
cpu/ppc/fb8-ops.fth
Modified: cpu/ppc/fb8-ops.fth
==============================================================================
--- cpu/ppc/fb8-ops.fth Wed Feb 26 04:40:33 2014 (r3713)
+++ cpu/ppc/fb8-ops.fth Fri Mar 14 22:24:32 2014 (r3714)
@@ -55,6 +55,7 @@
mfspr t6,ctr \ Save counter
subf t0,t1,t0 \ Account for inner loop incrementing
+ subf t0,t1,t0 \ (2 bytes per pixel)
addi t3,t3,-2 \ Account for inner loop incrementing
begin \ Outer loop
@@ -94,6 +95,9 @@
mfspr t6,ctr \ Save counter
subf t0,t1,t0 \ Account for inner loop incrementing
+ subf t0,t1,t0 \ (4 bytes per pixel)
+ subf t0,t1,t0 \ (4 bytes per pixel)
+ subf t0,t1,t0 \ (4 bytes per pixel)
addi t3,t3,-4 \ Account for inner loop incrementing
begin \ Outer loop
@@ -200,6 +204,7 @@
addi t3,t3,-2 \ Account for pre-incrementing
subf t2,t5,t2 \ Account for inner loop incrementing
+ subf t2,t5,t2 \ (2 bytes per pixel)
mfspr t8,ctr \ Save counter
addi r0,r0,8 \ Constant 8 (pixels/font-byte), needed below
@@ -263,6 +268,9 @@
addi t3,t3,-4 \ Account for pre-incrementing
subf t2,t5,t2 \ Account for inner loop incrementing
+ subf t2,t5,t2 \ (4 bytes per pixel)
+ subf t2,t5,t2 \ (4 bytes per pixel)
+ subf t2,t5,t2 \ (4 bytes per pixel)
mfspr t8,ctr \ Save counter
addi r0,r0,8 \ Constant 8 (pixels/font-byte), needed below
More information about the openfirmware
mailing list