Commit Graph

208908 Commits

Author SHA1 Message Date
joerg 782395a37e Really skip the current line only if the comment is at the start. 2012-02-03 04:28:55 +00:00
christos 1adc476134 don't try to write in a const buffer. 2012-02-03 04:03:11 +00:00
christos e135d08485 elf_args needs to be freed with kmem_free() since it is now allocated with
kmem_alloc(). Should fix running 32 bit elf binaries.
2012-02-03 03:54:35 +00:00
christos 86cd0e8b2d PR/45764, PR/45914
Part 2:
Arrange so that the pointers that we free (ifp->if_afdata, dom->dom_ifqueues[i])
are set to NULL.
While I am here, add a continue.
2012-02-03 03:35:30 +00:00
christos 6a74395ce6 PR/45764, PR/45914
Part 1:
nd6_purge can be called after dom_ifdetach, and if_afdata[AF_INET6] is
going to be freed and point to garbage. Make sure we check for NULL, before
taking the pointer offset.
While I am here, add an M_ZERO.
2012-02-03 03:32:45 +00:00
tls 208455fc84 Fix missed inclusion from my previous commit. 2012-02-03 01:20:45 +00:00
nisimura 9aa0874ef1 Add Mini2440 entry to sysinst kernel selection. 2012-02-03 00:35:35 +00:00
nisimura 7426b8ed25 Make sure to allow MEMORY_DISK as rootfs. 2012-02-03 00:33:08 +00:00
roy 8051771ee5 Import dhcpcd-5.5.3 2012-02-03 00:05:57 +00:00
roy 75c7a95f02 Import dhcpcd-5.5.3 to fix a compile failure. 2012-02-03 00:04:06 +00:00
roy 54e74c5d9b Import dhcpcd-5.5.2 with the following changes:
* Stop checking IFF_RUNNING in RTM_IFINFO in an unknown link state
* RA expiry now tiggers off the first option if newer than the prefix
* Prefer a DHCP lease over an IPv4LL one
2012-02-02 23:35:40 +00:00
nonaka 6cabf8a9dc Use "opt_sdmmc.h" for SDHC_DEBUG. 2012-02-02 22:49:17 +00:00
phx 678263a5d4 Translate some new messages into german. 2012-02-02 22:15:04 +00:00
phx bd07308fb4 Use sync(8) instead of echo(1) to avoid writing an RDB disklabel.
echo(1) is not part of the miniroot file system.
2012-02-02 21:58:31 +00:00
phx 3290da69bf Fixed writing of MBR disklabel. It was written by disklabel(8) -r directly
into sector 0, corrupting the MBR. Moved to sector 1.
Removed MBR_LABELSECTOR, which is no longer needed.
2012-02-02 21:54:34 +00:00
para 1cf29b36a2 call uvm_km_kmem_alloc with right arguments
fixes: kern/45913
2012-02-02 20:11:26 +00:00
tls 7b0b7dedd9 Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.
2012-02-02 19:42:57 +00:00
christos d647fec80c use FOREACH_SAFE. 2012-02-02 19:35:18 +00:00
darrenr 9330b4a5e1 Compiler warning on a for loop that does not terminate correctly 2012-02-02 19:18:51 +00:00
para 3eed4a3cfa - bringing kmeminit_nkmempages back and revert pmaps that called this early
- use nkmempages to scale the kmem_arena
- reducing diff to pre kmem/vmem change
   (NKMEMPAGES_MAX_DEFAULT will need adjusting on some archs)
