Subject: toolchain/23490: 64-bit config(8) breaks negative RTC_OFFSET
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 11/19/2003 09:14:29
>Number: 23490
>Category: toolchain
>Synopsis: 64-bit config(8) breaks negative RTC_OFFSET
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 19 17:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jason R Thorpe
>Release: NetBSD 1.6ZE
>Organization:
-- Jason R. Thorpe <thorpej@shagadelic.org>
>Environment:
System: NetBSD yeah-baby.shagadelic.org 1.6ZD NetBSD 1.6ZD (YEAH-BABY-XP) #21: Thu Oct 16 15:47:17 PDT 2003 thorpej@yeah-baby.shagadelic.org:/u1/netbsd/src/sys/arch/i386/compile/YEAH-BABY-XP i386
Architecture: i386
Machine: i386
>Description:
The 64-bit internal integer representation in config(8) breaks
specifying a negative rtc offset:
param.c:105: warning: integer constant is too large for "long" type
param.c:105: warning: overflow in implicit constant conversion
thorpej 351$ grep RTC_OFFSET *
config_file.h:"_CFG_options \\011RTC_OFFSET=-600 # hardware clock is this many mins. west of GMT\n"
opt_rtc_offset.h:#define RTC_OFFSET 0xfffffffffffffda8
param.c: * Compiled with -DHZ=xx -DRTC_OFFSET=x -DMAXUSERS=xx
param.c:#ifndef RTC_OFFSET
param.c:#define RTC_OFFSET 0
param.c:int rtc_offset = RTC_OFFSET;
thorpej 352$
>How-To-Repeat:
Try to build the i386 GENERIC_PS2TINY kernel.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: