Commit Graph

220767 Commits

Author SHA1 Message Date
riastradh
b1574872b8 Back out the recent rnd stop-gap/stop-gap/stop-gap measures.
This reverts

sys/dev/rnd_private.h -> r1.1
sys/kern/init_main.c -> r1.450
sys/kern/kern_rndq.c -> r1.14
sys/kern/kern_rndsink.c -> r1.2

Parts of these changes will be added back, and the rndsource
callbacks will be fixed to avoid the lock recursion bug that
motivated the stop-gaps in the first place.

ok tls
2013-08-27 19:30:10 +00:00
joerg
cc1cb97e40 Remove outdated comment. 2013-08-27 18:29:28 +00:00
riastradh
9726b00ff6 Schedule wakeups asynchronously in rnd_extract_data.
Otherwise, rndsink_request takes rndsinks_lock and calls
rnd_extract_data, which synchronously calls rndsinks_distribute,
which takes rndsinks_lock -> boom.

This is a stop-gap on a stop-gap on a stop-gap; we really ought to
back out all of these stop-gaps, make bcm2835_rng call rnd_add_data
asynchronously to work around the original symptom, and design a real
solution when we have time to sort this mess out properly.
2013-08-27 14:01:35 +00:00
macallan
6cf29c2f93 sprinkle #if NPSYCHO > 0
now this builds again on kernels without psycho
2013-08-27 13:12:29 +00:00
macallan
dbc46cd7fa psycho needs-flag now
while there, ffb doesn't need rasops8
2013-08-27 13:11:12 +00:00
christos
4d322dedff move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
2013-08-27 09:56:12 +00:00
christos
27af00aa70 avoid copying most of libc (except gethostent_r, which unfortunately
adds a resolver dependency) by callling the internal nsswitch functions.
2013-08-27 09:53:33 +00:00
skrll
b3d7b0b6fa Minor tidyup 2013-08-27 06:41:05 +00:00
skrll
33baa40d6e Support R_ARM_REL32 and R_ARM_PREL31.
ok matt.
2013-08-27 06:39:43 +00:00
matt
f8945ff921 Bump STMRAB_SPACE 2013-08-27 03:41:59 +00:00
tls
a92176cb34 Temporary fix for previous: avoid recursion through rnd_wakeup_readers()
when entropy first becomes available.
2013-08-26 23:41:24 +00:00
matt
f60758a410 Change the default for MKLINT to no 2013-08-26 22:15:51 +00:00
matt
88d398120c Don't include <arm/arm32/pte.h> and <arm/pmap.h>
Use the values from getassym.h
2013-08-26 15:31:44 +00:00
matt
49c834f870 Include <arm/locore.h> 2013-08-26 15:31:06 +00:00
matt
ae05909c70 Even though both gas and ld support .cfi_personality, gcc fails to emit
them so we get DT_TEXTREL problems.
So if pic && SHARED, we force EH_FRAME to be writeable (which is what would
happen if .cfi_personality was not supported).
2013-08-26 14:24:22 +00:00
matt
704e1f2829 MIPS wants a read/write eh_frame. 2013-08-26 14:20:53 +00:00
martin
03ee7892c9 Fix a comment and a few minor optimizations:
* elf_check_header() already ensures eh.e_phnum > MAXPHNUM, so do not
   test it again at the call site
 * is_dyn == true implies a successfull call to elf_check_header(eh, ET_DYN),
   so no need to call elf_check_header(eh, ET_EXEC)

From Maxime Villard.
2013-08-26 12:24:10 +00:00
he
8d81ddd3bf Bump the ramdisk image size so that the contents fits again. 2013-08-26 07:14:59 +00:00
tls
38648a41ea Attempt to resolve locking issues at kernel startup on platforms with
hardware RNGs using the polling mode of operation:

1) Initialize the rng subsystem soft interrupts as early in kernel startup
   as seems safe (we have no MI guarantee that softints are working at all
   until configure2() returns, AFAICT).

   This should have the rnd subsystem able to process events via softint
   before the network subsystem (a notorious early user of entropy) starts.

2) Remove the shortcut calls to rnd_process_events() from
   rnd_schedule_process(), with the result that until the softint is installed
   rnd_process_events() is a NOP.

3) Directly call rnd_process_events() in rnd_extract_data(),
   rnd_maybe_extract(), and rnd_init_softint().  This should suck up any
   samples actually collected as early as possible.
