Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2019 15:23:05 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355558 - head/sys/arm64/arm64
Message-ID:  <201912091523.xB9FN5n9084036@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Mon Dec  9 15:23:05 2019
New Revision: 355558
URL: https://svnweb.freebsd.org/changeset/base/355558

Log:
  arm64: Use the kenv provided by loader
  
  Otherwise we have an empty kenv a likely cannot boot.
  
  Submitted by:	kevans
  MFC after:	1 month
  X-MFC-With:	355487

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

Modified: head/sys/arm64/arm64/machdep_boot.c
==============================================================================
--- head/sys/arm64/arm64/machdep_boot.c	Mon Dec  9 13:59:36 2019	(r355557)
+++ head/sys/arm64/arm64/machdep_boot.c	Mon Dec  9 15:23:05 2019	(r355558)
@@ -223,7 +223,7 @@ freebsd_parse_boot_param(struct arm64_bootparams *abp)
 
 	boothowto = MD_FETCH(kmdp, MODINFOMD_HOWTO, int);
 	loader_envp = MD_FETCH(kmdp, MODINFOMD_ENVP, char *);
-	init_static_kenv(static_kenv, 0);
+	init_static_kenv(loader_envp, 0);
 	lastaddr = MD_FETCH(kmdp, MODINFOMD_KERNEND, vm_offset_t);
 #ifdef DDB
 	ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, uintptr_t);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912091523.xB9FN5n9084036>