Commit Graph

234861 Commits

Author SHA1 Message Date
pooka
280b06dac2 "extern int hz" was written in a very aesthetically pleasing way in this
file, but let's just be happy with the sys/kernel.h style of writing it.
2015-04-16 10:08:59 +00:00
pooka
6ee4aeae8e Accept 0 size for -d type=reg, it grows dynamically anyway.
(though perhaps there should be some way to limit that)
2015-04-16 10:05:43 +00:00
mrg
ebfb2877de make some DEBUG code in pmap_clear_reference() UP-only 2015-04-16 08:58:44 +00:00
ozaki-r
a1c877a9db Fix racy bridge_delete_member
It can be called from bridge_ioctl_del and bridge_clone_destroy with
a same bridge member (bif) at the same time. We have to prevent
that happens.

Pointed out by riastradh@
2015-04-16 08:54:15 +00:00
mrg
f0a309f213 remove HAVE_GCC=45 fragment. 2015-04-16 08:38:36 +00:00
ozaki-r
cefb9995f4 Remove garbage undef 2015-04-16 06:50:16 +00:00
mrg
1d0520b606 install as bozohttpd/bozohttpd.8 as well as httpd. 2015-04-16 02:32:33 +00:00
rodent
8619e445df Adding more. 2015-04-16 01:07:24 +00:00
matt
5fa3f85bd0 Make setsoftast take a cpu_info * 2015-04-15 21:26:47 +00:00
mrg
2603e0673f remove various HAVE_GCC=45 fragments. 2015-04-15 19:13:46 +00:00
matt
def2f02ad6 Add separate IPI routines for IPI_AST and IPI_KPREEMPT. 2015-04-15 15:45:06 +00:00
matt
ed932c2b6f define __HAVE_PREEMPTION 2015-04-15 15:44:19 +00:00
riastradh
428ae67203 Put the lock error info in the panicstr so ddb can get at it. 2015-04-15 14:41:17 +00:00
riastradh
8f010f576c Release the glock on VOP_GETPAGES failure.
Tripped over by nick@'s failing disk, missing unlock in error branch
discovered by jmcneill@.
2015-04-15 14:39:24 +00:00
matt
c488bc320d Remove FAST_FPE code 2015-04-15 13:22:50 +00:00
riastradh
691129c8c5 KASSERT x then y, not x && y, to give more specific errors. 2015-04-15 13:02:16 +00:00
hsuenaga
c6d25b5b2b add L2 cache write eviction buffer sync barrier 2015-04-15 12:11:31 +00:00
hsuenaga
95e00c8bb4 clean up cpufuncs of CPU_PJ4B.
PJ4B is a ARMv7 compatible CPU, so most of cpufuncs are just redundant.
we need funcs for:
  - Marvell specific registers
  - workaround of errata
  - and Marvell specific L2 cache maintainance
if I/O coherency fabric is enabled(option AURORA_IO_CACHE_COHERENCY),
probaly we don't need to maintain L2 cache by software.
2015-04-15 10:52:18 +00:00
hsuenaga
7a326516ba implement L2 cache maintenance operations of ARMADA XP.
the L2 cahce maintenance operations are defined on SoC internal registers.
2015-04-15 10:40:36 +00:00
hsuenaga
a7d5f1c231 lookup clock frequencies of ARMADA 370 correctly. 2015-04-15 10:30:42 +00:00
hsuenaga
c3635de7de add u-boot argument parser for Marvell ARMADA XP/370.
use 'ethaddr' and 'eth1addr' in u-boot argument to setup MAC address of mvgbe.
2015-04-15 10:15:40 +00:00
ozaki-r
e952648134 Use LIST_FOREACH_SAFE
We have to use LIST_FOREACH_SAFE because LIST_REMOVE is used
inside the loop through encap_remove.
2015-04-15 08:47:28 +00:00
justin
6324ab4097 On big endian machines needs to include sys/endian.h for le32dec
Mainly affects cross builds on big endian; tested on FreeBSD mips
and Linux ppc.
2015-04-15 08:31:05 +00:00
nonaka
a9b6bcb09c Register iwm(4) with pmf(9).
Patch from Pierre Pronchery.
2015-04-15 05:40:48 +00:00
ozaki-r
73c17c4a13 Replace DIAGNOSTIC & panic with KASSERT/KASSERTMSG 2015-04-15 03:38:50 +00:00
ozaki-r
dcfb08075f Add $NetBSD$ at the top of the file 2015-04-15 03:32:23 +00:00
christos
d6eaf99167 Coverity CID 1264915, Via FreeBSD (Xin Li)
When reading in the original file name from gzip header, we read
in PATH_MAX + 1 bytes from the file.  In r281500, strrchr() is
used to strip possible path portion of the file name to mitigate
a possible attack.  Unfortunately, strrchr() expects a buffer
that is NUL-terminated, and since we are processing potentially
untrusted data, we can not assert that be always true.

