summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-07-31Comment out non-crucial device drivers (xhci(4), wdc@pcmcia, and cd(4)Theo de Raadt
support. fd+xhci without ehci compat probably doesn't exist, and in the other cases alternatve install methods exist. This makes i386 floppies fit again after routing table changes.
2017-07-31Use unsigned long instead of uint32_t, which is the appropriate integerMark Kettenis
type for storing pointers in our universe. Avoids an implicit dependence on <sys/types.h>. ok tom@
2017-07-30clang (and newer gcc at high -O) are unaware that objects placed in strangeTheo de Raadt
sections, such as __attribute__((section(".openbsd.randomdata"))), may be non-zero. In combination with "const" or "static" the compiler becomes even more sure nothing can influence the object and assumes the value will be 0. A few optimizations later, a security requirement has been removed. Until a better annotation arrives in compilers, be warned: Do not mix const or static with these random objects, you won't get what you want. Spotted in a regression test by bluhm, long discussion with kettenis.
2017-07-30mark __inline functions which are not neccessarily used, with __unused.Theo de Raadt
ok espie florian kettenis
2017-07-30Use memcpy instead of casts to copy 8 bytes of data to avoid unalignedMark Kettenis
access. ok visa@, mpi@, deraadt@
2017-07-30Enable mpath support in the Allotment Routing Table (ART) on the ramdisk.Florian Obser
OK mpi
2017-07-30Switch installer to Allotment Routing Table (ART).Florian Obser
Prompted by a bugreport by naddy that IPv6 autoconfiguration is broken in the installer. OK mpi, "go for it" deraadt
2017-07-30Bump VM_PHYSSEG_MAX.Visa Hankala
2017-07-30Bump MAXCPUS on octeon.Visa Hankala
2017-07-30Define MAXCPUS per mips64 port.Visa Hankala
2017-07-30Add a driver for CIU3. Not quite finished yet, but good enough for now.Visa Hankala
2017-07-29Fix off-by-one in return value of efi_device_path_depth().Mark Kettenis
ok patrick@
2017-07-29Fix off-by-one in return value of efi_device_path_depth().Mark Kettenis
ok patrick@
2017-07-29Remove useless conditional before free().ians
ok mpi@
2017-07-29Add a bcmaux(4) driver that handles clocks and interrupts for theMark Kettenis
auxilliary UART. Makes serial console work with newer device trees. ok jsg@
2017-07-29Device trees for the Rasperry Pi are still in flux. Catch up with theMark Kettenis
latest ways to encode the MAC address for the onboard USB Ethernet. ok visa@
2017-07-29Goodbye, sys/dkbad.h, you lost your last friend when sparc was removed.Vadim Zhukov
Spotted and diff provided by Andrey Bolkonskiy <andrey0bolkonsky@gmail.com>, thanks! okay deraadt@
2017-07-29There is no RTC on the E300 boards.Visa Hankala
2017-07-29Replace a complex `if' condition with a list.Visa Hankala
OK pirofti@
2017-07-28Add some sanity length checks in VFS directory scan. This protectsAlexander Bluhm
us from bogus input from file systems like fuse. bug report Ilja Van Sprundel; OK deraadt@
2017-07-28Add a driver for the OCTEON SATA controller bridge.Visa Hankala
OK deraadt@, jasper@, kettenis@
2017-07-28Add a workaround that allows the use of sys/dev/fdt code on octeon.Visa Hankala
OK kettenis@
2017-07-28The read buffer size reported by the hardware can be up to 4095Alexander Bluhm
bytes. This would exceed the mbuf cluster size. Use larger clusters in this case. bug report Ilja Van Sprundel; OK deraadt@ stsp@
2017-07-28Add an error argument to rtm_send() instead of rerolling it insideMartin Pieuchot
rtdeletemsg(). ok bluhm@
2017-07-28Allow SIOCGIFDESCR with "route" promise in preparation for pledging snmpd.rob
ok deraadt@ benno@
2017-07-27Use variable edge masks (again).Ulf Brosziewski
The properties of edge areas will be more consistent even though in some cases the driver remains in the dark about the exact coordinate limits.
2017-07-27Initialize pools with correct sizes.Martin Pieuchot
This was safe because `struct drm_i915_gem_object' is bigger than the other two. ok kettenis@
2017-07-27Export RTAX_IFP, RTAX_IFA and RTAX_LABEL to userland in rtdeletemsg().Martin Pieuchot
Reduce differences with rtm_miss(). ok claudio@, bluhm@
2017-07-27For pf the anchor is a C string so ensure that the value passed in via ioctlClaudio Jeker
is correctly NUL terminated. Reported by Ilja Van Sprundel With and OK bluhm@
2017-07-27Stop doing an splsoftnet()/splx() dance inside the NET_LOCK().Martin Pieuchot
This will allow us to not carry a returned value when entering a critical section. ok bluhm@, visa@
2017-07-27Assert that the KERNEL_LOCK() is held prior to call csignal() andMartin Pieuchot
selwakeup(). ok bluhm@
2017-07-27Grab the KERNEL_LOCK() before calling sorwakeup().Martin Pieuchot
In the forwarding path, pf_test() is executed w/o KERNEL_LOCK() and in case of divert end up calling sowakup(). However selwakup() and csignal() are not yet ready to be executed w/o KERNEL_LOCK(). ok bluhm@
2017-07-27SEQ16_* macros weren't able to compare properly if one of the sequences isYASUOKA Masahiko
wrapped around. Fix them to cast the proper width of integer when comparison. found goda@
2017-07-26Consistantly use kp as the var name for struct keycb.Claudio Jeker
Suggested by and OK bluhm@ OK mpi@
2017-07-26Fix typo in comment, ok deraadt@anton
2017-07-26Do not add plain edge areas as default.Ulf Brosziewski
Given how the Synaptics models report min/max coordinates, adding "small" edge areas per default might consume too much space.
2017-07-26we_readmem() and ec_readmem() are inlined, but they can also be static.Theo de Raadt
2017-07-26uha_init_mscp() is unused.Theo de Raadt
2017-07-25fallback on _BIF properly when _BIX exists and returns a packageJoshua Stein
successfully but has an unexpected length, as on the X1C gen 5 tested by naddy
2017-07-25The LINK_STATE_IS_UP() macro considers LINK_STATE_UNKNOWN as up.Alexander Bluhm
So the em(4) driver never got out of that state. Better compare the new link state value with the old one, like other drivers do. bug report Matthias Pitzl; OK deraadt@
2017-07-25Enable dwdog(4) such that Rockchip RK3288 devices can reboot.Mark Kettenis
2017-07-25Add dwdog(4), a driver for the Synopsys Designware watchdog timer integratedMark Kettenis
on (for example) the Rockchip RK3288 SoC.
2017-07-25Add rkclock(4), rkgrf(4), rkpinctrl(4) and rkgpio(4). This makes OpenBSDMark Kettenis
run on the ASUS Tinker Board with working SD-card and (almost) working network.
2017-07-25The Cortex-A17 TRM explicitly says that there is an intermediate tableMark Kettenis
walk cache and that its cache entries are associated with an ASID. Our armv7 pmap doesn't use ASIDs and we only ever insert "global" page table entries which match (and get flushed) regardless of the ASID. The current ASID is specified vy the CONTEXTIDR register, which is initialized to some "unknown" value. And on my hardware that value isn't zero! So the intermediate table walk cache entries are tagged with this unknown value. But our TLB flushes are done with ASID 0. This means that the intermediate table walk cache entries are never flushed because the ASID doesn't match. As a result the hardware may look at the wrong page table page when looking up a translation. So initialize CONTEXTIDR to zero before we initialize the first level page table pointer, flush the TLB and enable the MMU. Fixes the hangs previously seen on Cortex-A12/A17. ok patrick@
2017-07-25change -Os to -Oz all around the treeRobert Nagy
clang optimizes better for size with -Oz so use that as a default to avoid overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os. ok kettenis@
2017-07-25remove -Wa,-n from CMACHFLAGS as clang's internal assembler does not support itRobert Nagy
ok kettenis@
2017-07-25rework octuctl and its children to attach via fdtJonathan Matthew
ok visa@
2017-07-25Print CPU type as we do on arm64. This is how ARM prints revisions in itsMark Kettenis
documentation. ok patrick@, tom@
2017-07-25Remove leftovers of a past softintr mechanism.Visa Hankala
OK mpi@, kettenis@
2017-07-24Add support for the AXP152 which has a shutdown control register that isMark Kettenis
compatible with the AXP209. Makes the Olimex A10s-OlinuXino-MICRO power down properly.