[SeaBIOS] Re: [PATCH 3/3] qemu: check rtc presence before reading cpu count from cmos

2020-05-15 Thread Gerd Hoffmann
On Thu, May 14, 2020 at 10:11:28PM -0400, Kevin O'Connor wrote: > On Fri, May 08, 2020 at 01:37:17PM +0200, Gerd Hoffmann wrote: > > Read month register which should never have a value larger than 12. > > In case the read returns 0xff assume the rtc isn't there. > > Don't try to read the cpu count

[SeaBIOS] Re: [PATCH 3/3] qemu: check rtc presence before reading cpu count from cmos

2020-05-14 Thread Kevin O'Connor
On Fri, May 08, 2020 at 01:37:17PM +0200, Gerd Hoffmann wrote: > Read month register which should never have a value larger than 12. > In case the read returns 0xff assume the rtc isn't there. > Don't try to read the cpu count from cmos without rtc. > > Signed-off-by: Gerd Hoffmann FYI, the

[SeaBIOS] Re: [PATCH 3/3] qemu: check rtc presence before reading cpu count from cmos

2020-05-08 Thread Philippe Mathieu-Daudé
On 5/8/20 1:37 PM, Gerd Hoffmann wrote: Read month register which should never have a value larger than 12. In case the read returns 0xff assume the rtc isn't there. Don't try to read the cpu count from cmos without rtc. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé ---