OSDN Git Service

ppc / sparc: Add a tester for checking whether OpenBIOS runs successfully
authorThomas Huth <thuth@redhat.com>
Tue, 14 Jun 2016 13:57:56 +0000 (15:57 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Jun 2016 05:57:59 +0000 (15:57 +1000)
commitfcbf4a3c0c576eec1321f9cff4fa0dd8e0b1a82f
tree62b8cb2b380c5d5a9be290dacdf6bcffee42c781
parenta1aa1309892581972b5019ef65fd0a12cd69cc28
ppc / sparc: Add a tester for checking whether OpenBIOS runs successfully

Since the mac99 and g3beige PowerPC machines recently broke without
being noticed, it would be good to have a tester for "make check"
that detects such issues immediately. A simple way to test the firmware
of these machines is to use the "-prom-env" parameter of QEMU. This
parameter can be used to put some Forth code into the 'boot-command'
firmware variable which then can signal success to the tester by
writing a magic value to a known memory location. And since some of the
Sparc machines are also using OpenBIOS, they are now tested with this
prom-env-tester, too.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
[dwg: Removed sparc64, because it trips a TCG bug on 32-bit hosts]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tests/Makefile.include
tests/prom-env-test.c [new file with mode: 0644]