Commit Graph

41883 Commits

Author SHA1 Message Date
perry
54f97ab9d1 bzero->memset, bcopy->memcpy 1998-08-05 02:28:26 +00:00
perry
584757c02b bzero->memset 1998-08-05 02:11:00 +00:00
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
perry
f15ade7552 enable nanosleep in linux emul, per pr-5906 from Soren S. Jorvang 1998-08-05 00:44:32 +00:00
perry
b791320225 Fix for pr 5904 from Zdenek Salvet; we now use openpty() to get a pty. 1998-08-05 00:15:25 +00:00
fair
8718f5a329 more changes per PR#5820 1998-08-04 23:17:49 +00:00
thorpej
9186d2da5c Simple instrumentation of pmap_steal_memory(). 1998-08-04 22:40:17 +00:00
mycroft
e41c61fee9 Slight cleanup. Nuke things defined in ../netbsd.h, and nuke -Driscbsd. 1998-08-04 20:48:19 +00:00
jonathan
71c8693225 Add missing "-a" to mkdep line for pmax locore_machdep.S.
From Noriyuki Soda.
1998-08-04 20:17:09 +00:00
mark
25997dd19d IPL_TTY -> IPL_SERIAL. 1998-08-04 20:09:37 +00:00
kleink
7b07ad780a Per XNS Issue 5, calling recvmsg(2) or sendmsg(2) with an msg.msg_iovlen less
than or equal to 0 shall fail with EMSGSIZE; the latter condition was not being
checked for.  Also, document the msg.msg_iovlen > {IOV_MAX} case.
1998-08-04 19:48:34 +00:00
ragge
f6fd0956f2 Put in that vax uses PMAP_NEW as default. 1998-08-04 19:21:26 +00:00
mark
b6ffd3a85e Don't call cpu_tlb_flushID() from the pmap_update macro. 1998-08-04 19:11:29 +00:00
dbj
e9545cf241 Fixed memory probe for color turbo machines. 1998-08-04 19:08:23 +00:00
mark
167a777474 Drop in the lastest round of optimisations from Neil Carson.
The cache cleaning code in pmap_copy_page() and pmap_zero_page()
  has been rewritten and uses a new function pmap_clean_page().
  pmap_remove() has been completely rewritten to make it more efficient
  when there are only a few pages that actually need to be removed.
1998-08-04 19:02:19 +00:00
tv
55267a7623 Use NOPIC to mean "no shared libraries", not NOSHLIB. 1998-08-04 17:02:16 +00:00
minoura
b72d8d17f9 __BROKEN_INDIRECT_CONFIG fixes. 1998-08-04 16:51:51 +00:00
minoura
ea7f1dbe36 Some files were not deleted with make clean.
Keymap files are now installed in /usr/share/keymaps/x68k.
1998-08-04 16:39:55 +00:00
kim
c4a422bd94 Fixed my name. 1998-08-04 16:39:17 +00:00
minoura
7c055d6a62 Added /usr/share/keymaps/x68k for x68k ITE keymaps. 1998-08-04 16:38:39 +00:00
mark
47ac4421e0 In setregs(), only pass the stack value in r12 if COMPAT_1[123] is defined. 1998-08-04 16:25:28 +00:00
mark
4b14908352 Fix the validation of source addresses in db_read_bytes() so that
memory ranges mapped with L1 section mappings do not cause aborts
due to lack of L2 page table.
1998-08-04 16:19:54 +00:00
minoura
03983ab31f Changed the console terminal type to x68k. 1998-08-04 16:19:34 +00:00
mark
e9c872cd6b Define a macro L1_MASK to mask out the level 1 pde type bits. 1998-08-04 16:16:22 +00:00
minoura
aced90770c Message fixes. 1998-08-04 16:10:45 +00:00
minoura
233cd5d60b RB_POWERDOWN is now supported.
Check if the power switch is open (off) in the shutdown_hook,
and try removing the power in cpu_reboot.
poffd default action is now shutdown -p.
1998-08-04 16:07:53 +00:00
augustss
f76fb48283 Use looping DMA for play channel.
More cleanup.
1998-08-04 13:14:42 +00:00
kleink
c6ef57702d UIO_MAXIOV -> IOV_MAX 1998-08-04 12:19:15 +00:00
drochner
1767a286ec -fix some lint warnings
-fix overflow conditions (PR bin/5534, Zdenek Salvet <salvet@ics.muni.cz>)
 (+ one more: can VAX SMD drives be >4G?)
-fix output of "*" at odd end cylinder number (not odd size)
-break some lines >80 cols
1998-08-04 11:52:52 +00:00
augustss
5b057ab09f Allow option AUDIO_INTR_TIME even if the platform does not support
FP in the kernel.
1998-08-04 11:26:14 +00:00
kleink
3dc1e8147c Kill "options FIFO" - they're mandatory now. 1998-08-04 11:19:02 +00:00
perry
242ff31b91 update bzero.c to stub from libc/string 1998-08-04 06:27:08 +00:00
perry
2ea077b77c switch bzero to version in memset.c.
bzero.c is now a "#define BZERO//#include memset.c" type file.
Remove comment from Makefile about the fact that this is on the todo list.
1998-08-04 06:25:10 +00:00
perry
1801e92fce add strchr.c, strrchr.c, memmove.c, memcpy.c, to KSRC for copy to libkern. 1998-08-04 05:55:56 +00:00
perry
974739923b replace several special targets with stub .c files, as in libc/string 1998-08-04 05:01:58 +00:00
perry
8079ec33a6 Replace complicated and ugly makefile gook to make memmove,memcpy by
-Ding the bcopy.c source (and similarly strchr from index.c, strrchr
from rindex.c) with stub .c files for memmove, memcpy, strchr and
strrchr that simply #define the appropriate thing and #include the
appropriate .c file. Inspired by the way many m-d .S files handle the
same thing. This radically simplifies the Makefile.inc for libc/string
(and libkern).
1998-08-04 04:48:16 +00:00
mikel
f48c684893 handle negative arguments correctly 1998-08-04 04:33:15 +00:00
lukem
55c8240d52 add /usr/pkg/sbin:/usr/pkg/bin to (commented out) PATH entry 1998-08-04 04:09:05 +00:00
perry
275d1554aa Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)
1998-08-04 04:03:10 +00:00
perry
4d4aa090e9 add memcmp.c 1998-08-04 03:40:43 +00:00
perry
16039920c8 remove memcpy.c -- I forgot this gets built anyway 1998-08-04 03:40:12 +00:00
perry
612c53d05f add memcmp.c 1998-08-04 03:39:49 +00:00
perry
0b8f8ffda2 remove memmove.c -- I forgot this gets built anyway 1998-08-04 03:38:28 +00:00
perry
58af7a969a add memcmp.c memcpy.c memmove.c 1998-08-04 03:37:03 +00:00
perry
a611b37e29 add memcmp.S memmove.S 1998-08-04 03:35:59 +00:00
perry
c6300798a1 add memcmp.S 1998-08-04 03:35:32 +00:00
lukem
69761d6f64 cleaner version of fvdl's previous fix, using xstrdup as well 1998-08-04 03:35:24 +00:00
perry
6ee9cbf929 add memcmp.S memmove.S 1998-08-04 03:30:30 +00:00
perry
5ede68eddb add memcmp.c memmove.S 1998-08-04 03:17:39 +00:00
perry
e0f41ebe62 add memmove.S 1998-08-04 03:16:19 +00:00