Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2018 20:00:13 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328603 - head/stand/common
Message-ID:  <201801302000.w0UK0Dcc074653@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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