aboutsummaryrefslogtreecommitdiff
path: root/board-qemu/slof/helper.fs
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2015-05-29 14:56:47 +1000
committerAlexey Kardashevskiy <aik@ozlabs.ru>2015-05-29 14:57:52 +1000
commit99c534ecc7a8566bd9ca6346915d9ac1bfacae1e (patch)
treed1d3c063ddbe51c867167cba466bd27a360fd1c8 /board-qemu/slof/helper.fs
parent4c7a70f0619534f5870d4043f1751259046db02f (diff)
downloadSLOF-99c534ecc7a8566bd9ca6346915d9ac1bfacae1e.zip
SLOF-99c534ecc7a8566bd9ca6346915d9ac1bfacae1e.tar.gz
SLOF-99c534ecc7a8566bd9ca6346915d9ac1bfacae1e.tar.bz2
fbuffer: introduce the invert-region-x helper
This patch simply moves the slow RX based logic from fb8-invert-screen to board-js2x helpers and implement a fast hv-logical-memop based helper for board-qemu. And we can drop hcall-invert-screen ! Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> [aik: removed one empty line] Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-qemu/slof/helper.fs')
-rw-r--r--board-qemu/slof/helper.fs4
1 files changed, 4 insertions, 0 deletions
diff --git a/board-qemu/slof/helper.fs b/board-qemu/slof/helper.fs
index da676c7..c807bc6 100644
--- a/board-qemu/slof/helper.fs
+++ b/board-qemu/slof/helper.fs
@@ -36,3 +36,7 @@
: invert-region ( addr len -- )
over swap 0 swap 1 hv-logical-memop drop
;
+
+: invert-region-x ( addr len -- )
+ over swap /x / 3 swap 1 hv-logical-memop drop
+;