> Date: Fri, 11 Aug 2017 17:11:11 -0400
> From: joshua stein <j...@openbsd.org>
> 
> Removes this useless error that appears on some modern machines:
> 
> RTC BIOS diagnostic error 
> ff<clock_battery,ROM_cksum,config_unit,memory_size,fixed_disk,invalid_time>

Those bits have lost their meaning a while ago...

ok kettenis@

> Index: sys/arch/amd64/isa/clock.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/isa/clock.c,v
> retrieving revision 1.24
> diff -u -p -u -p -r1.24 clock.c
> --- sys/arch/amd64/isa/clock.c        25 Jan 2017 08:23:50 -0000      1.24
> +++ sys/arch/amd64/isa/clock.c        11 Aug 2017 21:08:43 -0000
> @@ -157,16 +157,10 @@ u_long rtclock_tval;
>  void
>  startclocks(void)
>  {
> -     int s;
> -
>       mtx_enter(&timer_mutex);
>       rtclock_tval = TIMER_DIV(hz);
>       i8254_startclock();
>       mtx_leave(&timer_mutex);
> -
> -     /* Check diagnostic status */
> -     if ((s = mc146818_read(NULL, NVRAM_DIAG)) != 0) /* XXX softc */
> -             printf("RTC BIOS diagnostic error %b\n", s, NVRAM_DIAG_BITS);
>  }
>  
>  int
> 
> 

Reply via email to