efi_loader: Allow boards to implement get_time and reset_system
authorAlexander Graf <agraf@suse.de>
Tue, 16 Aug 2016 19:08:45 +0000 (21:08 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 18 Oct 2016 07:08:08 +0000 (09:08 +0200)
commit80a4800ee1526a4a46cd02b3ea2fd37eebb77504
tree556c834bd70cb2a1c35d96e31bfa0be9eb8a8350
parent511d0b97ef709d13da4922fb694d55ef9a5ef641
efi_loader: Allow boards to implement get_time and reset_system

EFI allows an OS to leverage firmware drivers while the OS is running. In the
generic code we so far had to stub those implementations out, because we would
need board specific knowledge about MMIO setups for it.

However, boards can easily implement those themselves. This patch provides the
framework so that a board can implement its own versions of get_time and
reset_system which would actually do something useful.

While at it we also introduce a simple way for code to reserve MMIO pointers
as runtime available.

Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c
include/efi_loader.h
lib/efi_loader/efi_runtime.c