openbsd
8 years agofix negated address matching where the address list consists of a
djm [Tue, 23 Aug 2016 03:24:10 +0000 (03:24 +0000)]
fix negated address matching where the address list consists of a
single negated match, e.g. "Match addr !192.20.0.1"

Report and patch from Jakub Jelen. bz#2397 ok dtucker@

8 years agofix matching for pattern lists that contain a single negated match,
djm [Tue, 23 Aug 2016 03:22:49 +0000 (03:22 +0000)]
fix matching for pattern lists that contain a single negated match,
e.g. "Host !example"

report and patch from Robin Becker. bz#1918 ok dtucker@

8 years agosync
deraadt [Mon, 22 Aug 2016 22:48:14 +0000 (22:48 +0000)]
sync

8 years agoFix two small bugs in the new reset API code.
kettenis [Mon, 22 Aug 2016 22:06:59 +0000 (22:06 +0000)]
Fix two small bugs in the new reset API code.

8 years agoTwo minor fixes from dilyan palauzov.
nicm [Mon, 22 Aug 2016 20:07:58 +0000 (20:07 +0000)]
Two minor fixes from dilyan palauzov.

8 years agoRemove unused code and definitions.
kettenis [Mon, 22 Aug 2016 19:43:49 +0000 (19:43 +0000)]
Remove unused code and definitions.

8 years agoThis code served us well for many years,
schwarze [Mon, 22 Aug 2016 19:41:18 +0000 (19:41 +0000)]
This code served us well for many years,
but we are unlikely to reactivate it; espie@ agrees.
The new code is in /usr/src/usr.bin/mandoc/mandocdb.c.

8 years agoUse new clock API.
kettenis [Mon, 22 Aug 2016 19:38:42 +0000 (19:38 +0000)]
Use new clock API.

8 years agoUse new clock API to manipulate clocks.
kettenis [Mon, 22 Aug 2016 19:31:27 +0000 (19:31 +0000)]
Use new clock API to manipulate clocks.

8 years agoAdd support for the gmac clock.
kettenis [Mon, 22 Aug 2016 19:29:32 +0000 (19:29 +0000)]
Add support for the gmac clock.

8 years agoAdd an API to set the clock frequency.
kettenis [Mon, 22 Aug 2016 19:28:27 +0000 (19:28 +0000)]
Add an API to set the clock frequency.

8 years agoMove all the platform-specific code into a new function sxiehci_attach_phy()
kettenis [Mon, 22 Aug 2016 18:31:07 +0000 (18:31 +0000)]
Move all the platform-specific code into a new function sxiehci_attach_phy()
making use of pinctrl, clock and reset APIs where appropriate.

8 years agoAdd support for the usb clock. Also implements reset signal support.
kettenis [Mon, 22 Aug 2016 18:18:35 +0000 (18:18 +0000)]
Add support for the usb clock.  Also implements reset signal support.

8 years agoAdd a reset signal API alongside the clock API.
kettenis [Mon, 22 Aug 2016 18:16:58 +0000 (18:16 +0000)]
Add a reset signal API alongside the clock API.

8 years agoUse a reachable next hop for test 13, which make it fail as it should.
mpi [Mon, 22 Aug 2016 17:43:29 +0000 (17:43 +0000)]
Use a reachable next hop for test 13, which make it fail as it should.

8 years agoVarious clean up and reorganisation of the connection info handling code.
jsing [Mon, 22 Aug 2016 17:12:35 +0000 (17:12 +0000)]
Various clean up and reorganisation of the connection info handling code.
In particular, rename tls_free_conninfo() to tls_conninfo_free() and make
it a real free function. Rename tls_get_conninfo() to
tls_conninfo_populate() and have it allocate the struct tls_conninfo (after
freeing any existing one).

ok beck@

8 years agoStick with the usual 'if NULL return NULL' idiom.
jsing [Mon, 22 Aug 2016 17:08:10 +0000 (17:08 +0000)]
Stick with the usual 'if NULL return NULL' idiom.

ok beck@

8 years agoSync counters now that ifa_ifwithroute() no longer uses ifa_ifwithnet().
mpi [Mon, 22 Aug 2016 16:55:14 +0000 (16:55 +0000)]
Sync counters now that ifa_ifwithroute() no longer uses ifa_ifwithnet().

8 years agoUse rtalloc(9) instead of ifa_ifwithnet() to find an interface
mpi [Mon, 22 Aug 2016 16:53:59 +0000 (16:53 +0000)]
Use rtalloc(9) instead of ifa_ifwithnet() to find an interface
when adding a route to gateway to ensure a most specific match.

This makes "# route add"  coherent to "# route get" even with
p2p interfaces.  Fix a problem reported by Mart Tõnso.

This also fix rttest20 after the introduction of RTF_CACHED.

ok vgross@

8 years agoReplace "union sockunion" with "union sockaddr_union" which is also
millert [Mon, 22 Aug 2016 16:27:00 +0000 (16:27 +0000)]
Replace "union sockunion" with "union sockaddr_union" which is also
used in the kernel.  This makes it possible to remove the casts to
"struct sockaddr *" when calling networking syscalls.
OK jsing@ jca@

8 years agoWhen trying to edit an existing database with makewhatis(8) -d or -u
schwarze [Mon, 22 Aug 2016 16:12:52 +0000 (16:12 +0000)]
When trying to edit an existing database with makewhatis(8) -d or -u
but reading the database fails, report the full path to the database
on standard error, and mention that the database is automatically
recreated from scratch.
Suggested by espie@.

8 years agoWhen running into a mandoc.db(5) file still using the obsolete
schwarze [Mon, 22 Aug 2016 16:05:56 +0000 (16:05 +0000)]
When running into a mandoc.db(5) file still using the obsolete
format based on SQLite 3, say so in words that mortals can
understand rather than babbling about hex magic.
Suggested by espie@.

8 years agoSync refcount with recent change.
mpi [Mon, 22 Aug 2016 16:03:03 +0000 (16:03 +0000)]
Sync refcount with recent change.

8 years agoMake the ``rt_gwroute'' pointer of RTF_GATEWAY entries immutable.
mpi [Mon, 22 Aug 2016 16:01:52 +0000 (16:01 +0000)]
Make the ``rt_gwroute'' pointer of RTF_GATEWAY entries immutable.

This means that no protection is needed to guarantee that the next hop
route wont be modified by CPU1 while CPU0 is dereferencing it in a L2
resolution functions.

While here also fix an ``ifa'' leak resulting in RTF_GATEWAY being always
invalid.

dlg@ likes it, inputs and ok bluhm@

8 years agoDo not dereference ``rt->rt_ifa'' after calling rtfree(9).
mpi [Mon, 22 Aug 2016 15:37:23 +0000 (15:37 +0000)]
Do not dereference ``rt->rt_ifa'' after calling rtfree(9).

This could result in a use after free if the route entry was holding
the last reference of the address descriptor.

ok jca@, bluhm@, claudio@

8 years agoEnable SNI support in httpd(8).
jsing [Mon, 22 Aug 2016 15:02:18 +0000 (15:02 +0000)]
Enable SNI support in httpd(8).

ok reyk@

8 years agoBump TLS_API due to the addition of server side SNI functions.
jsing [Mon, 22 Aug 2016 14:58:26 +0000 (14:58 +0000)]
Bump TLS_API due to the addition of server side SNI functions.

8 years agoBump libtls minor due to the addition of symbols.
jsing [Mon, 22 Aug 2016 14:57:49 +0000 (14:57 +0000)]
Bump libtls minor due to the addition of symbols.

8 years agoProvide an API that enables server side SNI support - add the ability to
jsing [Mon, 22 Aug 2016 14:55:59 +0000 (14:55 +0000)]
Provide an API that enables server side SNI support - add the ability to
provide additional keypairs (via tls_config_add_keypair_{file,mem}()) and
allow the server to determine what servername the client requested (via
tls_conn_servername()).

ok beck@

