openbsd
8 years agoIf a .Bd display is on the one hand doomed to be deleted because
schwarze [Thu, 11 Aug 2016 10:46:27 +0000 (10:46 +0000)]
If a .Bd display is on the one hand doomed to be deleted because
it has no type, but is on the other hand breaking another block,
delete its end marker as well, or the end marker may remain behind
as an orphan, triggering an assertion in the terminal formatter.
Problem found by tb@ with afl(1).

8 years agofuse requires ufs_ihash.c
natano [Thu, 11 Aug 2016 09:30:57 +0000 (09:30 +0000)]
fuse requires ufs_ihash.c
ok mpi

8 years agoDynamically attach omgpio(4) using the FDT.
jsg [Thu, 11 Aug 2016 04:33:06 +0000 (04:33 +0000)]
Dynamically attach omgpio(4) using the FDT.

am335x has a compatible string of "ti,omap4-gpio" and has the same
offsets as omap4, so combine the omap4 and am335x cases when setting up
function pointers.

8 years agoBetween relro and previous RWX work, the __{got,plt}_{start,end} symbols
guenther [Thu, 11 Aug 2016 03:05:53 +0000 (03:05 +0000)]
Between relro and previous RWX work, the __{got,plt}_{start,end} symbols
are no longer needed by ld.so.  Move them to the m88k-specific list, as
it hasn't made the jump.

ok deraadt@

8 years agoDynamically attach omehci using the FDT.
jsg [Thu, 11 Aug 2016 01:53:18 +0000 (01:53 +0000)]
Dynamically attach omehci using the FDT.
ok kettenis@ patrick@

8 years agoUpdate moduli file.
dtucker [Thu, 11 Aug 2016 01:42:11 +0000 (01:42 +0000)]
Update moduli file.

8 years agoshuffle some code to make it more symmetrical.
dlg [Thu, 11 Aug 2016 01:32:31 +0000 (01:32 +0000)]
shuffle some code to make it more symmetrical.

no functional change.

8 years agoreplace abuse of the static map entries RB_ENTRY pointers with an SLIST
dlg [Thu, 11 Aug 2016 01:17:33 +0000 (01:17 +0000)]
replace abuse of the static map entries RB_ENTRY pointers with an SLIST

free static entries are kept in a simple linked list, so use SLIST
to make this obvious. the RB_PARENT manipulations are ugly and
confusing.

ok kettenis@

8 years agotake TASKQ_CANTSLEEP way from the softnet taskq.
dlg [Thu, 11 Aug 2016 00:58:22 +0000 (00:58 +0000)]
take TASKQ_CANTSLEEP way from the softnet taskq.

the big reason for this is to let us use rw locks in the network
stack, which is how at least two major efforts outside the tree
have approached making pf mpsafe.

this was discussed at length at n2k16. there was general agreement
that this is necessary for us to move smp work forward in the stack.

8 years agoThe ARMv7 ARM says that the TLB may hold translation table entries at any
kettenis [Thu, 11 Aug 2016 00:28:06 +0000 (00:28 +0000)]
The ARMv7 ARM says that the TLB may hold translation table entries at any
level of the translation table, including entries that point to further
levels of the tables.  This means that we have to do a TLB flush whenever
we invalidate an L1 slot too.  Doing so fixes the pmap_fault_fixup
issue on Cortex-A7 processors.

8 years agoAdd defines for the Access Flag as found on armv7. Fix definition of the
kettenis [Wed, 10 Aug 2016 22:28:51 +0000 (22:28 +0000)]
Add defines for the Access Flag as found on armv7.  Fix definition of the
non Global bit Small page desciptions.  iConsistently name the S-bit
Sharable in comments.

8 years agoShuffle armv7 access permission bits around to something that is compatible
kettenis [Wed, 10 Aug 2016 21:22:43 +0000 (21:22 +0000)]
Shuffle armv7 access permission bits around to something that is compatible
with setting the Access Flag Enable bit in the System Control Register.
The new settings mean that read-only userland pages are no longer writable
by the kernel, which is a good thing.  Set the Access Flag Enable bit.

