summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2016-05-27Remove the non ELF macrosTheo de Raadt
ok millert
2016-05-27Modify com_init to match the com driver initializaiton, and addBob Beck
a short delay so that baud rate changes on the console have a chance of working. Lots of help from theo on this one. Makes my serial console on my APU work for an unattended reboot instead of hanging when garbage is echoed to the tty. ok deraadt@
2016-05-24Drop a redundant set of FPA pool definitions.Visa Hankala
2016-05-24Reduce the size of gather buffers and allocate more of them to makeVisa Hankala
better use of memory. This should prevent gather buffer starvation on currently supported systems. Discussed with mpi@
2016-05-24Try to defragment overly long mbuf chains.Visa Hankala
ok mpi@
2016-05-24Fix previous.Visa Hankala
2016-05-24remove some ancient debugging codeMike Larkin
ok deraadt@
2016-05-23Place a cpu-dependent trap/illegal instruction over the remainder of theTheo de Raadt
sigtramp page, so that it will generate a nice kernel fault if touched. While here, move most of the sigtramps to the .rodata segment, because they are not executed in the kernel. Also some preparation for sliding the actual sigtramp forward (will need some gdb changes) ok mlarkin kettenis
2016-05-23repair typo of sizeof in copyin()Theo de Raadt
2016-05-23Pass the device node to ia_cookie so we can pick it up in the i2c driver.Marcus Glocker
ok deraadt kettenis
2016-05-23remove the function pointer from mbufs. this memory is shared with dataTed Unangst
via unions, and we don't want to make it easy to control the target. instead an integer index into an array of acceptable functions is used. drivers using custom functions must register them to receive an index. ok deraadt
2016-05-23Print the name from the corresponding FDT node to make identifying simplebus(4)Mark Kettenis
instances easier. ok jsg@, patrick@
2016-05-23Fix shutdown sequence.Marcus Glocker
2016-05-23Some of our fan scaling calculations with the muK temperature unit aboveMarcus Glocker
59 degC require temporary values larger than 32bit signed. Therefore bump those involved variables to int64_t and replace imin/imax with ulmin/ulmax to get proper results.
2016-05-23build armv7 efibootJonathan Gray
2016-05-23install into mdecJonathan Gray
2016-05-23Change openprom into a pseudo-device, because not all arm platformsTheo de Raadt
will have it. This is a bit of a hack. Maybe it should attach off mainbus as a proper fake device, but that would have more tendrils.. checked by jsg
2016-05-21Implement openprom(4) for armv7.Mark Kettenis
ok deraadt@
2016-05-21Dynamically attach imxiic(4) and use the FDT to enumerate devices on i2cMark Kettenis
busses. Users of the CuBox-i and Hummingboard now need to boot with an FDT to see the RTC. ok jsg@, patrick@
2016-05-21Make the TX path of cnmac(4) MP-safe and add some ifq oactive logic.Visa Hankala
Feedback from dlg@, ok mpi@
2016-05-21panic() if an incoming packet does not consist of one buffer. ThisVisa Hankala
makes the number of buffers visible.
2016-05-21Copy dtb files to miniroots and install disk. Increase the ramdisk sizeJonathan Gray
and force long filenames on the first mount of fat 16 filesystems so this works. U-boot scripts have not yet been changed to load these files. ok kettenis@
2016-05-21hand-massage sendsig() and sys_sigreturn() to be much more similarTheo de Raadt
2016-05-21hand-massage sendsig() and sys_sigreturn() to be much more similarTheo de Raadt
2016-05-21hand-massage sendsig() and sys_sigreturn() to be much more similar.Theo de Raadt
ok guenther kettenis
2016-05-20Add compatible string to board id mappings for almost all of the otherJonathan Gray
board ids we match on. ok patrick@
2016-05-20Add a workaround for software reset described in the TI docs where weJonathan Gray
have to poll for software reset bits to be set after writing before polling for them to clear. This seems to resolve problems with ommmc sometimes not attaching properly with recent u-boot versions. Adapted from FreeBSD svn rev 275950. ok kettenis@
2016-05-20Ooops, fix the OpenBSD tag.Marcus Glocker
2016-05-20Hook up smu(4) to the thermal management framework.Marcus Glocker
ok kettenis
2016-05-20Add a thermal management framework for macppc which controls the fan speedMarcus Glocker
based on the temperature sensor values. A driver can register it fans or temperature sensors there. Ported from FreeBSD. ok deraadt kettenis
2016-05-20Change the identification string to "nxp,pcf8523" as this is what is storedMark Kettenis
in the FDT.
2016-05-20Attempt to allocate 32MB at the lowest address that is aligned on a 256MBMark Kettenis
border. Our kernel currently relies on being loaded at the start of physical memory. Hopefully this algorithm achieves that. In the future I hope to make it possible to load the kernel at any 256MB aligned border such that the algorithm works even if the lowest 32MB are not available.
2016-05-20Please int3 guards around unused debug splx versions so we can stopTheo de Raadt
paying attention to those specific aligns. ok mlarkin
2016-05-20Set "openbsd.bootduid" property of "/chosen" to the DUID of the boot disk.Mark Kettenis
ok patrick@, jsg@
2016-05-20For FDT-based boots, look for a "openbsd,bootduid" property of the /chosenMark Kettenis
node. If it is present, copy its value into the bootduid variable for DUID-based boot disk selection. ok patrick@, jsg@
2016-05-20split the ACPI resume trampoline into code and data pages, and protectMike Larkin
with proper permissions. Same treatment was done on amd64 last year, i386 is catching up. This diff has been in snaps for a few days, no regressions reported. ok deraadt@
2016-05-20add init_mainbus() hooks for the other armv7 platformsJonathan Gray
2016-05-19Make fdt_node_add_property() behave like fdt_node_set_property() if theMark Kettenis
property already exists.
2016-05-19Fix the previous commit which made work queue entries get released tooVisa Hankala
early. octeon_eth_recv() will release them in case of packet drop.
2016-05-19Disable dynamic short buffering to make all RX data land on buffersVisa Hankala
taken from the packet data pool.
2016-05-19Remove the PHYTEC phyFLEX support code, patrick says he no longerJonathan Gray
has the hardware for the eval kit. ok patrick@
2016-05-19Match compatible strings for utilite which identifies as "cm-fx6" inJonathan Gray
fdt/u-boot, and nitrogen6x which shares a board id with sabre lite but has a different compatible string. ok patrick@ kettenis@
2016-05-19Use OF_is_compatible(9). Simplifies the code and should make pci withinMark Kettenis
a guest domain on a Fujitsu M10 work.
2016-05-19Implement OF_is_compatible(9).Mark Kettenis
2016-05-18Introduce a per-platform init_mainbus() hook that can be used to attachMark Kettenis
platform-specific devices to mainbus before we start walking the FDT. ok patrick@
2016-05-18Save and restore 'gbr' register when enter/leaving the kernel, and usePhilip Guenther
it for the TCB pointer. Eliminate __cerror. "looks good" kettenis@, testing and ok deraadt@
2016-05-18Remove unused probe function.Mark Kettenis
ok patrick@
2016-05-18tabs vs spacesMike Larkin
2016-05-18add a check for the acpi trampoline data page to match the code checkMike Larkin
already there.
2016-05-18Split i386 mp hatch trampoline into code and data pages, and protect eachMike Larkin
with proper W^X policy. The same thing was done for amd64 late last year, catching i386 up now. Diff has been in snaps for a few days with no reported fallout. ok deraadt@