mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Use STAGE2_ENTRY and PSW_LOAD instead of hard-coded values. While at it, also move the libc.h to the top in tape2dump.c. Reviewed-by: Philipp Rudo <prudo@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
27 lines
849 B
ArmAsm
27 lines
849 B
ArmAsm
#
|
|
# IPL stage 0 loader for ECKD Linux Disk Layout (LDL)
|
|
#
|
|
# Copyright IBM Corp. 2001, 2017
|
|
#
|
|
# s390-tools is free software; you can redistribute it and/or modify
|
|
# it under the terms of the MIT license. See LICENSE for details.
|
|
#
|
|
# Startup for IPL at address 0
|
|
# Second stage boot loader is loaded to 0x2000 and starts at 0x2018
|
|
#
|
|
# The first 24 bytes are loaded by IPL to addresses 0-23 (PSW and two CCWs).
|
|
# The 1st CCW rewinds to record zero (read record zero)
|
|
# The 2nd CCW reads stage 1 IPL record (re-read record 1) and continues with
|
|
# command chaining at address 0x18
|
|
#
|
|
|
|
#include "boot/loaders_layout.h"
|
|
#include "boot/s390.h"
|
|
|
|
.org 0x0
|
|
.globl _start
|
|
_start:
|
|
.quad PSW_LOAD+STAGE2_ENTRY # PSW :the first 24 byte are loaded by IPL
|
|
.long 0x16002000,0x60000016 # Read record zero
|
|
.long 0x06000000,0x60000080 # Read IPL record 1 again
|