aboutsummaryrefslogtreecommitdiff
path: root/board-qemu
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2015-02-26 13:32:41 +0100
committerAlexey Kardashevskiy <aik@ozlabs.ru>2015-03-12 18:25:35 +1100
commita3d4e896e57ac16ec1e5350eecb96715cdfb0559 (patch)
tree6e5eeb22bc3d59c1c6a67db1316702ee1b8f2daa /board-qemu
parent088baa0de49f9b97000609d3066b292b426cbb3c (diff)
downloadSLOF-a3d4e896e57ac16ec1e5350eecb96715cdfb0559.zip
SLOF-a3d4e896e57ac16ec1e5350eecb96715cdfb0559.tar.gz
SLOF-a3d4e896e57ac16ec1e5350eecb96715cdfb0559.tar.bz2
Set default palette according to "16-color Text Extension" document
The "Open Firmware Recommended Practice: 16-color Text Extension" document specifies how the first 16 colors of a palette should be set. So let's use these colors in SLOF, too. Also move the function for initializing the palette into the common graphics.fs file so that we do not have to do this change twice. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Diffstat (limited to 'board-qemu')
-rw-r--r--board-qemu/slof/pci-device_1013_00b8.fs9
-rw-r--r--board-qemu/slof/pci-device_1234_1111.fs9
2 files changed, 2 insertions, 16 deletions
diff --git a/board-qemu/slof/pci-device_1013_00b8.fs b/board-qemu/slof/pci-device_1013_00b8.fs
index ec7ef3f..c3ac2ec 100644
--- a/board-qemu/slof/pci-device_1013_00b8.fs
+++ b/board-qemu/slof/pci-device_1013_00b8.fs
@@ -117,13 +117,6 @@ false VALUE is-installed?
3drop
;
-: default-palette
- \ Grayscale ramp for now, be smarter later
- 100 0 DO
- i i i i color!
- LOOP
-;
-
include graphics.fs
: init-mode
@@ -265,7 +258,7 @@ add-legacy-reg
read-settings
init-mode
clear-screen
-default-palette
+init-default-palette
setup-properties
' display-install is-install
' display-remove is-remove
diff --git a/board-qemu/slof/pci-device_1234_1111.fs b/board-qemu/slof/pci-device_1234_1111.fs
index 0a39386..a5c3584 100644
--- a/board-qemu/slof/pci-device_1234_1111.fs
+++ b/board-qemu/slof/pci-device_1234_1111.fs
@@ -85,13 +85,6 @@ false VALUE is-installed?
3drop
;
-: default-palette
- \ Grayscale ramp for now, be smarter later
- 100 0 DO
- i i i i color!
- LOOP
-;
-
include graphics.fs
\ qemu fake VBE IO registers
@@ -242,7 +235,7 @@ pci-io-enable
add-legacy-reg
read-settings
init-mode
-default-palette
+init-default-palette
setup-properties
' display-install is-install
' display-remove is-remove