ok patrick@

8 years agoauto-dope-slap: mips64 has 16K pages, not 4K. With that fixed, enable RELRO
guenther [Wed, 10 Aug 2016 20:54:35 +0000 (20:54 +0000)]
auto-dope-slap: mips64 has 16K pages, not 4K.  With that fixed, enable RELRO

Per feedback from kettenis@, Miod, and deraadt@, the padding between
text and rodata will be retained for consistency with other archs,
to minimize reliance on the R4000 EOP bug workaround, and to enable
possible future work.

ok deraadt@

8 years agoTeach readelf and objdump about the PT_OPENBSD_BOOTDATA section value.
guenther [Wed, 10 Aug 2016 20:46:08 +0000 (20:46 +0000)]
Teach readelf and objdump about the PT_OPENBSD_BOOTDATA section value.
Teach ld to access that and PT_GNU_RELRO in linker scripts.

ok deraadt@

8 years agoRemove the encrypted password length check. The admin should be
millert [Wed, 10 Aug 2016 20:30:34 +0000 (20:30 +0000)]
Remove the encrypted password length check.  The admin should be
able to put whatever they like in the encrypted password field,
regardless of whether it can be matched or not.  Having this check
just makes it harder to add new encrypted password functions.
This also fixes "usermode -Z" which was the impetus for the change.
OK benno@

8 years agoDon't deref NULL if the only child of the first .Sh is an empty
schwarze [Wed, 10 Aug 2016 20:16:43 +0000 (20:16 +0000)]
Don't deref NULL if the only child of the first .Sh is an empty
in-line macro, and don't printf("%s", NULL) if the first child
of the first .Sh is a macro; again found by tb@ with afl(1).
(No, you should never use macros in any .Sh at all, please.)

8 years agofix HISTORY; from Sevan Janiyan <venture37 at geeklan dot co dot uk>;
schwarze [Wed, 10 Aug 2016 19:46:43 +0000 (19:46 +0000)]
fix HISTORY; from Sevan Janiyan <venture37 at geeklan dot co dot uk>;
checked with http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1

8 years agomove armish and hppa64 down in the dropdown box; reminded by jmc@
schwarze [Wed, 10 Aug 2016 18:39:04 +0000 (18:39 +0000)]
move armish and hppa64 down in the dropdown box; reminded by jmc@

8 years agoshorten ecparam;
jmc [Wed, 10 Aug 2016 17:41:08 +0000 (17:41 +0000)]
shorten ecparam;

8 years agono more armish;
jmc [Wed, 10 Aug 2016 17:37:01 +0000 (17:37 +0000)]
no more armish;

8 years agoKill stale prototypes.
natano [Wed, 10 Aug 2016 16:12:13 +0000 (16:12 +0000)]
Kill stale prototypes.
ok deraadt millert stefan

8 years agoarmish handled some early-gen arm machines, which required tons of
deraadt [Wed, 10 Aug 2016 14:27:15 +0000 (14:27 +0000)]
armish handled some early-gen arm machines, which required tons of
workarounds.  Some of them will soon stand in the way of armv7.
Off to the attic you go.

8 years agoregression tests for mdoc_validate.c revisions 1.219 and 1.220
schwarze [Wed, 10 Aug 2016 13:10:17 +0000 (13:10 +0000)]
regression tests for mdoc_validate.c revisions 1.219 and 1.220

8 years agoDon't printf("%s", NULL) if .It has a macro as an argument
schwarze [Wed, 10 Aug 2016 12:29:02 +0000 (12:29 +0000)]
Don't printf("%s", NULL) if .It has a macro as an argument
in a list of a type where items don't takes arguments.
Issue found by tb@ with afl(1).

8 years agoWhen validating a .Bl list that defaults to -item for want of a type,
schwarze [Wed, 10 Aug 2016 12:04:57 +0000 (12:04 +0000)]
When validating a .Bl list that defaults to -item for want of a type,
don't let a subsequent -width access mdoc_argnames[] out of bounds.
Found by tb@ with afl(1).

8 years agofix previous; ffs_vinit() requires #ifdef _KERNEL to not break the
natano [Wed, 10 Aug 2016 11:33:01 +0000 (11:33 +0000)]
fix previous; ffs_vinit() requires #ifdef _KERNEL to not break the
sbin/fsck_ffs build. bad natano!
reported by naddy

8 years agoFix assertion failures caused by whitespace inside \o'' (overstrike)
schwarze [Wed, 10 Aug 2016 11:02:30 +0000 (11:02 +0000)]
Fix assertion failures caused by whitespace inside \o'' (overstrike)
sequences that jsg@ found with afl(1):
* Avoid writing \t\b in term.c.
* Handle trailing \b in term_ps.c.

8 years agoufs_vinit() should really be called ffs_vinit(); it's only called from
natano [Wed, 10 Aug 2016 08:04:57 +0000 (08:04 +0000)]
ufs_vinit() should really be called ffs_vinit(); it's only called from
ffs code.
ok mpi tedu

8 years agoext2fs only has one set of specops/fifoops
natano [Wed, 10 Aug 2016 07:53:02 +0000 (07:53 +0000)]
ext2fs only has one set of specops/fifoops
ok mpi tedu

8 years agoattach agtimer with fdt on RAMDISK as well
jsg [Wed, 10 Aug 2016 07:09:37 +0000 (07:09 +0000)]
attach agtimer with fdt on RAMDISK as well

8 years agoDynamically attach agtimer(4). Since agtimer(4) also provides the delay()
kettenis [Wed, 10 Aug 2016 06:51:57 +0000 (06:51 +0000)]
Dynamically attach agtimer(4).  Since agtimer(4) also provides the delay()
function for platforms that have it, rework the code a bit such that it can
be used before agtimer(4) attaches.  Introduce a new agtimer_init()
function that checks whether the CPU implements the Generic Timer feature
and switches to agtimer_delay() if that feature is present.  Call this
function from the generic platform initialization code.

ok jsg@

8 years agoOn armv7 we put the vector page up high and never have to bother switching it.
kettenis [Wed, 10 Aug 2016 06:46:36 +0000 (06:46 +0000)]
On armv7 we put the vector page up high and never have to bother switching it.
Remove the code to do so from cpuswitch().

ok guenther@

8 years agoCover your kid's remaining eye and lock up the pets for the great old ones
guenther [Wed, 10 Aug 2016 02:58:44 +0000 (02:58 +0000)]
Cover your kid's remaining eye and lock up the pets for the great old ones
have been disturbed: rework the linker script and then enable RELRO support
on all but mips64 (something something padding) and m88k (untested).
This extends the RO coverage from just .got and .cdtors to also include
.openbsd.randomdata, .jcr, .dynamic, and .data.rel.ro., and moves more
segments from the text section to the rodata section.  Depends on the
previous csu and ld.so work; reinstall those *before* rebuilding ld, or
just get a snapshot.

clues from kettenis
assistance testing and ok deraadt@

8 years agoXr vmx(4)
czarkoff [Tue, 9 Aug 2016 23:27:33 +0000 (23:27 +0000)]
Xr vmx(4)

"go for it" jmc@

8 years agosync
deraadt [Tue, 9 Aug 2016 23:16:26 +0000 (23:16 +0000)]
sync

8 years agoremove pointless csh placeholder files from /etc
halex [Tue, 9 Aug 2016 21:24:31 +0000 (21:24 +0000)]
remove pointless csh placeholder files from /etc

ok jung@ (some time ago) phessler@

8 years agoExpand the asynchronous connect information and move it out of
millert [Tue, 9 Aug 2016 17:34:06 +0000 (17:34 +0000)]
Expand the asynchronous connect information and move it out of
ERRORS and into a new second paragraph.  Adapted from NetBSD.
OK deraadt@ jmc@

8 years agotrim the ec text;
jmc [Tue, 9 Aug 2016 17:07:33 +0000 (17:07 +0000)]
trim the ec text;

