diff options
author | grehan <grehan@FreeBSD.org> | 2013-09-19 04:20:18 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2013-09-19 04:20:18 +0000 |
commit | 6f44e4d05bfebf51480d9cadbad13bbce97a539b (patch) | |
tree | 3c3c24d8f81b1b41cada5f124e7d717bc9c438b9 /usr.sbin/bhyve | |
parent | 0804d47dcd22f1cab4a3021cc52352f3c65960bb (diff) | |
download | FreeBSD-src-6f44e4d05bfebf51480d9cadbad13bbce97a539b.zip FreeBSD-src-6f44e4d05bfebf51480d9cadbad13bbce97a539b.tar.gz |
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)
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/rtc.c b/usr.sbin/bhyve/rtc.c index a0e2c6a..05542e7 100644 --- a/usr.sbin/bhyve/rtc.c +++ b/usr.sbin/bhyve/rtc.c @@ -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; } } |