Commit Graph

177399 Commits

Author SHA1 Message Date
christos
decf940784 factor out common reset code. 2009-01-27 21:59:24 +00:00
dyoung
6ebb93d58e Protect against spurious "bnx0: Double mbuf allocation failure!"
panics.

Extract a new function, bnx_add_buf(), from bnx_get_buf().
bnx_add_buf() just tries to add an mbuf to the Rx chain.  bnx_get_buf()
tries to allocate an mbuf, first, and then to add the mbuf to the
chain.  Use bnx_add_buf() to try to put an mbuf that we took off
of the chain back onto the chain, and use bnx_get_buf() everywhere
else.

This change seems to be in keeping with the author's intent, but
it looks like the code broke at some point.

Thanks to Jarle Greipsland, David Dudley, and others for reporting
this bug and for testing patches.
2009-01-27 21:15:38 +00:00
ad
454c144aec Make previous compile. 2009-01-27 21:13:57 +00:00
martin
f055e18205 Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.
2009-01-27 20:30:12 +00:00
martin
f7d75c4a14 fix include path in previous 2009-01-27 20:12:19 +00:00
martin
071773c11c Move FPSR_ register bit definitions into their own file 2009-01-27 20:03:12 +00:00
martin
2a9360026c The FE_* constants are used verbatim to set the RND field in the FPCR
register - so FE_UPWARD needs to be 3 and FE_DOWNWARD 2 - otherwise
our libc code for fpsetround(), fpgetround() and __flt_rounds() would
need to be adjust (and become slower). This fixes a failure in the
lib/libc/ieeefp/round regression test.

OK: matt
2009-01-27 19:04:39 +00:00
tnn
c7c8fe9828 Fix previous. That should of course be %zu. 2009-01-27 17:15:26 +00:00
christos
f6ce57fa5b fix typo. 2009-01-27 16:53:42 +00:00
christos
7842bfc111 check for memcpy too 2009-01-27 16:50:08 +00:00
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