efi_loader: add missing EFI_RESET_PLATFORM_SPECIFIC
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 6 Feb 2018 21:00:22 +0000 (22:00 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:00:07 +0000 (11:00 +0200)
EFI_RESET_PLATFORM_SPECIFIC is one of the values that can be used for the
EFI service ResetSystem. The missing definition is added. The value has to
handled in efi_reset_system().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fwcall.c
arch/arm/mach-bcm283x/reset.c
include/efi_api.h
lib/efi_loader/efi_runtime.c

index 0e90302..45cbd91 100644 (file)
@@ -644,6 +644,7 @@ void __efi_runtime EFIAPI efi_reset_system(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                reset_cpu(0);
                break;
        case EFI_RESET_SHUTDOWN:
index c220267..ff0712b 100644 (file)
@@ -146,6 +146,7 @@ void __efi_runtime EFIAPI efi_reset_system(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                psci_system_reset();
                break;
        case EFI_RESET_SHUTDOWN:
index 5b83fdf..aa02d3f 100644 (file)
@@ -63,6 +63,7 @@ void __efi_runtime EFIAPI efi_reset_system(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                reset_cpu(0);
                break;
        case EFI_RESET_SHUTDOWN:
index 167c44e..28de93a 100644 (file)
@@ -180,7 +180,8 @@ struct efi_boot_services {
 enum efi_reset_type {
        EFI_RESET_COLD = 0,
        EFI_RESET_WARM = 1,
-       EFI_RESET_SHUTDOWN = 2
+       EFI_RESET_SHUTDOWN = 2,
+       EFI_RESET_PLATFORM_SPECIFIC = 3,
 };
 
 /* EFI Runtime Services table */
index 9e28172..0888316 100644 (file)
@@ -91,6 +91,7 @@ static void EFIAPI efi_reset_system_boottime(
        switch (reset_type) {
        case EFI_RESET_COLD:
        case EFI_RESET_WARM:
+       case EFI_RESET_PLATFORM_SPECIFIC:
                do_reset(NULL, 0, 0, NULL);
                break;
        case EFI_RESET_SHUTDOWN: