summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-08Normalize the received prefixes.Renato Westphal
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@
2016-08-08Fixup incorrect format specification bugs spotted by jsg@Mike Belopuhov
2016-08-08/tmp and /var/tmp are the same, consistently use the former in bothIgor Sobrado
build/recover and documentation. ok millert@, tb@, martijn@ and schwarze@
2016-08-08Mapping non-cachable memory as cachable and subsequently changing the mappingMark Kettenis
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@
2016-08-08Execute address hooks in the update case.Martin Pieuchot
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.
2016-08-08Implement mmc power sequencing; makes the sdo interface on the cubox-i workMark Kettenis
and see the BCM4330 wireless (for which we don't have a driver yet). ok jsg@
2016-08-08ARMv7 data caches are "effectively" PIPT. This means there is in generalMark Kettenis
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@
2016-08-08Fix previous. Obvously the condition is reversed.YASUOKA Masahiko
2016-08-08Split ofcconn into switch part and connection part to make the switchYASUOKA Masahiko
part be able to have multiple connections. ok reyk.
2016-08-07Make iwm(4) automagically recover from fatal firmware errors by leaving theStefan Sperling
interface marked UP and scheduling the init task. Matches iwn(4) behaviour.
2016-08-07Since we have kbind(2), we don't need -znow to use -zrelroPhilip Guenther
ok kettenis@
2016-08-07If an output section is skipped because of a constraint, then skip itPhilip Guenther
when generating the link map output (-M) too ok kettenis@
2016-08-07Use the device tree to lookup the address of the ARM control logic and removeMark Kettenis
some debug crap that I accidentally committed.
2016-08-07Add the Raspberry Pi 2/3 devices here as well.Mark Kettenis
Spotted by patrick@
2016-08-07Initial support for Raspberry Pi 2/3. All the hard work done by patrick@, IMark Kettenis
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.
2016-08-07whitespaceReyk Floeter
2016-08-07Define VXLAN_VNI_UNSET and VXLAN_VNI_MAX instead of using magic numbers.Reyk Floeter
No functional change.
2016-08-07Update online manual path to man.openbsd.org.Theo Buehler
ok espie
2016-08-07Update the link for the getentropy(2) manual to man.openbsd.org/Theo Buehler
ok deraadt@
2016-08-07As with csu, alpha passes &_DYNAMIC to _reloc_alpha_got(), so justPhilip Guenther
save that and pass it to _dl_boot_bind() too
2016-08-07Teach i386 to pass &_DYNAMIC to _dl_boot_bind()Philip Guenther
2016-08-07Teach mips64 to pass &_DYNAMIC to _dl_boot_bind()Philip Guenther
mips64be testing by deraadt@
2016-08-07hahahah: amd64 has been passing &_DYNAMIC to _dl_boot_bind() forPhilip Guenther
*149 months*
2016-08-07Flip the #ifdef logic: amd64, arm, i386, and mips64 are the only archsPhilip Guenther
using the #else case
2016-08-07Teach mips64 to pass &_DYNAMIC to _dl_boot_bind().Philip Guenther
mips64be testing by deraadt@
2016-08-07alpha already calculates &_DYNAMIC for the _reloc_alpha_got() call, soPhilip Guenther
save that and pass it to _dl_boot_bind() too
2016-08-07Teach i386 to pass &_DYNAMIC to _dl_boot_bind()Philip Guenther
2016-08-07Psych: amd64 has been passing &_DYNAMIC to _dl_boot_bind() for 19 monthsPhilip Guenther
2016-08-07Flip the #ifdef logic: amd64, i386, and mips64 were the only static PIEPhilip Guenther
archs using the #else case
2016-08-07Add XOR cookies for lr and sp. Stop saving/restoring r12 to/from the jmpbuf.Philip Guenther
Switch from calling obsolete sig{block,setmask} to directly using the sigprocmask syscall. ok deraadt@ kettenis@
2016-08-07add $OpenBSD$ tagsJonathan Matthew
2016-08-06syncTheo de Raadt
2016-08-06reset timeout to null when reloopingTed Unangst
2016-08-06Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmpPhilip Guenther
Eliminate pointless use of PIC_SYM() Split out DEFS.h from SYS.h like some other archs ok kettenis@ deraadt@
2016-08-06Always allocate intrhand with M_WAITOK.Patrick Wildt
Requested by and ok kettenis@
2016-08-06Always allocate intrhand with M_WAITOK.Patrick Wildt
Requested by and ok kettenis@
2016-08-06Implement interrupt controller functionality in the i.MX6 GPIOPatrick Wildt
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@
2016-08-06Extend the interrupt controller API with a disestablish functionality.Patrick Wildt
This will be helpful for interrupt combiner that need to re-establish their main interrupt when their interrupt priorities change. ok kettenis@
2016-08-06Switch imx over to the generic pinctrl API.Mark Kettenis
ok patrick@
2016-08-06Build ofw_pinctrl.o and ofw_gpio.o on armv7. The latters here from theMark Kettenis
generic arm files list. There is no point in building it on armish or zaurus. ok patrick@
2016-08-06Add a generic pinctrl "framework".Mark Kettenis
ok patrick@
2016-08-06Put page tables in normal cachable memory on armv7. Check if the MMU walksMark Kettenis
the page tables coherently and also skip flushing modified ptes out of the cache in that case. Speeds up building a kernel with a factor of two on Cortex-A9 (tested by me) and Cortex-A8 (tested by mglocker@). ok patrick@
2016-08-06Add more tests for better code coverage:Theo Buehler
What happens if begin and end are reversed? What if they are equal? While there, add a few comments on the purpose of the tests.
2016-08-06If you see code like this, you know something's quite wrongTheo Buehler
(present in some form since r1.1, still present in r1.31): 229 case 013: 230 if (randomize) 231 begin = BEGIN_DEF; 232 else if (reps == 0) 233 errx(1, "Must specify begin if reps == 0"); 234 begin = ender - reps * s + s; Add two tests that check for the intended behavior.
2016-08-06Add support for IPv6 tunnel endpoints. This currently only works forReyk Floeter
unicast mode, multicast is not yet supported. ifconfig vxlan0 tunnel fd00::1 fd00::2 Roughly based on an earlier diff by goda@ OK yasuoka@
2016-08-06Fix multicast mode (destination is a multicast IP): the BCAST andReyk Floeter
MCAST flags have to be cleared from the mbuf after decapsulating packets. This fixes tunneled broadcast packets, eg. ARP. It used to work before the input path was changed the flags got cleared later in the stack. OK yasuoka@
2016-08-06Rework ampintc's interrupt disestablish code to make it actually doPatrick Wildt
its job. Recalculate the mask after the handler is taken from the list to properly set the new prioritization. ok kettenis@
2016-08-06Dynamically attach intc(4) using the FDT and switch omap/am335xJonathan Gray
drivers that use the FDT over to the FDT interrupt establish API. ok kettenis@
2016-08-06Disable edma(4). It isn't currently used and is getting in the way ofJonathan Gray
future changes as it establishes an interrupt but hasn't been converted to attach with the fdt. ok kettenis@
2016-08-06Add PageGrain bits.Visa Hankala