Message ID | 20190820105550.4991-2-frankja@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | s390x: More emulation tests | expand |
On 8/20/19 12:55 PM, Janosch Frank wrote: > 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> > --- > 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 : { > Reviewed-by: Thomas Huth <thuth@redhat.com>
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 : {
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> --- s390x/flat.lds | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)