pc-bios: s390x: Go into disabled wait when encountering a PGM exception
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 6 Oct 2020 09:42:49 +0000 (05:42 -0400)
committerThomas Huth <thuth@redhat.com>
Tue, 6 Oct 2020 18:14:48 +0000 (20:14 +0200)
Let's setup a PGM PSW, so we won't load 0s when a program exception
happens. Instead we'll load a disabled wait PSW.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201006094249.50640-5-frankja@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/start.S

index ce519300a1f327eae3bea2f881b176c0b7678d78..4d5ad21653d0992d4e65847258167d7aa419d46d 100644 (file)
@@ -34,7 +34,10 @@ remainder:
        larl    %r2,memsetxc
        ex      %r3,0(%r2)
 done:
-       j      main             /* And call C */
+        /* set up a pgm exception disabled wait psw */
+        larl   %r2, disabled_wait_psw
+        mvc    0x01d0(16), 0(%r2)
+        j      main            /* And call C */
 
 memsetxc:
        xc      0(1,%r1),0(%r1)