Commit Graph

219919 Commits

Author SHA1 Message Date
pooka
1b3ff08420 Support Linuxen where libc ioctl has cmd as int unstead of unsigned long. 2013-07-22 12:11:03 +00:00
pooka
3fcbbf6450 TIMEVAL_TO_TIMESPEC (for musl)
from Justin Cormack
2013-07-22 08:58:31 +00:00
msaitoh
56e70cb375 Both increment_overflow() and normalize_overflow() have two different
declarations. One must be *32(). Fixes compile error observed on sparc64.
2013-07-22 04:55:09 +00:00
matt
418abeab42 In the non-MP case, just initialize onproc to NULL. 2013-07-22 03:40:36 +00:00
matt
283b482b24 If not MULTIPROCESSOR, just make cpu_tlb_info(ci) return &pmap_tlb0_info 2013-07-22 03:39:55 +00:00
matt
cc7b19c021 use mvz[wb] when possible 2013-07-22 03:37:17 +00:00
matt
32e8c32db8 Use motorola syntax
Adjust for coldfire
(no binary difference for non-coldfire
2013-07-22 03:30:38 +00:00
riastradh
68f2e8ca36 When reading from /dev/random, block at most once in cprng_strong.
We are not obligated to return exactly as many bytes as requested,
and many applications -- notably those that use stdio or otherwise
buffered I/O to read from /dev/random -- try to read many more than
32 bytes at a time from /dev/random even if all they are about to use
is 32 bytes.

In this case, blocking until we have enough entropy to fill a large
buffer causes needless application delays, e.g. causing cgdconfig
(which reads from /dev/random with stdio) to hang at boot when trying
to configure a random-keyed device for swap.

Patch tested by Aran Clauson.  Fixes PR kern/48028.
2013-07-21 22:30:19 +00:00
tron
c8ccd84f1f Fix build with stack-protection enabled. 2013-07-21 15:29:04 +00:00
njoly
a8ad9a70f6 Kill a few trailing spaces. 2013-07-21 10:14:55 +00:00
dholland
b7e188bc2a Merge logic from ulfs_close(), ulfs_getattr(), and ulfs_strategy()
into the preexisting lfs_*() versions of these functions, and delete
the unused ulfs copies.
2013-07-21 00:01:22 +00:00
dholland
8238e5b049 oops, spell b_bcount properly 2013-07-20 23:00:08 +00:00
dholland
be719d1e75 In spec_strategy, if fscow_run() fails, set b_resid along with b_error
to avoid panic in biodone. Noticed by riastradh.
2013-07-20 22:42:59 +00:00
dholland
f15a6faedc Remove ulfs_mknod, which is not used. 2013-07-20 22:16:02 +00:00
dholland
f59e924a8b Merge ulfs_mknod into lfs_mknod, which was missing some bits. 2013-07-20 22:14:49 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
dholland
0166a5c7cf fix another defective C&P makefile 2013-07-20 20:44:02 +00:00
dholland
d0790dc078 why does rump have to have its own private build system? 2013-07-20 20:43:09 +00:00
dholland
2aee89e8d5 G/C unused pieces. 2013-07-20 20:01:24 +00:00
dholland
0e93cfc3cb Collect the pieces of lfs rename into lfs_rename.c, and sprinkle static. 2013-07-20 19:59:31 +00:00
pooka
40fd6d6fa3 Fixes when compiling against musl libc.
from Justin Cormack via private email
2013-07-20 18:46:15 +00:00
njoly
8d578817f8 Remove, in do_sys_renameat(), wrong KASSERTs that check for non NULL
from/to arguments. Such values are correctly handled by later
pathbuf_maybe_copyin() calls, that will fail with EFAULT.

ok from dholland@.
2013-07-20 15:55:57 +00:00
rmind
1ded926c3d Mention rmind-smpnet branch. 2013-07-20 14:15:20 +00:00
njoly
0cb3d6b752 Initialise destination before performing stat structure conversion.
Avoid getting garbage for structure members not set explicitely.
2013-07-20 13:13:33 +00:00
christos
78da6e3986 revert socklen_t to int (from dh) 2013-07-20 10:31:19 +00:00
kefren
ae8b7d0074 don't connect on first hello, there are chances that ours is not seen yet
setproctitle with ldp id - useful for rump kernels testing
fix a memory leak in ldp_peer_new
don't holddown if already holded down
peer sockets are now non-blocking
connected routes deletes are now processed
check if peer is connected before attempting to sending label mappings
2013-07-20 05:16:08 +00:00
matt
83b16e7e52 Note addition of non-kernel coldfire support. 2013-07-20 04:46:58 +00:00
matt
af4aa0e2b7 Don't use the fs* variants, just use the f* ones. 2013-07-19 22:32:04 +00:00
matt
3ab889c115 gmp, binutils, gcc, gdb configury for coldfire 2013-07-19 22:14:23 +00:00
matt
4ce22e250b Match m5407--netbsdelf* 2013-07-19 21:48:38 +00:00
matt
2d336eb8bb Even if we aren't making a crossgdb still make the object dir for it. 2013-07-19 20:58:58 +00:00
matt
203bed342b Add a M5407_PATTERN 2013-07-19 17:31:49 +00:00
matt
784ea6305e Match m5407-*-* 2013-07-19 17:31:14 +00:00
matt
6261dc2045 Add m5407--netbsdelf* support 2013-07-19 17:07:28 +00:00
matt
920e58b8b9 Use m5407--netbsdelf for coldfire (Why not just use m5407--netbsd? Because
gas will think that's a.out since internally it expands it to m68--netbsd
and that matches a.out)
2013-07-19 16:52:44 +00:00
tsutsui
b0074c5d2c Add an initialization function of DS1287A RTC and call it during attach.
It looks the boot firmware doesn't initialize the control registers
of DS1287A (while it resets NVRAM settings) and RTC oscillator is not
started properly after replacement.

Now my LUNA-II can keep RTC properly even after reboot.
2013-07-19 16:42:30 +00:00
matt
cb2ad9b126 With these changes, they now produce identical binary as before the coldfire
changes.
2013-07-19 16:42:12 +00:00
tsutsui
55a5a509a2 Properly initialize the palette for while on black even on 1bpp framebuffer.
Preparing for demonstration in Open Source Conference 2013 Kyoto.
2013-07-19 16:35:57 +00:00
matt
93a2362132 Configury changes to match tuple of m5407--netbsdelf as a variant of
m68k--netbself but with a coldfire cpu (m5475).  Fix m68010 to actually
properly default to m68010.
2013-07-19 16:23:10 +00:00
matt
ff4ffb39ed Allow alias of m5407--netbsdelf for m68k--netbsdself 2013-07-19 16:01:33 +00:00
matt
5b9e27202e Fix broken matching for m5200 and m5407 as alias for coldfire cpus. 2013-07-19 15:58:48 +00:00
matt
a6b968105e Allow stripping of the m before m5... so that it can match coldfire cpus. 2013-07-19 15:57:18 +00:00
matt
88c7c7f72e Make these consistent. Make sure all handle earm and coldfire. 2013-07-19 15:55:57 +00:00
christos
248e8c4711 fix error handling. 2013-07-19 15:53:00 +00:00
christos
b865eeeb70 PR/48063: Justin Cormack: incorrect definition of socklen_t 2013-07-19 12:00:30 +00:00
roy
e62e167ab0 Import dhcpcd-6.0.3 2013-07-19 11:56:42 +00:00
roy
659620d9e7 Import dhcpcd-6.0.3 with the following changes:
* dhcpcd will now assign a short hostname by default
  To use a FQDN hostname, set this in dhcpcd.conf(5)
  env hostname_fqdn=YES
* Only start DHCPv6 if the RA is new or has changed
* Fixed dhcpcd owning RA addressing and routes if disabled in kernel
2013-07-19 11:52:56 +00:00
hauke
64a4eb64c6 Commit the patches in Wolfgang Stukenbrock's PR bin/41896.
(1) Do not serve UIDs below MINUID in master.passwd.* maps,
just like in passwd.* maps.

(2) Since stdethers(8) and stdhosts(8) strip comments, we do
not have to do it here, much less inconsistently.
2013-07-19 11:44:51 +00:00
pooka
370de4e409 Enable opt-out from shlib mapfile creation. Not all linkers (namely
the solaris one) support such fancy features.

no default functional change
2013-07-19 11:43:18 +00:00
wiz
29c72c8d8a Sort. 2013-07-19 11:19:23 +00:00