Solve this by reading in one less byte (now PATH_MAX) and
explicitly terminate the buffer after the read size with NUL.
2015-04-15 02:29:12 +00:00
jmcneill
6c00453054 __HAVE_PREEEMPTION -> __HAVE_PREEMPTION 2015-04-14 22:36:53 +00:00
riastradh
786bf0b470 Forgot commit: Move another <sys/rndsource.h> to where it belongs. 2015-04-14 21:09:48 +00:00
riastradh
56d3242969 Include <sys/rndsource.h> where it is actually used.
I had removed <sys/rnd.h> from files that didn't mention anything of
the rnd(9) API.  But they included other files which assumed
<sys/rnd.h> had already been included.
2015-04-14 20:32:35 +00:00
bouyer
80bc374bef Note DMA support for sdhc on beaglebone 2015-04-14 19:41:38 +00:00
bouyer
75ac5055c8 Add the edma controller, and enable DMA for sdhc0 and sdhc1 2015-04-14 18:45:57 +00:00
bouyer
9fe03010cf Add support for DMA transfers. From Jared D. McNeill, with final debug by me.
With this I can get nearly 20MB/s from my sdcard on the BB black at 1Ghz
(not bad for a 50Mhz 4-bits bus), and still 15MB/s on the BB white at
low speed (275Mhz).
2015-04-14 18:45:25 +00:00
bouyer
2ab6d4b9bd Ops, remove empty files that should not be there. 2015-04-14 18:38:27 +00:00
bouyer
529684c049 Add a driver for the Enhanced Direct Memory Access controller found
in the AM335x SoC. Written by Jared D. McNeill, with some final debug
by me.
Supports only DMA (not QDMA) yet, and there's no support for DMA event
matrix yet (this means that only primary DMA events can be used)
2015-04-14 18:37:43 +00:00
bouyer
1478a901ec Add a new SDHC_FLAG, SDHC_FLAG_EXTDMA_DMAEN, which request that the
SDHC_DMA_ENABLE bit be set in the command, even if we're using an
external DMA engine. Needed by the upcoming DMA support for AM335x
(beaglebone).
2015-04-14 18:34:29 +00:00
christos
9552b16b76 mention yacc requirement for acpica 2015-04-14 14:18:59 +00:00
riastradh
ee3e1f931f Omit needless variable. 2015-04-14 14:18:57 +00:00
riastradh
dd73799480 Omit needless rnd_wakeup_readers. 2015-04-14 14:16:34 +00:00
riastradh
8ded945441 Centralize bookkeeping of rnd_initial_entropy.
It is not adjusted everywhere it should be, although the only places
it perhaps formally ought to be are places with questionable entropy
estimates in the first place.
2015-04-14 14:11:51 +00:00
christos
52f7cfdab7 use the newer skeleton file. 2015-04-14 14:08:36 +00:00
christos
dbd0ad548c - remove malloc/realloc casts.
- use YYINT instead of short.
2015-04-14 14:08:21 +00:00
riastradh
15aebae27c Make the softint cookies static. 2015-04-14 13:57:35 +00:00
riastradh
78c7cd3319 Fix rump build: rndpseudo_50.c now needed by kernel, not rnd device. 2015-04-14 13:32:34 +00:00
riastradh
72bd6b4bfa Group initialization of rnd_samples and rnd_global. 2015-04-14 13:26:58 +00:00
riastradh
eaea47613c Gather global pool and sources state into a cacheline-aligned struct. 2015-04-14 13:23:25 +00:00
riastradh
511c5fc9ff Omit unused rndpool_cv. 2015-04-14 13:15:36 +00:00
riastradh
0b9df2ad94 Move RND_EXTRACT_{ANY,GOOD} to rndpool.h whose API they are part of. 2015-04-14 13:14:20 +00:00
riastradh
c3178eae02 Make various things now private to kern_rndq.c static. 2015-04-14 13:12:33 +00:00
riastradh
b5cd74a06e Make rnd_getmore acquire rndpool_mtx itself. 2015-04-14 13:08:22 +00:00