Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2013 04:20:19 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r255688 - head/usr.sbin/bhyve
Message-ID:  <201309190420.r8J4KJOO088547@svn.freebsd.org>

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



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