From: Georg-W Koltermann <[EMAIL PROTECTED]>
Date: Thu, 07 Feb 2002 11:04:22 +0100
::Hi,
::
::since many weeks I get "/dev/rtc: device not configured" in -current
::when I start VMWare2.  The VMWare2 port works fine otherwise.
::
::Yes, rtc-2001.09.16.1 is installed, and the module is loaded during
::startup.

Hi,

I have a hack^Wpatch that should fix your problem.

Hope this helps,
  Haro
=------------------------------------------------------------------------------
           _ _    Munehiro (haro) Matsuda
 -|- /_\  |_|_|   Business Incubation Dept., Kubota Corp.
 /|\ |_|  |_|_|   1-3 Nihonbashi-Muromachi 3-Chome
                  Chuo-ku Tokyo 103-8310, Japan
                  Tel: +81-3-3245-3318  Fax: +81-3-3245-3315
                  Email: [EMAIL PROTECTED]


--- ports/emulators/rtc/files/rtc.c.ctm Tue Dec 11 02:20:24 2001
+++ ports/emulators/rtc/files/rtc.c     Sat Feb  9 00:23:10 2002
@@ -266,9 +266,30 @@
 {
 int error;
 
+#if __FreeBSD_version >= 500023
+dev_t dev;
+struct rtc_softc *sc;
+
+       if (rtc_sc!=NULL)
+               return (EINVAL);
+
+       dev = make_dev(&rtc_cdevsw, 0, UID_ROOT, GID_WHEEL, 0644, DEVICE_NAME); 
+       if (dev==NULL)
+               return (EINVAL);
+
+       MALLOC(sc, struct rtc_softc*, sizeof(*sc), M_DEVBUF, M_WAITOK);
+       if (sc==NULL)
+               return (EINVAL);
+
+       bzero(sc, sizeof(*sc));
+       rtc_sc = sc;
+       dev->si_drv1 = sc; /* Link together */
+       sc->dev = dev;
+#else
        error = cdevsw_add(&rtc_cdevsw);
        if (error) 
                return error;
+#endif
 
        return error;
 }

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to