8 years agoCreate contexts for server side SNI - these include the additional SSL_CTX
jsing [Mon, 22 Aug 2016 14:51:37 +0000 (14:51 +0000)]
Create contexts for server side SNI - these include the additional SSL_CTX
that is required for certificate switching with libssl and the certificate
itself so that we can match against the subject and SANs. Hook up the
servername callback and switch to the appropriate SSL_CTX if we find a
matching certificate.

ok beck@

8 years agoshorten the pkcs8 text;
jmc [Mon, 22 Aug 2016 13:39:52 +0000 (13:39 +0000)]
shorten the pkcs8 text;

8 years agoUse the new clock API.
kettenis [Mon, 22 Aug 2016 11:24:45 +0000 (11:24 +0000)]
Use the new clock API.

8 years agoImplement interfaces to disable clocks and add interfaces that enable or
kettenis [Mon, 22 Aug 2016 11:23:54 +0000 (11:23 +0000)]
Implement interfaces to disable clocks and add interfaces that enable or
disable all clocks for a device.  The latter interfaces are useful for
devices that have multiple clocks that don't have specific names/purposes
such as sxiahci(4).

8 years agoCall csignal() and selwakeup() from a KERNEL_LOCK'd task.
mpi [Mon, 22 Aug 2016 10:40:36 +0000 (10:40 +0000)]
Call csignal() and selwakeup() from a KERNEL_LOCK'd task.

This will allow us make bpf_tap() KERNEL_LOCK() free.

Discussed with dlg@ and input from guenther@

8 years agoSizes for free(9) from David Hill.
mpi [Mon, 22 Aug 2016 10:33:22 +0000 (10:33 +0000)]
Sizes for free(9) from David Hill.

8 years agoRefactor the uio to mbuf code out of sosend and start to make use of
claudio [Mon, 22 Aug 2016 10:23:42 +0000 (10:23 +0000)]
Refactor the uio to mbuf code out of sosend and start to make use of
MCLGETI and large mbuf clusters. This should speed up local connections
a fair bit. OK dlg@ and bluhm@ (after reverting the M_WAIT change on the
cluster allocation)

8 years agoUse the new clock API to get the clock frequency from the device tree and the
kettenis [Mon, 22 Aug 2016 09:37:27 +0000 (09:37 +0000)]
Use the new clock API to get the clock frequency from the device tree and the
actual hardware that controls the clock.  This gets rid of all the hardcoded
clock frequencies for specific hardware.

Tested by jsg@ on the BBB, mglocker@ on the C.H.I.P. and myself on the
Banana Pi and Raspberry Pi 3.

ok jsg@

8 years agoAdd code to enable the pll6 clock.
kettenis [Mon, 22 Aug 2016 06:48:38 +0000 (06:48 +0000)]
Add code to enable the pll6 clock.

8 years agofix typos
tedu [Mon, 22 Aug 2016 06:45:12 +0000 (06:45 +0000)]
fix typos

8 years agosync
deraadt [Mon, 22 Aug 2016 05:21:10 +0000 (05:21 +0000)]
sync

8 years agoSorry Andrew and Luke, I'm pretty sure we deleted your IRIX and VMS code.
deraadt [Mon, 22 Aug 2016 04:33:07 +0000 (04:33 +0000)]
Sorry Andrew and Luke, I'm pretty sure we deleted your IRIX and VMS code.

8 years agoBefore pmap7.c rev 1.35 and pmap.h rev 1.44 DMA'able memory with the
jsg [Mon, 22 Aug 2016 01:41:59 +0000 (01:41 +0000)]
Before pmap7.c rev 1.35 and pmap.h rev 1.44 DMA'able memory with the
BUS_DMA_COHERENT flag was mapped as device memory which does not use the
store buffer.  It is now mapped as normal inner and outer non-cacheable
which does.

While we drain the cpu store buffer for this case, on cortex a9 systems we
also need to explicitly drain the PL310 L2's store buffer.  With PL310
revisions r3p2 and later this is done automatically after being present in
the store buffer for 256 cycles.  On i.MX6 PL310 is rev r3p1 which does
not have this behaviour.  This issue is i.MX6 errata ERR055199 and PL310
errata 769419.

