Implement support for calling EFI runtime services and use it to implement
authorkettenis <kettenis@openbsd.org>
Thu, 4 Jan 2018 14:30:08 +0000 (14:30 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 4 Jan 2018 14:30:08 +0000 (14:30 +0000)
commitf937ff168d942b8624049afa6d22a978430e5d9a
tree3068add67799006b8a4f4246718a96c67a07826c
parentc03203f3b19cfe212447659f9f34eab712041975
Implement support for calling EFI runtime services and use it to implement
a time-of-day clock device based on the GetTime() and SetTime() services.
The virtual memory mappings for the runtime services calls are implemented
through a separate pmap that is only activated when we make a runtime services
call.

ok tom@, visa@
tested by naddy@
sys/arch/arm64/arm64/machdep.c
sys/arch/arm64/arm64/pmap.c
sys/arch/arm64/conf/GENERIC
sys/arch/arm64/conf/RAMDISK
sys/arch/arm64/conf/files.arm64
sys/arch/arm64/dev/efi.c [new file with mode: 0644]
sys/arch/arm64/dev/mainbus.c
sys/arch/arm64/include/pmap.h
sys/dev/acpi/efi.h