diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-07-12 16:47:55 +0530 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-08-15 17:54:02 +1000 |
commit | 4a669d0f49c43880aefd752a8b223eb0c3829864 (patch) | |
tree | 91c4c89a68dcaca08edfea7aa494ff3ecfb01916 /core | |
parent | aa694ea08c0d6350455400e69d266f1dada062c1 (diff) | |
download | skiboot-4a669d0f49c43880aefd752a8b223eb0c3829864.zip skiboot-4a669d0f49c43880aefd752a8b223eb0c3829864.tar.gz skiboot-4a669d0f49c43880aefd752a8b223eb0c3829864.tar.bz2 |
platform: Introduce new reboot type
Enhance reboot2 call to support MPIPL. Payload will call this interface
to initiate MPIPL.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
[oliver: rebased]
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/platform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/platform.c b/core/platform.c index 7220c6c..307fe67 100644 --- a/core/platform.c +++ b/core/platform.c @@ -9,6 +9,7 @@ * Copyright 2013-2019 IBM Corp. */ +#include <stdlib.h> #include <skiboot.h> #include <opal.h> #include <console.h> @@ -104,6 +105,11 @@ static int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag) case OPAL_REBOOT_FULL_IPL: disable_fast_reboot("full IPL reboot requested"); return opal_cec_reboot(); + case OPAL_REBOOT_MPIPL: + prlog(PR_NOTICE, "Reboot: OS reported error. Performing MPIPL\n"); + console_complete_flush(); + _abort("Reboot: OS reported error. Performing MPIPL\n"); + break; default: prlog(PR_NOTICE, "OPAL: Unsupported reboot request %d\n", reboot_type); return OPAL_UNSUPPORTED; |