From owner-freebsd-sparc Wed Aug 7 12: 0:48 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F9E737B400 for ; Wed, 7 Aug 2002 12:00:45 -0700 (PDT) Received: from m31.dmv.com (gta008.dmv.com [64.45.142.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70E0243E81 for ; Wed, 7 Aug 2002 12:00:43 -0700 (PDT) (envelope-from patrick@godloveya.com) Received: from m31.dmv.com (m31.dmv.com [172.17.0.44]) by m31.dmv.com (8.10.2+Sun/8.10.2) with ESMTP id g77J02L04242; Wed, 7 Aug 2002 15:00:03 -0400 (EDT) Subject: adjkerntz error From: Patrick To: Jake Burkholder Cc: freebsd-sparc@FreeBSD.ORG In-Reply-To: <20020802152957.V4442@locore.ca> References: <20020802152957.V4442@locore.ca> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 07 Aug 2002 15:00:02 -0400 Message-Id: <1028746803.4187.6.camel@m31> Mime-Version: 1.0 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I was getting an error on adjkerntz (no such file or directory) when running /sbin/adjkerntz -a. Using sysctl, I noticed that the machdep.adjkerntz is not equal to 2, but is instead 7.392. Also, machdep.wall_cmos_clock is 7.394. Are the oids supposed to be the same for the i386 as the sparc64? I've patched my sparc64/include/cpu.h file and it has fixed my problem, but are the numbers going to change? Here is the patch: *** cpu.h-ORIG Tue Aug 6 23:22:24 2002 --- cpu.h Wed Aug 7 05:25:38 2002 *************** *** 57,74 **** * CTL_MACHDEP definitions. */ #define CPU_CONSDEV 1 /* dev_t: console terminal device */ ! #define CPU_ADJKERNTZ 2 /* int: timezone offset (seconds) */ ! #define CPU_DISRTCSET 3 /* int: disable resettodr() call */ ! #define CPU_BOOTINFO 4 /* struct: bootinfo */ ! #define CPU_WALLCLOCK 5 /* int: indicates wall CMOS clock */ ! #define CPU_MAXID 6 /* number of valid machdep ids */ #define CTL_MACHDEP_NAMES { \ { 0, 0 }, \ { "console_device", CTLTYPE_STRUCT }, \ { "adjkerntz", CTLTYPE_INT }, \ { "disable_rtc_set", CTLTYPE_INT }, \ - { "bootinfo", CTLTYPE_STRUCT }, \ { "wall_cmos_clock", CTLTYPE_INT }, \ } --- 57,72 ---- * CTL_MACHDEP definitions. */ #define CPU_CONSDEV 1 /* dev_t: console terminal device */ ! #define CPU_ADJKERNTZ 392 /* int: timezone offset (seconds) */ ! #define CPU_DISRTCSET 393 /* int: disable resettodr() call */ ! #define CPU_WALLCLOCK 394 /* int: indicates wall CMOS clock */ ! #define CPU_MAXID 5 /* number of valid machdep ids */ #define CTL_MACHDEP_NAMES { \ { 0, 0 }, \ { "console_device", CTLTYPE_STRUCT }, \ { "adjkerntz", CTLTYPE_INT }, \ { "disable_rtc_set", CTLTYPE_INT }, \ { "wall_cmos_clock", CTLTYPE_INT }, \ } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message