This change restores io performance with a usb flash drive attached to
my cubox.  Raw reads go from 3 MB/s to 19 MB/s for example.

Based on code written by patrick@ some time ago.
ok kettenis@ patrick@

8 years agoUse generic clock API to enable the module clock.
kettenis [Sun, 21 Aug 2016 23:02:32 +0000 (23:02 +0000)]
Use generic clock API to enable the module clock.

8 years agoAdd support for all the ahb, apb0 and apb1 clock gating devices on sun4i,
kettenis [Sun, 21 Aug 2016 23:01:57 +0000 (23:01 +0000)]
Add support for all the ahb, apb0 and apb1 clock gating devices on sun4i,
sun5i and sun7i.

8 years agoImplement some fundamental clocks using the new clock framework.
kettenis [Sun, 21 Aug 2016 21:39:59 +0000 (21:39 +0000)]
Implement some fundamental clocks using the new clock framework.

ok patrick@

8 years agoAdd a minimal clock "framework". Build it on armv7.
kettenis [Sun, 21 Aug 2016 21:38:05 +0000 (21:38 +0000)]
Add a minimal clock "framework".  Build it on armv7.

ok patrick@

8 years agointroduce a union of sockaddr types and eliminate a lot of casts.
tedu [Sun, 21 Aug 2016 21:23:48 +0000 (21:23 +0000)]
introduce a union of sockaddr types and eliminate a lot of casts.

8 years agobugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;
schwarze [Sun, 21 Aug 2016 21:10:52 +0000 (21:10 +0000)]
bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;
OK jca@ martijn@ millert@

8 years agoMake lease_value() unescape quoted strings. To be fully compliant, we
halex [Sun, 21 Aug 2016 19:22:15 +0000 (19:22 +0000)]
Make lease_value() unescape quoted strings. To be fully compliant, we
should unvis() it too, but I think this is enough, at least for now.

ok krw@

8 years agotweak previous
rpe [Sun, 21 Aug 2016 18:47:01 +0000 (18:47 +0000)]
tweak previous

OK halex, krw

8 years agoFix a pasto in a comment.
kettenis [Sun, 21 Aug 2016 14:41:51 +0000 (14:41 +0000)]
Fix a pasto in a comment.

8 years agofix obvious typo in the .Dt section number
schwarze [Sun, 21 Aug 2016 13:31:21 +0000 (13:31 +0000)]
fix obvious typo in the .Dt section number

8 years agoThere are three callers of update_vattr(). Two of them don't use the
natano [Sun, 21 Aug 2016 09:23:33 +0000 (09:23 +0000)]
There are three callers of update_vattr(). Two of them don't use the
updated struct vattr afterwards, so the call can be removed. Remove both
calls and the function itself, inlining the last remaining call.

ok millert

8 years agoWhen detecting the console on attach test fa_node and stdout_node not fa_reg
jsg [Sun, 21 Aug 2016 07:08:46 +0000 (07:08 +0000)]
When detecting the console on attach test fa_node and stdout_node not fa_reg
and pl011consaddr as the pl011consaddr addresss may have been translated.
Set cn_dev at this point as well as in com(4) and imxuart(4) to handle cases
where stdout is not serial0.

8 years agoRemove the remains of a workaround to get GIC ranges for exynos.
jsg [Sun, 21 Aug 2016 06:47:47 +0000 (06:47 +0000)]
Remove the remains of a workaround to get GIC ranges for exynos.

Exynos differed from everything else by not having GIC at fixed offsets
from PERIPHBASE.  Now that ampintc/GIC attaches using FDT we get the ranges
out of the FDT instead of using offsets from PERIPHBASE.

8 years agoDynamically attach exuart using the FDT.
jsg [Sun, 21 Aug 2016 06:36:23 +0000 (06:36 +0000)]
Dynamically attach exuart using the FDT.

8 years agoChange sleep from crazy backoff to one second of sleep between retries
beck [Sun, 21 Aug 2016 03:26:04 +0000 (03:26 +0000)]
Change sleep from crazy backoff to one second of sleep between retries
ok deraadt@

8 years agosync
deraadt [Sat, 20 Aug 2016 23:05:50 +0000 (23:05 +0000)]
sync

8 years agoFix indentation.
kettenis [Sat, 20 Aug 2016 21:08:16 +0000 (21:08 +0000)]
Fix indentation.

8 years agoArgh, commit from the wrong tree. Revert previous commit.
kettenis [Sat, 20 Aug 2016 21:07:07 +0000 (21:07 +0000)]
Argh, commit from the wrong tree.  Revert previous commit.

8 years agoFix indentation.
kettenis [Sat, 20 Aug 2016 21:04:18 +0000 (21:04 +0000)]
Fix indentation.

8 years agoProperly initialize the message parser. fix a regression where the
eric [Sat, 20 Aug 2016 20:47:08 +0000 (20:47 +0000)]
Properly initialize the message parser. fix a regression where the
message headers would not be altered as expected.

ok gilles@

8 years agoadd "armv7" to the Dt line;
jmc [Sat, 20 Aug 2016 20:23:29 +0000 (20:23 +0000)]
add "armv7" to the Dt line;

8 years agoSync connect_wait() example with its real usage in ftp(1).
millert [Sat, 20 Aug 2016 20:22:28 +0000 (20:22 +0000)]
Sync connect_wait() example with its real usage in ftp(1).

8 years agoUse connect(2) + a connect_wait() function instead of connect_sync(),
millert [Sat, 20 Aug 2016 20:18:42 +0000 (20:18 +0000)]
Use connect(2) + a connect_wait() function instead of connect_sync(),
similar to the example in connect(2).  OK tedu@

8 years agosximmc(4)
kettenis [Sat, 20 Aug 2016 19:53:31 +0000 (19:53 +0000)]
sximmc(4)

8 years agoEnable sximmc(4).
kettenis [Sat, 20 Aug 2016 19:44:02 +0000 (19:44 +0000)]
Enable sximmc(4).

8 years agoIncrease MSGBUFSIZE to 8 pages.
kettenis [Sat, 20 Aug 2016 19:42:55 +0000 (19:42 +0000)]
Increase MSGBUFSIZE to 8 pages.

ok deraadt@

8 years agoVarious improvements to make this work better.
kettenis [Sat, 20 Aug 2016 19:41:14 +0000 (19:41 +0000)]
Various improvements to make this work better.

Restrict the block size to 512 bytes for now.  While Linux and NetBSD seem
to allow larger block sizes (4096 and 8192 bytes) I'm getting errors wth an
older 2G Sandisk SD card that advertises support for 1024 byte blocks.

Implement switching between the 400 KHz "discovery" clock and the 25 MHz
"operational" clock.  Enable the right clock based on the SD/MMC "unit"
number.  Don't advertise highspeed capabilities for now as I'm not sure
how the adjust the clock timing in that case.

Fix the way we calculate the number of blocks and the size of the total data
transfer to matc what we do in sdhc(4).

8 years agoAdd some code to set the SD/MMC clocks.
kettenis [Sat, 20 Aug 2016 19:34:44 +0000 (19:34 +0000)]
Add some code to set the SD/MMC clocks.

8 years agoDon't set MSGBUFSIZE here such that the setting in <machine/param.h> takes
kettenis [Sat, 20 Aug 2016 19:31:01 +0000 (19:31 +0000)]
Don't set MSGBUFSIZE here such that the setting in <machine/param.h> takes
effect.  This will let us have different settings on armv7 and zaurus and
also unconfuses this developer.

ok tom@, deraadt@

8 years agoFormat string fixes in debug code: need %llx to print 64 bit values
stefan [Sat, 20 Aug 2016 19:22:05 +0000 (19:22 +0000)]
Format string fixes in debug code: need %llx to print 64 bit values

ok kettenis@ deraadt@ mlarkin@

