pc-bios: s390x: Clear out leftover S390EP string
commit3d6519968bb10260fc724c491fb4275f7c0b78ac
authorEric Farman <farman@linux.ibm.com>
Fri, 20 Nov 2020 16:01:17 +0000 (20 17:01 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 23 Nov 2020 08:48:45 +0000 (23 09:48 +0100)
treec767bea95bd19206d5eda847d298cef0d5277b34
parentd8e5bbdd0d6fa8d9b5ac15de62c87105d92ff558
pc-bios: s390x: Clear out leftover S390EP string

A Linux binary will have the string "S390EP" at address 0x10008,
which is important in getting the guest up off the ground. In the
case of a reboot (specifically chreipl going to a new device),
we should defer to the PSW at address zero for the new config,
which will re-write "S390EP" from the new image.

Let's clear it out at this point so that a reipl to, say, a DASD
passthrough device drives the IPL path from scratch without disrupting
disrupting the order of operations for other boots.

Rather than hardcoding the address of this magic (again), let's
define it somewhere so that the two users are visibly related.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20201120160117.59366-3-farman@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/jump2ipl.c
pc-bios/s390-ccw/main.c
pc-bios/s390-ccw/s390-arch.h