Skip to content

Commit

Permalink
s390/boot: get rid of magic numbers for startup offsets
Browse files Browse the repository at this point in the history
Use STARTUP_NORMAL_OFFSET and STARTUP_KDUMP_OFFSET instead of magic numbers.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
  • Loading branch information
Alexander Egorenkov authored and Heiko Carstens committed Jul 27, 2021
1 parent 36af1c5 commit 8b6bd6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/s390/boot/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ iplstart:
.Lcpuid:.fill 8,1,0

#
# startup-code at 0x10000, running in absolute addressing mode
# normal startup-code, running in absolute addressing mode
# this is called either by the ipl loader or directly by PSW restart
# or linload or SALIPL
#
.org 0x10000
.org STARTUP_NORMAL_OFFSET
SYM_CODE_START(startup)
j startup_normal
.org EP_OFFSET
Expand All @@ -291,9 +291,9 @@ SYM_CODE_START(startup)
.ascii EP_STRING
.byte 0x00,0x01
#
# kdump startup-code at 0x10010, running in 64 bit absolute addressing mode
# kdump startup-code, running in 64 bit absolute addressing mode
#
.org 0x10010
.org STARTUP_KDUMP_OFFSET
j startup_kdump
SYM_CODE_END(startup)
SYM_CODE_START_LOCAL(startup_normal)
Expand Down

0 comments on commit 8b6bd6f

Please sign in to comment.