1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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)
This commit is contained in:
Peter Grehan 2013-09-19 04:20:18 +00:00
parent 4a67483f2e
commit c20d3f633a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255688

View File

@ -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;
}
}