NetBSD/sys/arch
perry bf0943278c Fix a problem first noticed by a user with a screwed up real time
clock past the End of Time.

If time_t is 32 bits, then the "End of Time" is Jan 18/19 2038
(depending on time zone).

This code copes with RTC's past the end of time if time_t is an int32
or less. It just forces the time back to 2037.  This will let users
with screwed up clocks to at least boot and function long enough to
set their clocks to something sane.

This kludge is conditioned on an
	if (sizeof(time_t) <= sizeof(int32_t))
which will automatically optimize the code out once we switch time_t
to a 64 bit quantity, which should happen well before 2037.

Patch based on code from Michael C. Richardson, with help from
Allen Briggs who pointed out a fencepost error.
1998-08-05 01:21:54 +00:00
..
alpha Simple instrumentation of pmap_steal_memory(). 1998-08-04 22:40:17 +00:00
amiga Kill "options FIFO" - they're mandatory now. 1998-08-04 11:19:02 +00:00
arm32 IPL_TTY -> IPL_SERIAL. 1998-08-04 20:09:37 +00:00
atari Pass the dma_tag to _bus_dmamap_load_buffer. 1998-08-03 13:09:01 +00:00
bebox ISA PnP goo. 1998-07-31 04:55:30 +00:00
hp300 Oops, make a sentence added in previous commit parseable. 1998-08-02 19:42:35 +00:00
i386 Fix a problem first noticed by a user with a screwed up real time 1998-08-05 01:21:54 +00:00
m68k (Always) (practice) (safe) (macro expansion). 1998-07-31 15:07:41 +00:00
mac68k Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
macppc Use ite for screen console by default until wscons support. 1998-07-29 05:38:04 +00:00
mips (Always) (practice) (safe) (macro expansion). 1998-07-31 15:07:41 +00:00
mvme68k Changes to keep lint happy. 1998-08-01 11:22:51 +00:00
newsmips Change from "-G 0" to "-G0" for egcs. 1998-07-22 19:59:21 +00:00
next68k Fixed memory probe for color turbo machines. 1998-08-04 19:08:23 +00:00
ofppc Use fixed-size types. 1998-07-07 04:29:42 +00:00
pc532 (Always) (practice) (safe) (macro expansion). 1998-07-31 15:07:41 +00:00
pica Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
pmax Add missing "-a" to mkdep line for pmax locore_machdep.S. 1998-08-04 20:17:09 +00:00
powerpc (Always) (practice) (safe) (macro expansion). 1998-07-31 15:07:41 +00:00
sparc dvma_malloc(), dvma_mapin() and dvma_mapout() are gone; all drivers 1998-07-31 22:35:07 +00:00
sparc64 Following discussions with eeh and mrg, change most of these types so 1998-07-31 15:30:40 +00:00
sun3 Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
vax Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
x68k __BROKEN_INDIRECT_CONFIG fixes. 1998-08-04 16:51:51 +00:00
Makefile don't forget machine header symlinks 1998-06-15 20:49:43 +00:00