2012-02-02 18:59:44 +00:00
matt a12df59a7e Handle another case the new gcc_assert(0) caught. 2012-02-02 18:33:03 +00:00
matt fc737977f3 For fast lwp_getprivate, just do the chmk $SYS_lwp_getprivate inline. 2012-02-02 18:32:16 +00:00
matt c583175773 In the syscall vector, deal with SYS_lwp_getprivate quickly. XXX what about
non-NetBSD syscall tables.
2012-02-02 18:31:41 +00:00
drochner 1336116b2f fill in timestamps in outgoing data buffers 2012-02-02 17:21:18 +00:00
tsutsui 8ff81a2ae9 Always include <m68k/cpu.h> (i.e. outside #if defined(_KERNEL))
for crash(8) as amiga and sun3.  There are _KERNEL protections in it.

Briefly tested by "build.sh -m news68k -U build".
Further possible botch will be fixed later.
2012-02-02 16:59:42 +00:00
tsutsui 319ee70223 Don't enable DB_MACHINE_COMMANDS on crash(8) (i.e. !defined(_KERNEL) case).
No easy way to switch sun3 and sun3x at run time for now.

Briefly tested by "build.sh -U -m sun3 build".
2012-02-02 16:06:48 +00:00
tsutsui 8e1b1dc1f4 Build INSTALL_C700 ramdisk kernel and install into releasedir. 2012-02-02 16:02:44 +00:00
tsutsui 96d29df0a1 Select a proper kernel set (GENERIC or C700) per running INSTALL kernel name. 2012-02-02 16:00:35 +00:00
tsutsui 18b9ea2097 Add INSTALL kernel config for SL-C700. 2012-02-02 15:57:39 +00:00
tsutsui 8fb06de510 Try to shrink INSTALL kernel a bit.
Loading INSTALL kernel on SL-C1000 running Zaurus Linux still sometimes
fails (due to its size), but at least it works on maintenance kernel.
2012-02-02 15:55:55 +00:00
matt f24871cb06 On a kernel segfault, print the registers from the trapframe. 2012-02-02 14:30:48 +00:00
matt 939c43e3d8 Fix the initial sizing of the system page table / address space. 2012-02-02 14:30:13 +00:00
matt eb871edeb7 Deal with instruction with no arguments. 2012-02-02 14:29:25 +00:00
matt b7a0413860 Fix a bug in movmemsi in which couldn't handle sym(reg) expressions properly. 2012-02-02 13:32:17 +00:00
drochner 005775381c delete virtual screens on detach - this allows to hot-unplug
a udl@usb monitor without crash
2012-02-02 13:11:25 +00:00
drochner 28af654232 tell the compiler that the i387 runs in double-rounding mode, so it
doesn't need to issue memory store-read sequences to kill excess
precision. makes code smaller and faster, depending on optimization
flags
(as tests on Linux have shown, the compiler doesn't even succeed in
avoiding excess precision)
2012-02-02 13:07:33 +00:00
reinoud 1c948e16f7 spl_intr() is not defined anymore so remove from the header file 2012-02-02 11:13:41 +00:00
reinoud f1858320d3 Regen 2012-02-02 11:12:40 +00:00
reinoud 1a5b67339c Add cdefs.h to usermode's genheaders.sh 2012-02-02 11:10:24 +00:00
macallan ee1ab7bfc0 add a bunch of register definitions
not used yet but I better commit them now than have he tell me that I forgot
them when pm2fb.c starts using them
2012-02-02 07:09:53 +00:00
perseant 2e80c2a7d9 When creating a very small filesystem, use well-known small segment,
block and fragment sizes by default instead of the ordinary 1M/8k/1k
default for larger filesystems.
2012-02-02 03:50:32 +00:00
perseant 8c0be006bf If invoked with -D and creating an image file, ensure that the image
file is filled to the given size.  This prevents false failures
with "lfs: ifile read: 22" in ATF tests.
2012-02-02 03:49:22 +00:00
perseant ccf39d2d9b Shut down the cleaner earlier if the filesystem is unmounted. 2012-02-02 03:47:11 +00:00
matt ded3ab848b Make this compile on vax (uninitialized use warning). 2012-02-02 03:00:48 +00:00
pgoyette eda587d6aa Clean up display of initial hardware provided limits. No functional change. 2012-02-02 02:47:59 +00:00
christos bccc78a590 Disable PTRACE_FORK for vforked() children, because the parent is waiting
and will not receive the SIGTRAP in time.
2012-02-02 02:44:06 +00:00
para e253ed8e30 allocate uareas and buffers from kernel_map again
add code to drain pools if kmem_arena runs out of space
2012-02-01 23:43:49 +00:00
matt 91964d87da Add more FLAGS 2012-02-01 23:03:30 +00:00
matt 8cdb54786a Add XLP specific CGM mode for SDHC_CLOCK_CTL. 2012-02-01 22:53:19 +00:00
kardel 2f3ccb499e cleanup printf fmt differences between i386/amd64 2012-02-01 22:48:15 +00:00