8 years agoDeclare all _asr_* debug functions as hidden.
jca [Sat, 20 Aug 2016 19:08:57 +0000 (19:08 +0000)]
Declare all _asr_* debug functions as hidden.

Reported by & similar diff by guenther@ some time ago, ok eric@

8 years agoalready in v2 according to http://www.tuhs.org/Archive/PDP-11/Distributions/research...
schwarze [Sat, 20 Aug 2016 18:44:07 +0000 (18:44 +0000)]
already in v2 according to tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf
patch from Sevan Janiyan <venture37 at geeklan dot co dot uk>

8 years agoWhen a mismatching end macro occurs while at least two nested blocks
schwarze [Sat, 20 Aug 2016 17:58:09 +0000 (17:58 +0000)]
When a mismatching end macro occurs while at least two nested blocks
are open, all except the innermost open block got a bogus MDOC_ENDED
marker, in some situations triggering segfaults down the road
which tb@ found with afl(1).
Fix the logic error by figuring out up front whether an end macro
has a matching body, and if it hasn't, don't mark any blocks as broken.

8 years agoWhen scanning upwards for a column list to put a .Ta macro in,
schwarze [Sat, 20 Aug 2016 15:58:16 +0000 (15:58 +0000)]
When scanning upwards for a column list to put a .Ta macro in,
ignore body end markers of lists breaking other blocks.
Fixing a logical error that caused a NULL deref found by tb@ with afl(1).

8 years agoReplace bcmmuart(4) with com(4).
kettenis [Sat, 20 Aug 2016 15:44:04 +0000 (15:44 +0000)]
Replace bcmmuart(4) with com(4).

ok patrick@

8 years agoTweak timer debug output.
jca [Sat, 20 Aug 2016 15:10:18 +0000 (15:10 +0000)]
Tweak timer debug output.

-RA timer on em0 is set to 16:0
+RA timer on em0 is set to 16.0s

8 years agoMove counters from u_quad_t to uint64_t.
jca [Sat, 20 Aug 2016 15:05:52 +0000 (15:05 +0000)]
Move counters from u_quad_t to uint64_t.

Printing is already done with %llu/(unsigned long long) casts.

8 years agofsdb(8) sucks in and is pledged by fsck(8). Since it uses editline(3),
tb [Sat, 20 Aug 2016 15:04:21 +0000 (15:04 +0000)]
fsdb(8) sucks in and is pledged by fsck(8).  Since it uses editline(3),
add a special case for the missing "rpath" and "tty" promises.
Issue found and initial analysis by Jan Stary, thanks!

ok deraadt

8 years agoIf a column list starts with implicit rows (that is, rows without .It)
schwarze [Sat, 20 Aug 2016 14:43:39 +0000 (14:43 +0000)]
If a column list starts with implicit rows (that is, rows without .It)
and roff-level nodes (e.g. tbl or eqn) follow, don't run into an
assertion.  Instead, wrap the roff-level nodes in their own row.
Issue found by tb@ with afl(1).

8 years agoRemove obsolete sxiuart(4) header.
patrick [Sat, 20 Aug 2016 14:35:28 +0000 (14:35 +0000)]
Remove obsolete sxiuart(4) header.

Noticed by mglocker@.

8 years agosxiuart(4) has been replaced with com(4).
patrick [Sat, 20 Aug 2016 13:24:38 +0000 (13:24 +0000)]
sxiuart(4) has been replaced with com(4).

ok kettenis@

8 years agoshorten pkcs7 text;
jmc [Sat, 20 Aug 2016 12:54:49 +0000 (12:54 +0000)]
shorten pkcs7 text;

8 years agoCorrectly enter a mapping as writable if no "page modified" emulation
kettenis [Sat, 20 Aug 2016 12:36:59 +0000 (12:36 +0000)]
Correctly enter a mapping as writable if no "page modified" emulation
is needed.

ok visa@, patrick@

