svn commit: r255688 - head/usr.sbin/bhyve

Peter Grehan grehan at FreeBSD.org
Thu Sep 19 04:20:19 UTC 2013


Author: grehan
Date: Thu Sep 19 04:20:18 2013
New Revision: 255688
URL: http://svnweb.freebsd.org/changeset/base/255688

Log:
  Use correct offset for the high byte of high memory written to
  RTC NVRAM.
  
  Submitted by:	Bela Lubkin   bela dot lubkin at tidalscale dot com
  Approved by:	re@ (blanket)

Modified:
  head/usr.sbin/bhyve/rtc.c

Modified: head/usr.sbin/bhyve/rtc.c
==============================================================================
--- head/usr.sbin/bhyve/rtc.c	Thu Sep 19 02:41:00 2013	(r255687)
+++ head/usr.sbin/bhyve/rtc.c	Thu Sep 19 04:20:18 2013	(r255688)
@@ -322,7 +322,7 @@ rtc_init(struct vmctx *ctx)
 		himem /= m_64KB;
 		rtc_nvram[nvoff(RTC_HMEM_LSB)] = himem;
 		rtc_nvram[nvoff(RTC_HMEM_SB)]  = himem >> 8;
-		rtc_nvram[nvoff(RTC_NVRAM_START)] = himem >> 16;
+		rtc_nvram[nvoff(RTC_HMEM_MSB)] = himem >> 16;
 	}
 }
 


More information about the svn-src-all mailing list