8 years agoJust re-set the line speed when required. This fixes a serial console
mglocker [Tue, 9 Aug 2016 16:52:42 +0000 (16:52 +0000)]
Just re-set the line speed when required.  This fixes a serial console
hang seen on the allwinner,sun5i-r8.

ok kettenis

8 years agofix printf("%s", NULL);
schwarze [Tue, 9 Aug 2016 15:08:15 +0000 (15:08 +0000)]
fix printf("%s", NULL);
found while investigating an unrelated bug report from jsg@

8 years agoCheck xs->status for SCSI_CHECK even in underrun situations.
krw [Tue, 9 Aug 2016 15:04:34 +0000 (15:04 +0000)]
Check xs->status for SCSI_CHECK even in underrun situations.

Lets Bacula find the end of medium on LTO5 drive.

Reported & fix tested by Kor son of Rynar.

ok mikeb@ deraadt@

8 years agoThe page tables are cached now, and given the significant speedup, I
kettenis [Tue, 9 Aug 2016 13:13:51 +0000 (13:13 +0000)]
The page tables are cached now, and given the significant speedup, I
don't think we'll ever go back.  So let's ditch the code that tries to
check and patch up incorrect memory attributes.

Also realize that pmap_clean_page(pg, FALSE) doesn't do anything
anymore so remove those calls and drop the 2nd argument from
pmap_clean_page(pg, TRUE) calls.

Last but not least, get rid of pmap_pte_init_generic() here.  The only
useful thing it did was setting pmap_copy_page_func() and
pmap_zero_page_func().

This diff should not introduce any change in behaviour.

ok visa@

8 years agoWhen connect(2) is interrupted by a signal it continues asynchronously
millert [Tue, 9 Aug 2016 12:09:40 +0000 (12:09 +0000)]
When connect(2) is interrupted by a signal it continues asynchronously
and you need to do the same poll(2) dance as if the socket was
non-blocking.  Fixes a crash when the window is resized while
connecting.  OK deraadt@

8 years agoDocument that connect goes async when interrupted by signal.
millert [Tue, 9 Aug 2016 12:06:58 +0000 (12:06 +0000)]
Document that connect goes async when interrupted by signal.

