mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
To ensure that only verified code is executed the stage 3 loader has to check if the load psw points to an address that has previously been verified by the machine loader. If secure boot is enabled the IPL process will only continue if the verification was successful. Signed-off-by: Stefan Haberland <sth@linux.ibm.com> Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
75 lines
2.2 KiB
C
75 lines
2.2 KiB
C
/*
|
|
* zipl boot loader error codes
|
|
*
|
|
* Copyright IBM Corp. 2012, 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.
|
|
*/
|
|
|
|
#ifndef ERROR_H
|
|
#define ERROR_H
|
|
|
|
/************************************************************************
|
|
* zipl boot loader error codes (use decimal range 4500-4549)
|
|
*
|
|
* The error numbers are ABI. Do not change them!
|
|
************************************************************************/
|
|
|
|
/* I/O error: Enabling the IPL device failed */
|
|
#define EENABLE_DEV 0x00004500
|
|
|
|
/* I/O error: Disabling the IPL device failed */
|
|
#define EDISABLE_DEV 0x00004501
|
|
|
|
/* I/O error: The start subchannel command failed */
|
|
#define ESSCH 0x00004502
|
|
|
|
/* Internal error: The IPL type is incorrect */
|
|
#define EWRONGTYPE 0x00004510
|
|
|
|
/* Internal error */
|
|
#define EINTERNAL 0x00004511
|
|
|
|
/* Secure IPL error */
|
|
#define ESECUREBOOT 0x00004512
|
|
|
|
/* kdump: No operating system information was found */
|
|
#define EOS_INFO_MISSING 0x00004520
|
|
|
|
/* kdump: The checksum of the operating system information is incorrect */
|
|
#define EOS_INFO_CSUM_FAILED 0x00004521
|
|
|
|
/* kdump: The major version of the operating system information is too high */
|
|
#define EOS_INFO_VERSION 0x00004522
|
|
|
|
/* kdump: No crashkernel memory was defined */
|
|
#define EOS_INFO_NOCRASHKERNEL 0x00004523
|
|
|
|
/* kdump: HSA copy failed */
|
|
#define EHSA_COPY_FAILED 0x00004524
|
|
|
|
/************************************************************************
|
|
* The following codes are not ABI
|
|
************************************************************************/
|
|
|
|
#define ETIMEOUT 2
|
|
|
|
/*
|
|
* Stand-alone dump
|
|
*/
|
|
#define OK 0x00000000 /* Dump completed successfully */
|
|
#define EMEM 0x00004600 /* Device too small for dump */
|
|
#define EDEVNOTSUP 0x00004601 /* Device not supported */
|
|
#define EMEMCOUNT 0x00004602 /* Could not evaluate memory layout */
|
|
|
|
/*
|
|
* Multi-volume dump
|
|
*/
|
|
#define ENODEVNO 0x00004603 /* The devno does not exist */
|
|
#define ENOSIGN 0x00004604 /* No valid dump signature on device */
|
|
#define ENOTIME 0x00004605 /* The zipl time stamps do not match */
|
|
#define ENOMSS 0x00004606 /* Could not enable MSS */
|
|
|
|
#endif /* ERROR_H */
|