Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: redhat-4.0: /sbin/clock for the Jensen (again)
Date: 08 Oct 1996 10:44:14 +0200	[thread overview]
Message-ID: <3047e55b88f415a9046a11e6e1a8bd60.axp-list@archive.invalid> (raw)

Hmm, I'm afraid this is going to be the runnig gag of this list ...

The following patch is still missing in Colgate:

--- ../../util-linux-2.5/sys-utils/clock.c	Tue Oct  8 09:09:54 1996
+++ clock.c	Tue Oct  8 09:13:32 1996
@@ -142,7 +142,11 @@
 
 #define VERSION "1.4.3axp"
 
+#ifdef __alpha__ 
+#define USE_DEV_PORT
+#else
 #undef USE_DEV_PORT
+#endif
 
 #ifdef USE_DEV_PORT
 # include <asm/fcntl.h>
@@ -297,7 +301,7 @@
   save_control = cmos_read (11);   /* tell the clock it's being set */
   cmos_write (11, (save_control | 0x80));
   save_freq_select = cmos_read (10);       /* stop and reset prescaler */
-  cmos_write (10, (save_freq_select | clockport));
+  cmos_write (10, (save_freq_select | 0x70));
 
   cmos_write (0, tm->tm_sec);
   cmos_write (2, tm->tm_min);

BTW, is there any good reason not to use /dev/port on other machines?

Martin

-- 
Martin Ostermann                | mailto:ost@comnets.rwth-aachen.de
Communication Networks          | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany                         | faxto:++49/241/8890378

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-10-08  8:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-08  8:44 Martin Ostermann [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-10-08 15:11 redhat-4.0: /sbin/clock for the Jensen (again) David Mosberger-Tang
1996-10-08 20:08 Martin Ostermann
1996-10-08 20:34 David Mosberger
1996-10-08 21:37 Martin Ostermann
1996-10-08 21:37 Martin Ostermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox