[kvm-unit-tests PATCH v2 1/4] s390x: Support PSW restart boot

Janosch Frank
2019-08-21T10:48:41Z

Add a boot PSW to PSW restart new, so we can also boot via a PSW
restart.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
s390x/flat.lds | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/s390x/flat.lds b/s390x/flat.lds
index 403d967..86dffac 100644
--- a/s390x/flat.lds
+++ b/s390x/flat.lds
@@ -1,14 +1,18 @@
SECTIONS
{
- /*
- * Initial short psw for disk boot, with 31 bit addressing for
- * non z/Arch environment compatibility and the instruction
- * address 0x10000 (cstart64.S .init).
- */
.lowcore : {
+ /*
+ * Initial short psw for disk boot, with 31 bit addressing for
+ * non z/Arch environment compatibility and the instruction
+ * address 0x10000 (cstart64.S .init).
+ */
. = 0;
LONG(0x00080000)
LONG(0x80010000)
+ /* Restart new PSW for booting via PSW restart. */
+ . = 0x1a0;
+ QUAD(0x0000000180000000)
+ QUAD(0x0000000000010000)
}
. = 0x10000;
.text : {
--
2.17.0