freebsd-dev/sys/dev/efidev
Andrew Turner ed4c884f2e Check if the gettime runtime service is valid.
The U-Boot efi runtime service expects us to set the address map before
calling any runtime services. It will then remap a few functions to their
runtime version. One of these is the gettime function. If we call into
this without having set a runtime map we get a page fault.

Add a check to see if this is valid in efi_init() so we don't try to use
the possibly invalid pointer.

Reviewed by:	imp, kevans (both previous version)
X-MFC-With:	r330868
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D14759
2018-03-20 13:35:20 +00:00
..
efidev.c Turns out to be even simpler to just not create /dev/efi if we don't 2017-08-08 21:01:11 +00:00
efirt.c Check if the gettime runtime service is valid. 2018-03-20 13:35:20 +00:00
efirtc.c Use EFI RTC capabilities info when registering, add bootverbose diagnostics. 2018-03-16 18:16:27 +00:00