summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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
2016-05-16spaces -> tabsMike Larkin
2016-05-16default to int3 padding if we ever introduce ENTRY/NENTRY pads hereMike Larkin
ok deraadt@
2016-05-16place .globals further up, to reduce confusionTheo de Raadt
2016-05-16Pad end of code in the MP trampoline with int3 instead of 0x0 as it isMike Larkin
certain we don't want an intentional sled here either. ok deraadt@
2016-05-16Use int3 padding instead of nop in the ACPI resume trampoline, as it isMike Larkin
certain no intentional nop sled is required here. ok deraadt@
2016-05-15Implement TCB_{GET,SET} using PAL_{rd,wr}unique.Philip Guenther
Inline asm from NetBSD testing deraadt@
2016-05-15Give the 32-bit and 64-bit EFI boatloaders different names such that we canMark Kettenis
tell which one we're using. ok deraadt@, krw@
2016-05-15Map the ADMA2 descriptor table use BUS_DMA_COHERENT and add a missingMark Kettenis
bus_dmamap_sync(9). Doesn't really fix anything, but adding the missing sync makes the code more correct. Using BUS_DMA_COHERENT avoids some cache flushes.
2016-05-14Since GetTime() doesn't work on U-Boot, use timer events to simulate a clockMark Kettenis
that ticks at every second. This makes the boot prompt timeout work.
2016-05-14Move rpm read to a own function analog pwm read. No functional change.Marcus Glocker
ok kettenis
2016-05-14Fix typo; M_NOWAIT should be EX_NOWAIT. Fortunately this was harmless.Mark Kettenis
2016-05-14Add support for pwm fans.Marcus Glocker
ok kettenis
2016-05-14Handle boot options, and pass the boot device to the kernel. The boot deviceMark Kettenis
is currently hardcoded to be sd0. Still need to figure out how we will do proper boot device selection when we start using the FDT.
2016-05-14Make getsecs() return 0 if EFI doesn't tell us the time.Mark Kettenis
2016-05-14Tell the kernel where its symbols are.Mark Kettenis
2016-05-14Load the kernel at the address pre-allocated by the EFI bootloader.Mark Kettenis
2016-05-14Need some startup assembly code as well.Mark Kettenis
2016-05-14Initial stab at an EFI bootloader for armv7. Bits and pieces from FreeBSDMark Kettenis
and our amd64 EFI bootloader. The current code works on a 2GB CuBox-i, but probably not on anything else. It needs a u-boot with EFI loader support.
2016-05-14Return correct rpm values for all fans.Marcus Glocker
ok kettenis
2016-05-11delete SROP mitigation debug code; it worksTheo de Raadt
2016-05-11remove hppa64 port, which we never got going beyond broken single users.Theo de Raadt
hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
2016-05-11fix compile issues in MD sigreturn(2)Peter Hessler
OK deraadt@
2016-05-11fix sigcookie value, address was off due to trapframe nestingTheo de Raadt
notice by miod
2016-05-11crank to 6.0-betaTheo de Raadt
2016-05-11Add the sigcontext cookie clearing block, which was missed in the previousTheo de Raadt
commit.
2016-05-11Another attempt to make the mips64 pmap MP-safe. Now at leastVisa Hankala
pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) should be safe to use without the kernel lock. No objection from deraadt@
2016-05-11Move EFI header files to a location where they can be used on otherMark Kettenis
architectures besides amd64. ok deraadt@, krw@
2016-05-10SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookieTheo de Raadt
inside the sigcontext. sigreturn(2) checks syscall entry was from the exact PC addr in the (per-process ASLR) sigtramp, verifies the cookie, and clears it to prevent sigcontext reuse. not yet tested on landisk, sparc, *88k, socppc. ok kettenis
2016-05-10The hppa trapframe PC is marked (in the low two bits) to indicate aTheo de Raadt
userland addressspace address. Those bits should be masked to callers of the PROC_PC() macro. ok kettenis
2016-05-10Fill Xen hypercall page with int3's like the hypervisor does.Mike Belopuhov
Idea from deraadt@ and mlarkin@.
2016-05-092nd identical definition of PROC_PC macro is not neededTheo de Raadt
from miod
2016-05-08Add DMA support. It uses ADMA2 "Internal DMA" that is compatible with theMark Kettenis
SD Host Controller standard. ok patrick@
2016-05-07Add chvgpio(4), a driver for the GPIO controllers found on Intel's Cherry ViewMark Kettenis
SoC.
2016-05-07Flush page (through the direct map) before mapping it into AGP. FixesMark Kettenis
artifacts seen in X on some G5 machines. Unfortunately not enough to fix G4 machines. With help from Marcus Glocker. ok mpi@
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
2016-05-07Stop printing the "ioapic0: misconfigured as apic..." messages. BasicallyMark Kettenis
all modern machines are "misconfigured". We simply have to configure them and it is pointless to complain.
2016-05-07set the high speed enable bit if the timing isn't SDMMC_TIMING_LEGACYJonathan Gray
ok patrick@ kettenis@
2016-05-07add support for changing the bus width and set the 4-bit mode capabilityJonathan Gray
ok patrick@ kettenis@
2016-05-06Reset the bus width back to 1-bit when resetting the host. Makes imxesdhc(4)Mark Kettenis
work on the cubox-i, whereu-boot leaves the controller in 4-bit mode.
2016-05-06Fix efiboot not to hang with a disk whose block size < 512.YASUOKA Masahiko
Report and diff from Vegar Linge Haaland ok krw