8 years agoFiguring out the clock frequency used for a com(4) device on armv7 is hard.
kettenis [Sat, 20 Aug 2016 10:41:54 +0000 (10:41 +0000)]
Figuring out the clock frequency used for a com(4) device on armv7 is hard.
Avoid doing so for the early console and instead rely on the firmware to
set up the right baud rate and such.

ok visa@, millert@, jsg@

8 years agoPush 'field changed' guards into 'change field' functions;
procter [Sat, 20 Aug 2016 08:34:30 +0000 (08:34 +0000)]
Push 'field changed' guards into 'change field' functions;
optimise pf_patch_32(); simplify pf_match_addr()
OK mikeb@

8 years agoRetire pf_translate_ap()
procter [Sat, 20 Aug 2016 08:31:36 +0000 (08:31 +0000)]
Retire pf_translate_ap()
OK mpi@ mikeb@

8 years agoshorten the passwd text; ok jsing
jmc [Sat, 20 Aug 2016 07:56:09 +0000 (07:56 +0000)]
shorten the passwd text; ok jsing

8 years agomove mem.c to hppa directory like every other arch.
tedu [Fri, 19 Aug 2016 20:48:36 +0000 (20:48 +0000)]
move mem.c to hppa directory like every other arch.
(probably landed in dev because it has support for this viper thing,
but i like consistency for the /dev/null parts.)
ok kettenis

8 years agoMake the FSR encoding strings match the ARMv7 ARM.
kettenis [Fri, 19 Aug 2016 19:07:37 +0000 (19:07 +0000)]
Make the FSR encoding strings match the ARMv7 ARM.

8 years agoSeems we need to hold the PHY into reset a little bit longer. Without it
kettenis [Fri, 19 Aug 2016 18:25:53 +0000 (18:25 +0000)]
Seems we need to hold the PHY into reset a little bit longer.  Without it
Theo's Cubox-i comes up without working Ethernet after a warm boot.

ok deraadt@

8 years agoAdd support for arm and enable on armv7.
kettenis [Fri, 19 Aug 2016 17:39:37 +0000 (17:39 +0000)]
Add support for arm and enable on armv7.

8 years agoStart using to XN flag to enforce that mappings without PROT_EXEC are
kettenis [Fri, 19 Aug 2016 17:31:04 +0000 (17:31 +0000)]
Start using to XN flag to enforce that mappings without PROT_EXEC are
non-executable.

ok visa@, deraadt@

8 years agoMark device memory as execute-never to prevent a speculative instruction fetch
kettenis [Fri, 19 Aug 2016 15:47:27 +0000 (15:47 +0000)]
Mark device memory as execute-never to prevent a speculative instruction fetch
to access it.

8 years agomake smtpd less verbose at startup
eric [Fri, 19 Aug 2016 15:35:08 +0000 (15:35 +0000)]
make smtpd less verbose at startup

ok gilles@ sunil@ jung@ millert@

8 years agoMap kernel .text read-only.
kettenis [Fri, 19 Aug 2016 15:31:10 +0000 (15:31 +0000)]
Map kernel .text read-only.

Spotted by deraadt@

8 years agoAdjust the definitions of L1_S_COHERENT_v7, L2_L_COHERENT_v7 and
kettenis [Fri, 19 Aug 2016 14:05:23 +0000 (14:05 +0000)]
Adjust the definitions of L1_S_COHERENT_v7, L2_L_COHERENT_v7 and
L2_S_COHERENT_v7 such that bus_dmamap_sync(9) avoids unnecessary cache
flushes again for DMA'able memory mapped with the BUS_DMA_COHERENT flag.
I broke this in pmap7.c rev 1.35.

ok tom@

8 years agoUse Access Flag to do page reference emulation.
kettenis [Fri, 19 Aug 2016 13:56:08 +0000 (13:56 +0000)]
Use Access Flag to do page reference emulation.

ok visa@

8 years agoupdate man pages now that login.conf uses auto rounds
danj [Fri, 19 Aug 2016 10:57:24 +0000 (10:57 +0000)]
update man pages now that login.conf uses auto rounds

better wording/ok sthen@ ok jmc@