summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2017-03-12Bring SROP mitigation to arm64. Make some small modifications to the armMark Kettenis
code as well to improve diffability. Changes the types used in the arm64 "struct sigcontext" to avoid having to include <sys/types.h>. ok deraadt@
2017-03-12Remove some unused cruft.Mark Kettenis
ok jsg@
2017-03-12Simplify pmap_proc_iflush(); there is no need for the per-page logic if weMark Kettenis
are flushing by using the virtual address. ok jsg@
2017-03-12Hook exclock(4) up to the clock framework using a dummy implementation thatMark Kettenis
prints the clock ids it is being called for. This allows us to identify which clocks need to be implemented. Attach early such that clocks are available when needed.
2017-03-12Enable exdwusb(4) and xhci(4).Mark Kettenis
2017-03-11Hook up exgpio(4) to the gpio framework.Mark Kettenis
2017-03-11Fix uninitilized variables (confusion between enc and p->encodingAlexandre Ratchov
and between prec and p->precision). Found by jsg@, thanks.
2017-03-11Introduce a new knob to force the first USB keyboard as console input.Martin Pieuchot
By setting "machdep.forceukbd=1" you can now use your USB keyboard in ddb(4) even if your BIOS emulates a pckbd(4). ok tom@, kettenis@, deraadt@
2017-03-11Set EVT_NOTIFY_SIGNAL when calling boot services CreateEvent().Jonathan Gray
The UEFI specification states this is required to have the notification function called. U-Boot's EFI loader calls the notification function without the flag set but the EDK2 implementation of UEFI requires the flag. With this change the timer ticks and autoboot works on the OverDrive 3000. ok kettenis@
2017-03-11Enable exrtc(4).Mark Kettenis
2017-03-10Use regmap interface to power up the PHY block.Mark Kettenis
2017-03-10Missed this file in the deplatformization commit.Mark Kettenis
2017-03-10Add glue to attach xhci(4) on exynos.Mark Kettenis
2017-03-10Set VM_PHYSSEG_MAX to 32 and use VM_PSTRAT_BSEARCH as the sort/search optionMark Kettenis
like we do on macppc and sparc64. This makes our kernel recognize all the memory on the Odroid XU4. ok jsg@
2017-03-10Lookup the /memory node again after we reinit the FDT. This makes addingMark Kettenis
additional memory segments provided by the device tree actually work. ok jsg@
2017-03-10enable amphy(4) for udav(4) and urlphy(4) for url(4)Jonathan Gray
2017-03-09There are no compat emulations left so we never do errno mapping:Philip Guenther
eliminate the last use of e_errno. ok tom@ mpi@ kettenis@ visa@
2017-03-09Enable syscon(4) such that I can actually reboot the Odroid XU4.Mark Kettenis
ok patrick@
2017-03-09Provide access to our registers through the regmap interface.Mark Kettenis
ok patrick@
2017-03-09Only set cpuresetfn if it isn't set already such that other reboot mechanismsMark Kettenis
(like psci or syscon) are preferred over letting the watchdog fire. ok patrick@
2017-03-09Add interrupt routing API like we have on arm64.Mark Kettenis
2017-03-09Change the interrupt routing API to take a pointer to a "struct cpu_info"Mark Kettenis
instead of a cpu number. ok patrick@
2017-03-08Fix logic in the driver preventing it to receive broadcast framesMartin Pieuchot
before configuring an address. Make dhclient(8) work on sq(4). Problem reported by Frank Scheiner, diff from miod@
2017-03-08Do not clear IFF_UP, even in the error path, clearing IFF_RUNNINGMartin Pieuchot
is enough. This flag should only be set by the stack, drivers shouldn't mess with it. Discussed with dlg@ and mikeb@, ok mikeb@, stsp@
2017-03-08Enable msk(4).Patrick Wildt
2017-03-08Enable eephy(4).Patrick Wildt
2017-03-08Enable re(4).Patrick Wildt
2017-03-08Enable ix(4). Requested by deraadt@Jonathan Gray
2017-03-08Enable em(4), ahci(4), nvme(4) and USB controllers attached to pci(4).Patrick Wildt
2017-03-08Establish API to route interrupts to specific CPU cores.Patrick Wildt
Based on and ok drahn@
2017-03-07Make this actually work as a tty. Everything except for the most basicMark Kettenis
tx and rx functionality is still missing.
2017-03-07Record the target mask for the boot CPU when we attach and use that to pickMark Kettenis
the target CPU interface when establishing an interrupt. Makes interrupts work on machines that boot up on a CPU that is attached to a CPU interface that isn't zero. Discussed with Dale Rahn.
2017-03-07Unbreak the tree by removing the "exynos.h" include and associated prototype.Mark Kettenis
Found the hard way by florian@
2017-03-07Keep on trying to grab the lock after leaving ddb after lock spin-out.Visa Hankala
This restores the behaviour that preceded ticket locks. The feature can be useful in some debug cases where the system is not totally borken. OK guenther@, dlg@, mpi@
2017-03-07Use the pause instruction on the slow path. This improvesVisa Hankala
performance a bit. OK mikeb@, kettenis@, mpi@, tom@, mlarkin@
2017-03-07Make the slow path similar to i386's by checking mutex ownerVisa Hankala
on every iteration. OK mikeb@, kettenis@, mpi@, tom@, mlarkin@
2017-03-07Disallow setting machdep.lidaction to any other value but [0,2].Martin Natano
suggested by halex ok deraadt millert
2017-03-07enable vioscsi(4)Jonathan Gray
2017-03-06De-platformize exynos. Disable exdisplay(4) for now.Mark Kettenis
2017-03-06Attach exiic(4) using the FDT.Mark Kettenis
2017-03-06Remove unused unit number from softc.Mark Kettenis
2017-03-05match GENERICTheo de Raadt
2017-03-05Turn exgpio(4) into a pinctrl driver.Mark Kettenis
2017-03-05Clear pending interrupts and mask them all.Mark Kettenis
2017-03-05The current code in exuartcnputc() that tries to make sure the characterMark Kettenis
written is actually transmitted doesn't seem to work. Instead, wait until there is room in the TX FIFO before writing the character. This works only in FIFO mode, but that's how u-boot configures the chip. ok patrick@
2017-03-05Teach the ddb disassembler about most of the vm* instructionsPhilip Guenther
ok mlarkin@
2017-03-04matching commit for RAMDISK: Convert a few exynos drivers to attach using ↵Theo de Raadt
the FDT.
2017-03-04Convert a few exynos drivers to attach using the FDT.Mark Kettenis
2017-03-04crank to 6.1-betaTheo de Raadt
2017-03-03Whan an amd64 machine got an NMI, the current process in user landAlexander Bluhm
was killed with SIGBUS. Better drop to ddb regardless wether a user process is currently scheduled or not. NMI signals hardware failure or a debug button. The code in i386 trap() has always been that way. The switch in db_ktrap() must also not depend on the fact wether kernel or user land is running. OK deraadt@