Date: 07 Aug 2002 15:00:02 -0400 From: Patrick <patrick@godloveya.com> To: Jake Burkholder <jake@locore.ca> Cc: freebsd-sparc@FreeBSD.ORG Subject: adjkerntz error Message-ID: <1028746803.4187.6.camel@m31> In-Reply-To: <20020802152957.V4442@locore.ca> References: <FPEBKMIFGFHCGLLKBLMMAECPCBAA.ghelmer@palisadesys.com> <20020802152957.V4442@locore.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1028746803.4187.6.camel>
