Commit Graph

177389 Commits

Author SHA1 Message Date
christos 49d8963a92 we have memcpy and port.h needs it. 2009-01-27 16:22:58 +00:00
christos 55113bafff Attempt to force resets using two more methods:
1. Reset Control register at I/O port 0xcf9
2. Fast A20 and Init register at I/O port 0x92

Requested by ad@
2009-01-27 16:13:13 +00:00
tnn b7888d42fa use %zd for size_t 2009-01-27 15:34:39 +00:00
pooka 8b70996e1b * read TCP sockets in cluster-sized chunks instead of IP_MAXPACKET.
(it might be a better to chain a few clusters into the iov
   instead of just one since we are making the syscall anyway)
* don't overwrite the useful error value
2009-01-27 13:40:16 +00:00
skrll fd24e60b98 From OpenBSD:
apparently my understanding of '{FLT,DBL,LDBL}_{MIN,MAX}_EXP' ahs
been wrong and thus proven by many and there change it back to
what it is meaning explained in http://www-ccs.ucsd.edu/c/float.html .
also fix spmath to use it's own consts instead of (now) off by one
float.h values thus to avoid any kind of binary changes.

Fixes regress/lib/libc/ieeefp/nan
2009-01-27 11:49:54 +00:00
pooka afe25e2049 Hold softnet_lock only when we need it. 2009-01-27 11:37:42 +00:00
tsutsui 398fb3fdca - use device_t and cfdata_t
- rename variables for readability after device_t/softc split
- use proper pointer types

No binary changes.
2009-01-27 11:26:15 +00:00
haad a4e585254c Add support for lvm to security script. Backup lvm configuration to /var/backup/lvm with other system backups. Disable lvm check until MKLVM is enabled by default. no objections on tech-userlevel@. 2009-01-27 10:32:18 +00:00
pooka ac23346377 set error if anonmmap fails 2009-01-27 10:05:08 +00:00
pooka bd401b81df Instead of dynamically allocating and freeing the rumpuser async
io descriptors, just allocate an array statically and be happy.

Fixes a problem found by Arnaud Ysmal where a descriptor would be
allocated using kmem_alloc(9) and free'd using free(3).
2009-01-27 09:14:01 +00:00
markd 70250ff52e Add some more Intel G4X class chipsets. Also fix gtt_size for G4X chipsets.
Partially from FreeBSD.   There is still an issue here as G4X chipsets
report an aperture size of 0.
2009-01-27 08:39:33 +00:00
markd 0c11bd236a Add some more Intel G4X class chipsets 2009-01-27 08:34:45 +00:00
markd be346f80ff Add Analog Devices AD1984A and treat like AD1984. 2009-01-27 08:23:00 +00:00
markd 7c98b7ee1a Add i82567LM-3 2009-01-27 08:18:04 +00:00
markd 152cb9db85 regen 2009-01-27 08:07:43 +00:00
markd a62cbc5202 Add Intel 82567LM_3 ethernet 2009-01-27 08:04:54 +00:00
mrg 9163b8603e normalise a comment. 2009-01-27 06:57:59 +00:00
mrg 798e718222 fix a very old resolver bug:
when looping over the current list of sockets we're connected to,
use getpeername() not getsockname() to find out who the remote
end is.  avoid spurious close()s and (rare) failure.

apparently known as ISC bug #18625, and fixed in libbind 6.0
2009-01-27 05:13:23 +00:00
agc ed31bb989a The existing code has problems verifying a signed file which is more
than 8192 bytes long, as the callback data simply assigns any data it
receives to a buffer, and then calls the hash function on that buffer
when EOF is reached.

Use an inefficient temporary workaround for this by holding the memory
in a temporary buffer in the callback argument structure.
2009-01-27 02:25:13 +00:00
pooka 8871312c01 Init rumpspl rwlock spinlock. Otherwise pthread_spin routines just
return EINVAL and result in not protecting what they are supposed
to protect.  This results in the counter value getting corrupted
and asserts firing.

Problem reported by Arnaud Ysmal.

