Author: mmel
Date: Sun Sep 27 09:12:36 2020
New Revision: 366192
URL: https://svnweb.freebsd.org/changeset/base/366192

Log:
  Don't try to print EFI memeory map if it doesn't exist.
  
  MFC after: 1 week

Modified:
  head/sys/arm64/arm64/machdep.c

Modified: head/sys/arm64/arm64/machdep.c
==============================================================================
--- head/sys/arm64/arm64/machdep.c      Sun Sep 27 08:39:38 2020        
(r366191)
+++ head/sys/arm64/arm64/machdep.c      Sun Sep 27 09:12:36 2020        
(r366192)
@@ -1258,7 +1258,8 @@ initarm(struct arm64_bootparams *abp)
                strlcpy(kernelname, env, sizeof(kernelname));
 
        if (boothowto & RB_VERBOSE) {
-               print_efi_map_entries(efihdr);
+               if (efihdr != NULL)
+                       print_efi_map_entries(efihdr);
                physmem_print_tables();
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to