diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-05-29 14:56:47 +1000 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-05-29 14:57:52 +1000 |
commit | 99c534ecc7a8566bd9ca6346915d9ac1bfacae1e (patch) | |
tree | d1d3c063ddbe51c867167cba466bd27a360fd1c8 /board-js2x | |
parent | 4c7a70f0619534f5870d4043f1751259046db02f (diff) | |
download | SLOF-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-js2x')
-rw-r--r-- | board-js2x/slof/helper.fs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board-js2x/slof/helper.fs b/board-js2x/slof/helper.fs index 918fdc4..6030330 100644 --- a/board-js2x/slof/helper.fs +++ b/board-js2x/slof/helper.fs @@ -30,3 +30,7 @@ : invert-region ( addr len -- ) 0 ?DO dup dup rb@ -1 xor swap rb! 1+ LOOP drop ; + +: invert-region-x ( addr len -- ) + /x / 0 ?DO dup dup rx@ -1 xor swap rx! xa1+ LOOP drop +; |