While debugging this, take the opportunity to remove explicit
pthread_t comparisons and put everything under pthread_equal().
2009-01-26 19:34:12 +00:00
skrll 18a365911a Don't corrupt %r4 - it's a callee save.
Fixes regress/lib/csu/initfini on hppa.
2009-01-26 18:39:47 +00:00
tteras 98b638ac57 Argument parsing needs lcconf initialized. 2009-01-26 18:13:06 +00:00
apb 69a442fa50 Define HAVE_STRUCT_DIRENT_D_NAMLEN in config,h, and test it when
deciding whether to use entry->d_namlen or strlen(entry->d_name).
Addresses PR 40477 by Robert Millan.
2009-01-26 17:32:41 +00:00
christos 744913a534 fix defs.h building. 2009-01-26 16:30:14 +00:00
christos b9525db03f PR/40480: George Abdelmalik: Don't redefine _FORTIFY_SOURCE if it is already
defined.
2009-01-26 15:09:56 +00:00
drochner 92b9f070f2 remove stale getdevmajor() declarations, fixes lint(1) warning
reported by Bernd Ernesti
2009-01-26 15:05:56 +00:00
pooka 6aa12aa856 allocate proc_lock 2009-01-26 14:41:28 +00:00
pooka 5885120155 Init pool subsystem iff RUMP_USE_REAL_ALLOCATORS is defined. 2009-01-26 14:35:50 +00:00
njoly 747badac97 +openpgp.debug 2009-01-26 14:14:12 +00:00
pooka d1543896fb * support PRU_SOCK/PEERADDR
* soisdisconnected() TCP sockets if read returns a non-transient error or 0
2009-01-26 13:44:51 +00:00
elad 563e80a1ee Fix mistake in the Veriexec example, the command name is "veriexecctl",
not "veriexec".
2009-01-26 13:23:20 +00:00
njoly 122f627e90 Make msgsnd(2)/msgrcv(2) fail with EINVAL for messages larger than
SSIZE_MAX. Adjust man pages accordingly.

ok by christos.
2009-01-26 13:08:48 +00:00
njoly 3e5b27ff8e Make all fstat(2) compat syscalls consistently use do_sys_fstat(),
instead of fd_getfile()/fd_putfile() dance.

ok by christos.
2009-01-26 13:00:04 +00:00
pooka 786ad5478f regen for new syscalls 2009-01-26 12:21:24 +00:00
pooka 89fa47c428 Tag a few more socket syscalls with RUMP:
recvmsg, sendmsg, recvfrom, getpeername, getsockname, sendto,
shutdown, socketpair
2009-01-26 12:20:05 +00:00
pooka 29d873b4c6 Support getsockname() and getpeername() in rumpuser.
XXX: all these rumpuser_net routines passing sockaddr should use proplib.
2009-01-26 12:08:38 +00:00
tron 0c5d87d569 Use correct format to print the "numBlocks" element in a RAIDframe
component label. raidctl(8) should now print the correct number of
blocks for RAID sets larger than 1TB.

Patch supplied by Bernhard Moellemann in PR bin/40479.
2009-01-26 11:34:12 +00:00
pooka 39cb5b514d Convert compile-time SOCKIN_NOTHREADS into runtime rump_threads check. 2009-01-26 10:43:21 +00:00
jklos c259dad90f Added MAKEDEV.local to postinstall's makedev check. Upgraded systems were
not getting an updated MAKEDEV.local file.
2009-01-26 07:40:01 +00:00
mrg d1ab7d6b0d put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.
2009-01-26 06:27:33 +00:00
mrg 14be4b6c0e delete these unused directories now. 2009-01-26 06:25:38 +00:00
yamt efeccfb5bc fix an error message. 2009-01-26 05:53:10 +00:00
agc cd0c6128b6 Various updates to the roadmaps for features we are looking to develop
over the next few years
2009-01-26 05:09:25 +00:00
agc d33d41488e Sync storage roadmap with reality. 2009-01-26 04:55:59 +00:00
lukem ee7c6ab326 sign-compare fixes 2009-01-26 04:01:14 +00:00
lukem db4cbbf2f6 sign-compare fix 2009-01-26 04:00:40 +00:00
christos a1323d3f16 add a few quotes to make older make(1) happy. 2009-01-26 00:44:32 +00:00
snj 7e2b3238db Various updates to the install notes. 2009-01-26 00:14:42 +00:00
tron 11cc2a433c Install the "sony-misc" font from the X.org distribution.
Patch supplied by Takeshi Nakayama in PR xsrc/40476.
2009-01-25 23:11:16 +00:00
abs a192b2c217 Abstract out setting of '-m680X0' based on -DM68020, -DM68030,
-DM68040, and -DM68060 into sys/arch/m68k/Makefile.cmachflags and
include from both atari and amiga. Other m68k ports which build
kernels that support multiple CPU types can also switch across to
this.
2009-01-25 22:25:08 +00:00