s390/head: adjust iplstart entry point
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 24 Apr 2022 13:44:05 +0000 (15:44 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 6 May 2022 18:45:14 +0000 (20:45 +0200)
Move iplstart entry point to 0x200 again, instead of the middle of the ipl
code. This way even the comment describing the ccw program is correct
again.

Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/head.S

index 6666924..206fca8 100644 (file)
 #define EP_OFFSET      0x10008
 #define EP_STRING      "S390EP"
 
+#define IPL_START      0x200
+
 __HEAD
 
 #define IPL_BS 0x730
        .org    0
-       .long   0x00080000,0x80000000+iplstart  # The first 24 bytes are loaded
+       .long   0x00080000,0x80000000+IPL_START # The first 24 bytes are loaded
        .long   0x02000018,0x60000050           # by ipl to addresses 0-23.
        .long   0x02000068,0x60000050           # (a PSW and two CCWs).
        .fill   80-24,1,0x40                    # bytes 24-79 are discarded !!
@@ -63,7 +65,7 @@ __HEAD
        .long   0x020006e0,0x20000050
 
        .org    __LC_RST_NEW_PSW                # 0x1a0
-       .quad   0,iplstart
+       .quad   0,IPL_START
        .org    __LC_EXT_NEW_PSW                # 0x1b0
        .quad   0x0002000180000000,0x1b0        # disabled wait
        .org    __LC_PGM_NEW_PSW                # 0x1d0
@@ -71,8 +73,9 @@ __HEAD
        .org    __LC_IO_NEW_PSW                 # 0x1f0
        .quad   0x0002000180000000,0x1f0        # disabled wait
 
-       .org    0x200
-
+       .org    IPL_START
+ipl_start:
+       j       .Liplcont
 #
 # subroutine to wait for end I/O
 #
@@ -158,7 +161,7 @@ __HEAD
        .endr
        .long   0x02200050,0x00000000
 
-iplstart:
+.Liplcont:
        mvi     __LC_AR_MODE_ID,1       # set esame flag
        slr     %r0,%r0                 # set cpuid to zero
        lhi     %r1,2                   # mode 2 = esame (dump)