summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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@
2016-05-18Accept cnmac as a valid rootdev from uboot on octeon.Visa Hankala
Example: rootdev=/dev/cnmac0 Patch from Kim Lidstrom, thanks!
2016-05-17Fix a few more warnings such that this compiles again.Mark Kettenis
2016-05-17Enable -Wall -Werror. Fix warnings uncovered by this.Mark Kettenis
Set board IDs for i.IMX6 boards based on the "compatible" property of the root node for now to ease the transition to full FDT support in the kernel.
2016-05-17Add support for passing an FDT. The bootloader will update the "bootargs"Mark Kettenis
property of the "/chosen" node to pass arguments to the kernel.
2016-05-17Enable the pcf8523 RTC on Hummingboard and CuBox-i.Mark Kettenis
ok patrick@
2016-05-16Make this actually work. This makes the following changes:Mark Kettenis
- Move most of the bus setup stuff to imxiic_i2c_acquire_bus() - Move the teardown to imxiic_i2c_release_bus() - Always clear the IIF flag - Allow cmd and data for write operations. Some i2c operations are still rejected, but this works well enough to use pcfrtc(4). ok patrick@
2016-05-16Use OF_is_compatible(9) here.Mark Kettenis
ok patrick@
2016-05-16POSTREAD needs to flush the D-cache since speculative loads might (and do)Mark Kettenis
bring back cache lines after a PREREAD. Eliminates random data corruption on my CuBox-i4Pro. ok jsg@
2016-05-16Implement membar(9) for armv5. As there are no barrier instructions inJonathan Gray
armv5 this is just a "memory" clobber hint to the compiler. ok kettenis@
2016-05-16fix perms (previous cleanup commit introduced part of an unrelated change)Mike Larkin