svn commit: r191780 - head/sys/i386/bios

Alexander Motin mav at FreeBSD.org
Mon May 4 08:36:48 UTC 2009


Author: mav
Date: Mon May  4 08:36:47 2009
New Revision: 191780
URL: http://svn.freebsd.org/changeset/base/191780

Log:
  There is no atrtc driver in pc98, so hide atrtcclock_disable variable usage
  in APM driver for this platform. This should fix pc98 build.

Modified:
  head/sys/i386/bios/apm.c

Modified: head/sys/i386/bios/apm.c
==============================================================================
--- head/sys/i386/bios/apm.c	Mon May  4 08:06:52 2009	(r191779)
+++ head/sys/i386/bios/apm.c	Mon May  4 08:36:47 2009	(r191780)
@@ -1155,8 +1155,10 @@ apm_attach(device_t dev)
 	mtx_init(&sc->mtx, device_get_nameunit(dev), "apm", MTX_DEF);
 	cv_init(&sc->cv, "cbb cv");
 
+#ifdef PC98
 	if (device_get_flags(dev) & 0x20)
 		atrtcclock_disable = 1;
+#endif
 
 	sc->initialized = 0;
 


More information about the svn-src-all mailing list