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
..
2018-03-17 17:18:29 +00:00
2018-03-18 03:42:57 +00:00
2018-03-17 12:59:55 +00:00
2018-02-14 00:12:03 +00:00
2018-03-11 19:14:01 +00:00
2018-02-08 20:09:42 +00:00
2018-03-17 12:59:55 +00:00
2018-03-19 17:14:56 +00:00