svn commit: r328603 - head/stand/common

Sean Bruno sbruno at FreeBSD.org
Tue Jan 30 20:00:13 UTC 2018


Author: sbruno
Date: Tue Jan 30 20:00:12 2018
New Revision: 328603
URL: https://svnweb.freebsd.org/changeset/base/328603

Log:
  Add missing non-POWERPC case to give the scr value something non-zero.
  
  This fixes the instant reboot of netbooting after r328536 on x86 systems.
  
  Reviewed by:	peter
  Sponsored by:	Limelight Networks

Modified:
  head/stand/common/load_elf.c

Modified: head/stand/common/load_elf.c
==============================================================================
--- head/stand/common/load_elf.c	Tue Jan 30 19:34:58 2018	(r328602)
+++ head/stand/common/load_elf.c	Tue Jan 30 20:00:12 2018	(r328603)
@@ -716,6 +716,8 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_
   #else
 	scr = htobe32(size);
   #endif
+#else
+	scr = size;
 #endif
 	archsw.arch_copyin(&scr, lastaddr, sizeof(scr));
 	lastaddr += sizeof(scr);


More information about the svn-src-all mailing list