]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: /sys/firmware/efi missing during EFI boot
authorEric Snowberg <eric.snowberg@oracle.com>
Wed, 10 May 2017 14:50:11 +0000 (07:50 -0700)
committerShannon Nelson <shannon.nelson@oracle.com>
Wed, 31 May 2017 23:43:49 +0000 (16:43 -0700)
commit127ca6582a90567ded4fa6168c1582d2d5ac37f0
tree697200d684df624ae67b1cc4b87f9b281ebc8621
parentf55a3ae7724f3e40edeba837e877b9ba6bca888e
sparc64: /sys/firmware/efi missing during EFI boot

The newest version of OBP is capable of doing an EFI boot.  When Linux
is booted thru this EFI loader, the /sys/firmware/efi directory does
not exist.  Many userspace applications, such as GRUB, check whether
the dir /sys/firmware/efi exists, if it exists it means
the kernel has booted in EFI mode.

A new Open Firmware property called efi-booter has been added
to /chosen. This new property is only present when doing an
EFI boot.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by Thomas Tai <thomas.tai@oracle.com>

Orabug: 26037358
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/Kconfig
arch/sparc/kernel/setup_64.c
drivers/firmware/efi/efi.c