summaryrefslogtreecommitdiffstats
path: root/pc-bios/s390-ccw/main.c
diff options
context:
space:
mode:
authorJanosch Frank2020-06-24 09:52:22 +0200
committerThomas Huth2020-07-02 10:00:42 +0200
commitadd923b72e76080ca5339a27d58ed13566156935 (patch)
tree6b19362e244761474916a0b8b4dd27b3e7f8fcad /pc-bios/s390-ccw/main.c
parentpc-bios: s390x: Use PSW masks where possible and introduce PSW_MASK_SHORT_ADDR (diff)
downloadqemu-add923b72e76080ca5339a27d58ed13566156935.tar.gz
qemu-add923b72e76080ca5339a27d58ed13566156935.tar.xz
qemu-add923b72e76080ca5339a27d58ed13566156935.zip
pc-bios: s390x: Move panic() into header and add infinite loop
panic() was defined for the ccw and net bios, i.e. twice, so it's cleaner to rather put it into the header. Also let's add an infinite loop into the assembly of disabled_wait() so the caller doesn't need to take care of it. Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200624075226.92728-9-frankja@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'pc-bios/s390-ccw/main.c')
-rw-r--r--pc-bios/s390-ccw/main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index 8b912454c9..146a50760b 100644
--- a/pc-bios/s390-ccw/main.c
+++ b/pc-bios/s390-ccw/main.c
@@ -46,13 +46,6 @@ void write_iplb_location(void)
lowcore->ptr_iplb = ptr2u32(&iplb);
}
-void panic(const char *string)
-{
- sclp_print(string);
- disabled_wait();
- while (1) { }
-}
-
unsigned int get_loadparm_index(void)
{
return atoui(loadparm_str);