Commit Graph

208892 Commits

Author SHA1 Message Date
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
matt
127e8825f0 Add some more FreeScale ESDHC defintions. 2012-02-01 22:35:30 +00:00
matt
5e2f4552c6 Use "opt_sdmmc.h" for SDMMC_DEBUG, etc. 2012-02-01 22:34:42 +00:00
matt
37e06c30ca Add ext2/msdos support, allow mount from udf, add flashctl. 2012-02-01 22:25:46 +00:00
matt
48bb1d5677 Put ld0/ld1 on the ramdisk (for sdmmc). 2012-02-01 21:57:13 +00:00
matt
fe1bf23cfb Build the INSTALL kernels for the P2020DS and P2020RDB 2012-02-01 21:56:40 +00:00
matt
993d752c0e Use kmem instead of malloc. 2012-02-01 21:49:52 +00:00
matt
aa9762222f Allow ofwboot to read files from FAT(dosfs). 2012-02-01 21:48:22 +00:00
matt
5985b5151e Add tmpfs 2012-02-01 21:47:17 +00:00
matt
ceea929f77 Make sure the walnut system_tail_extra is very last thing. 2012-02-01 21:46:02 +00:00
kardel
617a40a056 use WARNS=0 until const issue is resolved 2012-02-01 21:22:19 +00:00
kardel
9b98de2bc5 initialize min_dist 2012-02-01 21:21:25 +00:00
kardel
cb314bfae7 build libopts with WARNS=0 for now 2012-02-01 20:49:09 +00:00
kardel
a2545411b3 back to WARNS=4 (constify and signedness corrections) 2012-02-01 20:48:01 +00:00
cherry
44937af7b2 amd64/Xen doesn't require special treatment for pmap_is_curpmap(),
since cpu_load_pmap() ensures that the linear map is in place for the
kernel. This emulates normal shared kernel mappings, except for the
recursive mapping of the PDP_BASE, which will point to the per-cpu
pdir, which will be a copy of the pmap_kernel()->pm_pdir; instead of
the user pmap->pm_pdir.
2012-02-01 18:55:32 +00:00
dholland
8ca6501118 Set list updates for libquota bump. 2012-02-01 17:53:54 +00:00
dholland
53787c1f86 Bump libquota.so major version (to 1) 2012-02-01 17:53:23 +00:00