2013-08-25 21:12:56 +00:00
tls
8e80d3d91e Fix return with mutex held bug in get routine -- thanks Jared. 2013-08-25 17:08:41 +00:00
matt
2e5f734e9f Add LIBISPRIVATE?=yes 2013-08-25 14:20:30 +00:00
reinoud
a5532a8260 Add the blockingnr determination for the -rom versions 2013-08-25 14:13:47 +00:00
christos
5f8c91aab5 provide the symbols sethostent.c in libc is missing. 2013-08-25 08:46:34 +00:00
kiyohara
866b7671df Move mvspi defines into sys/dev/marvell/files.discovery. 2013-08-25 07:08:37 +00:00
skrll
ec17d57576 Use UE_GET_XFERTYPE. No functional change. 2013-08-25 06:16:19 +00:00
matt
5fa3a11dc7 move a misplaced #endif 2013-08-25 06:15:06 +00:00
matt
74c41226fe add #define __HAVE_MD_SOFTINT_TRIGGER to <vax/types.h>
Only define a function prototype for softint_trigger
if __HAVE_MD_SOFTINT_TRIGGER is undefined.
2013-08-25 03:08:56 +00:00
matt
3835e94cd4 struct cpu_info; 2013-08-24 15:42:29 +00:00
skrll
ff838f0d39 Fix typo in DPRINTF 2013-08-24 08:21:55 +00:00
skrll
b0df966c1e Whitespace. 2013-08-24 07:12:12 +00:00
matt
7d46aa31f0 Add IEEE 754 versions of
fixdfdi.c fixsfdi.c fixunsdfdi.c fixunssfdi.c
	floatdidf.c floatdisf.c floatundidf.c floatundisf.c
These don't FP so are well suited to softfloat implementation.
2013-08-24 00:51:48 +00:00
matt
0138e9e53f Deal with lack of VFP. 2013-08-23 18:11:47 +00:00
matt
809bd8df99 Add IEEE 754 versions of __float{,}disf which use no floating point. 2013-08-23 17:41:03 +00:00
christos
392c50b0c0 regen 2013-08-23 16:50:24 +00:00
christos
684703fca4 PR/48150: Noriyuki Koizumi: Add support for Intel Centrino Advanced-N 6235
Wi-Fi controller
2013-08-23 16:49:53 +00:00
matt
0ec618ca27 Add __floatunsi{sd}f for IEEE754.
Unlike the quad versions, these don't use floating point.
2013-08-23 16:01:35 +00:00
matt
33c3e61a87 Make use of vfp_used_p condition on FPU_VFP 2013-08-23 14:39:50 +00:00
rmind
878c5e5866 - npf_cache_ip: re-fetch IPv6 header since nbufs might have been reallocated.
- npf_cache_all: clear NBUF_DATAREF_RESET since npf_cache_ip() handles it.
2013-08-23 10:37:03 +00:00
matt
7b311c01b4 When decide to coalesce segments, if the d_cache isn't coherent also make
sure the VA is contiguous as well.
2013-08-23 07:15:08 +00:00
matt
e3d0dbfe65 Add no config netbsd-sd0a 2013-08-23 06:31:49 +00:00
matt
3484198d87 add PUFFS/putter
add vnd
add atapibus
disable options DEBUG
2013-08-23 06:31:09 +00:00
matt
24c580b056 Add a SYSTEM_DEP for the ramdisk on INSTALL kernels. 2013-08-23 06:25:02 +00:00
matt
ba0705f794 Avoid a few instructions since we know CURLWP is in %r13 2013-08-23 06:24:21 +00:00
matt
66cb4c16d4 Simplify since we know curlwp is in %r13 2013-08-23 06:22:32 +00:00
matt
b183b3ef97 Get rid of MDLWP_USED{FPU,VEC} 2013-08-23 06:19:46 +00:00
matt
ba182b7aab Fix kern_softint.c errors (tested with WALNUT & EV64260) 2013-08-23 06:18:14 +00:00
matt
2efaa8f8fb Reap LWP_VFPUSED and use PCU internal tracking.
Add bool vfp_used_p(void);
2013-08-23 05:22:01 +00:00
matt
cc666660e5 More evbarmv5 fixes. 2013-08-23 05:02:46 +00:00
matt
bea0daea2f If we want unwind tables, defined __UNWIND_TABLES__ 1 2013-08-23 00:22:16 +00:00
martin
95493a6fed Re-add -fno-unwind-tables, otherwise eabi kernels fail to boot (bug in
objcopy?)
2013-08-22 20:03:15 +00:00