8 years agoIn emacs incremental search mode (^R),
schwarze [Tue, 9 Aug 2016 11:04:46 +0000 (11:04 +0000)]
In emacs incremental search mode (^R),
make commands starting with the escape key (^[) work as documented.
Long-standing bug, this time reported by Dave minus Cohen dot com.
OK natano@ halex@

8 years agoTeach arm to pass &_DYNAMIC to _dl_boot_bind(); can optimize later in tree
guenther [Tue, 9 Aug 2016 03:58:35 +0000 (03:58 +0000)]
Teach arm to pass &_DYNAMIC to _dl_boot_bind(); can optimize later in tree

8 years agoWhen interrupted, connect() should leave the socket connecting in the
guenther [Tue, 9 Aug 2016 02:25:35 +0000 (02:25 +0000)]
When interrupted, connect() should leave the socket connecting in the
background, similar to a non-blocking socket.  Return EALREADY whenever
already connecting, not just for non-blocking sockets.  Fix from {Free,Net}BSD

Prompted by a report from Michael Reed (m.reed (at) mykolab.com)
ok millert@

8 years agoImprove error message for overlong ControlPath. ok markus@ djm@
dtucker [Mon, 8 Aug 2016 22:40:57 +0000 (22:40 +0000)]
Improve error message for overlong ControlPath.  ok markus@ djm@

8 years agoLook for a PT_GNU_RELRO section and, if present, mprotect that range
guenther [Mon, 8 Aug 2016 22:05:26 +0000 (22:05 +0000)]
Look for a PT_GNU_RELRO section and, if present, mprotect that range
instead of the [__got_start, __got_end) range.

Also, instead of mprotecting the [__plt_start, __plt_end) range,
just scan for sections which are both writable and executable and
mprotect them to read-only.  (This part was stolen from kettenis@)

ok kettenis@

8 years agoLook for a PT_GNU_RELRO section per object and, if present, mprotect that
guenther [Mon, 8 Aug 2016 21:59:20 +0000 (21:59 +0000)]
Look for a PT_GNU_RELRO section per object and, if present, mprotect that
range instead of the [__got_start, __got_end) range.
On many archs this will cover _DYNAMIC too, so move up the DT_DEBUG handling
to before relocations and the mprotect are done.

ok kettenis@

8 years agoUse exit(3) instead of _exit(2) in the child processes.
renato [Mon, 8 Aug 2016 21:44:00 +0000 (21:44 +0000)]
Use exit(3) instead of _exit(2) in the child processes.

Since recently the child processes call exec() after fork(), so they
should stop using _exit(2) and use exit(3) instead when shutting down.

Ok claudio@

8 years agoUse exit(3) instead of _exit(2) in the child processes.
renato [Mon, 8 Aug 2016 21:42:13 +0000 (21:42 +0000)]
Use exit(3) instead of _exit(2) in the child processes.

Since recently the child processes call exec() after fork(), so they should
stop using _exit(2) and use exit(3) instead when shutting down.

Ok claudio@

8 years agoSimplify shutdown process
renato [Mon, 8 Aug 2016 21:38:42 +0000 (21:38 +0000)]
Simplify shutdown process

On shutdown, there's no need to use kill(2) to kill the child
processes. Just closing the IPC sockets will make the children receive
an EOF, break out from the event loop and then exit.

This "pipe teardown" removes a PID reuse race condition, makes the code
simpler and allow us to remove "proc" from pledge.

OK and tweaks from claudio@

8 years agoMove the cpu_setup() call to the end of initarm(). On Cortex-A53 processors
kettenis [Mon, 8 Aug 2016 19:27:12 +0000 (19:27 +0000)]
Move the cpu_setup() call to the end of initarm().  On Cortex-A53 processors
atomic instructions don't work unless the data cache is enabled.  This happens
in cpu_setup(), but that gets currently called from cpu_startup() which runs
after a number of kernel subsystems have been initialized.  Since some of
these subsystems use locks, which need atomic instructions, we fault on
Cortex-A53.  Since at the end of initarm() we're done setting up the pmap
and initializing other low-level sense, calling cpu_setup() here makes much
more sense.

Remove setting up proc0paddr as well from cpu_startup(), since that already
happens in initarm().

Tested on zaurus by deraadt@.

ok jsg@, patrick@

8 years agotrim the dsaparam section; ok guenther
jmc [Mon, 8 Aug 2016 18:13:51 +0000 (18:13 +0000)]
trim the dsaparam section; ok guenther

8 years agoW^X violations are only permitted for binaries marked "wxneeded" on
deraadt [Mon, 8 Aug 2016 17:15:51 +0000 (17:15 +0000)]
W^X violations are only permitted for binaries marked "wxneeded" on
"wxallowed" filesystems.  mmap(2) & mprotect(2) now return ENOTSUP.
(To diagnose buggy programs, consider using sysctl kern.wxabort=1 and
looking at the coredumps)
ok kettenis tedu naddy

8 years agoCreate socket with SOCK_NONBLOCK instead of using fcntl() without the
rzalamena [Mon, 8 Aug 2016 16:52:15 +0000 (16:52 +0000)]
Create socket with SOCK_NONBLOCK instead of using fcntl() without the
proper flag handling.

ok reyk@

8 years agoHandle imsg_read() EAGAIN like the man page code example.
rzalamena [Mon, 8 Aug 2016 16:49:17 +0000 (16:49 +0000)]
Handle imsg_read() EAGAIN like the man page code example.

ok reyk@

8 years agorde and eigrpe should use exit(3) instead of _exit(2)
renato [Mon, 8 Aug 2016 16:48:53 +0000 (16:48 +0000)]
rde and eigrpe should use exit(3) instead of _exit(2)

Since recently these processes call exec() after fork(), so they should
stop using _exit(2) and use exit(3) instead when shutting down.

ok claudio@

8 years agoNormalize the received prefixes.
renato [Mon, 8 Aug 2016 16:45:51 +0000 (16:45 +0000)]
Normalize the received prefixes.

We need to use ldp_applymask() to normalize the received
prefixes. Example: 10.1.1.0/16 -> 10.1.0.0/16.

Additionally, stop using IANA's AF numbers in map->fec.prefix.af and use
AF_INET/AF_INET6 instead. This makes the code much simpler, use AF_IPV[46]
only when necessary (decoding/encoding prefixes).

ok claudio@

8 years agoFixup incorrect format specification bugs spotted by jsg@
mikeb [Mon, 8 Aug 2016 16:39:06 +0000 (16:39 +0000)]
Fixup incorrect format specification bugs spotted by jsg@

8 years ago/tmp and /var/tmp are the same, consistently use the former in both
sobrado [Mon, 8 Aug 2016 15:09:32 +0000 (15:09 +0000)]
/tmp and /var/tmp are the same, consistently use the former in both
build/recover and documentation.

ok millert@, tb@, martijn@ and schwarze@

8 years agoMapping non-cachable memory as cachable and subsequently changing the mapping
kettenis [Mon, 8 Aug 2016 14:47:52 +0000 (14:47 +0000)]
Mapping non-cachable memory as cachable and subsequently changing the mapping
to non-cachable is retarded.  Fix this by introducing PMAP_NOCACHE and
PMAP_DEVICE flags that can be or'ed into the physical address passed to
pmap_kenter(9), like we have on many of our other architectures.  This way we
can also properly distinguish between device memory and normal (non-cachable)
memory.

ok visa@

8 years agoExecute address hooks in the update case.
mpi [Mon, 8 Aug 2016 13:09:36 +0000 (13:09 +0000)]
Execute address hooks in the update case.

This matches what IPv4 is doing and unbreak carp(4) when the same
address is set twice, for example when running netstart(8) multiple
times.

Issue reported by and fix from Simon Mages.

8 years agoImplement mmc power sequencing; makes the sdo interface on the cubox-i work
kettenis [Mon, 8 Aug 2016 10:10:56 +0000 (10:10 +0000)]
Implement mmc power sequencing; makes the sdo interface on the cubox-i work
and see the BCM4330 wireless (for which we don't have a driver yet).

ok jsg@

8 years agoARMv7 data caches are "effectively" PIPT. This means there is in general
kettenis [Mon, 8 Aug 2016 09:06:47 +0000 (09:06 +0000)]
ARMv7 data caches are "effectively" PIPT.  This means there is in general
no need to clean and/or invalidate cached pages.  So remove most of the
cache cleaning and invalidation from the pmap.  We still need to synchronize
the instruction cache with the data cache in various places though.  And we
also need to make sure that we clean and invalidate when we make a page
non-cachable.

Tested by Daniel Bolgheroni, mglocker@ and jsg@. on Cortex-A8 and myself on
Cortex-A9.

ok visa@

8 years agoFix previous. Obvously the condition is reversed.
yasuoka [Mon, 8 Aug 2016 08:22:29 +0000 (08:22 +0000)]
Fix previous.  Obvously the condition is reversed.

8 years agoSplit ofcconn into switch part and connection part to make the switch
yasuoka [Mon, 8 Aug 2016 07:24:27 +0000 (07:24 +0000)]
Split ofcconn into switch part and connection part to make the switch
part be able to have multiple connections.

ok reyk.

8 years agoMake iwm(4) automagically recover from fatal firmware errors by leaving the
stsp [Sun, 7 Aug 2016 23:06:39 +0000 (23:06 +0000)]
Make iwm(4) automagically recover from fatal firmware errors by leaving the
interface marked UP and scheduling the init task. Matches iwn(4) behaviour.

8 years agoSince we have kbind(2), we don't need -znow to use -zrelro
guenther [Sun, 7 Aug 2016 20:00:39 +0000 (20:00 +0000)]
Since we have kbind(2), we don't need -znow to use -zrelro

ok kettenis@

8 years agoIf an output section is skipped because of a constraint, then skip it
guenther [Sun, 7 Aug 2016 19:59:07 +0000 (19:59 +0000)]
If an output section is skipped because of a constraint, then skip it
when generating the link map output (-M) too

ok kettenis@

8 years agoUse the device tree to lookup the address of the ARM control logic and remove
kettenis [Sun, 7 Aug 2016 18:43:17 +0000 (18:43 +0000)]
Use the device tree to lookup the address of the ARM control logic and remove
some debug crap that I accidentally committed.

8 years agoAdd the Raspberry Pi 2/3 devices here as well.
kettenis [Sun, 7 Aug 2016 18:00:53 +0000 (18:00 +0000)]
Add the Raspberry Pi 2/3 devices here as well.

Spotted by patrick@

8 years agoInitial support for Raspberry Pi 2/3. All the hard work done by patrick@, I
kettenis [Sun, 7 Aug 2016 17:46:36 +0000 (17:46 +0000)]
Initial support for Raspberry Pi 2/3.  All the hard work done by patrick@, I
just cleaned things up a bit.  Any bugs introduced in that process are
entirely mine.

This doesn't work yet.  But when it does, you'll need recent firmware from
the Raspberry Pi Foundation git repository at

  https://github.com/raspberrypi/firmware

The device tree for the Raspberry Pi is somewhat in flux as bits and pieces
to support the Raspberry Pi 2 and 3 are committed to the mainline Linux
kernel.

8 years agowhitespace
reyk [Sun, 7 Aug 2016 14:26:26 +0000 (14:26 +0000)]
whitespace

8 years agoDefine VXLAN_VNI_UNSET and VXLAN_VNI_MAX instead of using magic numbers.
reyk [Sun, 7 Aug 2016 13:49:12 +0000 (13:49 +0000)]
Define VXLAN_VNI_UNSET and VXLAN_VNI_MAX instead of using magic numbers.
No functional change.

8 years agoUpdate online manual path to man.openbsd.org.
tb [Sun, 7 Aug 2016 08:59:25 +0000 (08:59 +0000)]
Update online manual path to man.openbsd.org.

ok espie

8 years agoUpdate the link for the getentropy(2) manual to man.openbsd.org/
tb [Sun, 7 Aug 2016 03:27:21 +0000 (03:27 +0000)]
Update the link for the getentropy(2) manual to man.openbsd.org/

ok deraadt@

8 years agoAs with csu, alpha passes &_DYNAMIC to _reloc_alpha_got(), so just
guenther [Sun, 7 Aug 2016 03:05:23 +0000 (03:05 +0000)]
As with csu, alpha passes &_DYNAMIC to _reloc_alpha_got(), so just
save that and pass it to _dl_boot_bind() too

8 years agoTeach i386 to pass &_DYNAMIC to _dl_boot_bind()
guenther [Sun, 7 Aug 2016 03:03:44 +0000 (03:03 +0000)]
Teach i386 to pass &_DYNAMIC to _dl_boot_bind()

8 years agoTeach mips64 to pass &_DYNAMIC to _dl_boot_bind()
guenther [Sun, 7 Aug 2016 03:01:53 +0000 (03:01 +0000)]
Teach mips64 to pass &_DYNAMIC to _dl_boot_bind()

mips64be testing by deraadt@

8 years agohahahah: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for
guenther [Sun, 7 Aug 2016 02:59:27 +0000 (02:59 +0000)]
hahahah: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for
*149 months*

8 years agoFlip the #ifdef logic: amd64, arm, i386, and mips64 are the only archs
guenther [Sun, 7 Aug 2016 02:57:19 +0000 (02:57 +0000)]
Flip the #ifdef logic: amd64, arm, i386, and mips64 are the only archs
using the #else case

8 years agoTeach mips64 to pass &_DYNAMIC to _dl_boot_bind().
guenther [Sun, 7 Aug 2016 02:44:00 +0000 (02:44 +0000)]
Teach mips64 to pass &_DYNAMIC to _dl_boot_bind().

mips64be testing by deraadt@

8 years agoalpha already calculates &_DYNAMIC for the _reloc_alpha_got() call, so
guenther [Sun, 7 Aug 2016 02:34:52 +0000 (02:34 +0000)]
alpha already calculates &_DYNAMIC for the _reloc_alpha_got() call, so
save that and pass it to _dl_boot_bind() too

8 years agoTeach i386 to pass &_DYNAMIC to _dl_boot_bind()
guenther [Sun, 7 Aug 2016 02:30:55 +0000 (02:30 +0000)]
Teach i386 to pass &_DYNAMIC to _dl_boot_bind()

8 years agoPsych: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for 19 months
guenther [Sun, 7 Aug 2016 02:30:04 +0000 (02:30 +0000)]
Psych: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for 19 months

8 years agoFlip the #ifdef logic: amd64, i386, and mips64 were the only static PIE
guenther [Sun, 7 Aug 2016 02:28:12 +0000 (02:28 +0000)]
Flip the #ifdef logic: amd64, i386, and mips64 were the only static PIE
archs using the #else case

8 years agoAdd XOR cookies for lr and sp. Stop saving/restoring r12 to/from the jmpbuf.
guenther [Sun, 7 Aug 2016 02:02:57 +0000 (02:02 +0000)]
Add XOR cookies for lr and sp.  Stop saving/restoring r12 to/from the jmpbuf.
Switch from calling obsolete sig{block,setmask} to directly using the
sigprocmask syscall.

ok deraadt@ kettenis@

8 years agoadd $OpenBSD$ tags
jmatthew [Sun, 7 Aug 2016 00:21:57 +0000 (00:21 +0000)]
add $OpenBSD$ tags

8 years agosync
deraadt [Sat, 6 Aug 2016 21:21:05 +0000 (21:21 +0000)]
sync

8 years agoreset timeout to null when relooping
tedu [Sat, 6 Aug 2016 19:56:51 +0000 (19:56 +0000)]
reset timeout to null when relooping

8 years agoUse internal names for __errno, _memcpy, memset, and {,_}{set,long}jmp
guenther [Sat, 6 Aug 2016 19:16:09 +0000 (19:16 +0000)]
Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmp
Eliminate pointless use of PIC_SYM()
Split out DEFS.h from SYS.h like some other archs

ok kettenis@ deraadt@

8 years agoAlways allocate intrhand with M_WAITOK.
patrick [Sat, 6 Aug 2016 18:21:34 +0000 (18:21 +0000)]
Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@

8 years agoAlways allocate intrhand with M_WAITOK.
patrick [Sat, 6 Aug 2016 18:18:48 +0000 (18:18 +0000)]
Always allocate intrhand with M_WAITOK.

Requested by and ok kettenis@

8 years agoImplement interrupt controller functionality in the i.MX6 GPIO
patrick [Sat, 6 Aug 2016 18:12:13 +0000 (18:12 +0000)]
Implement interrupt controller functionality in the i.MX6 GPIO
driver.  This allows us to use to hook up the Ethernet interrupt
on the Nitrogen6x, SabreLite and WandBoard like it's described
in the device tree.

ok kettenis@

8 years agoExtend the interrupt controller API with a disestablish functionality.
patrick [Sat, 6 Aug 2016 17:25:14 +0000 (17:25 +0000)]
Extend the interrupt controller API with a disestablish functionality.
This will be helpful for interrupt combiner that need to re-establish
their main interrupt when their interrupt priorities change.

ok kettenis@

8 years agoSwitch imx over to the generic pinctrl API.
kettenis [Sat, 6 Aug 2016 17:18:38 +0000 (17:18 +0000)]
Switch imx over to the generic pinctrl API.

ok patrick@

8 years agoBuild ofw_pinctrl.o and ofw_gpio.o on armv7. The latters here from the
kettenis [Sat, 6 Aug 2016 17:16:13 +0000 (17:16 +0000)]
Build ofw_pinctrl.o and ofw_gpio.o on armv7.  The latters here from the
generic arm files list.  There is no point in building it on armish or
zaurus.

ok patrick@

8 years agoAdd a generic pinctrl "framework".
kettenis [Sat, 6 Aug 2016 17:12:34 +0000 (17:12 +0000)]
Add a generic pinctrl "framework".

ok patrick@