summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2016-12-30Remove unused headers.Jeremie Courreges-Anglas
ISA and PIO don't really fit in the ARM landscape. Suggested by patrick@ and kettenis@, ok deraadt@
2016-12-30Ansify pmap_copy().Visa Hankala
2016-12-30When entering a mapping on write access, compute the PTE after makingVisa Hankala
the page dirty. This lets the system avoid an extra TLB modify fault because the TLB mapping now allows writes immediately. Noticed by miod@
2016-12-30Fix EFI_CALL() to pass the arguments properly when number of arguments is 0.YASUOKA Masahiko
From pulse.purge at gmail.com
2016-12-30Fix EFI_CALL() to pass the arguments properly when number of arguments is 0.YASUOKA Masahiko
From pulse.purge at gmail.com
2016-12-28Use the generic clock framework.Mark Kettenis
ok jsg@, patrick@
2016-12-27Add support for the 2nd sxipio(4) device on the Allwinner A80.Mark Kettenis
2016-12-26Typo, "more then" -> "more than"Jeremie Courreges-Anglas
2016-12-26Fix typo, happend -> happenedJeremie Courreges-Anglas
2016-12-26Fix typo.Mark Kettenis
2016-12-26Pass through cacheline size information to guest. This was pointed outMike Larkin
to me by Christian Barthel who was encountering failures running Java on amd64 vmm(4) guests. Apparently Java queries the cacheline info and if we report "0", Java aborts. Verified on amd64 vmm(4) guest.
2016-12-24Make the boot programs support booting from softraid on 4K byte sectorYASUOKA Masahiko
disks. test gonzalo ok tom krw jsing
2016-12-24Add support for the 2nd sxipio(4) device on the Allwinner H3.Mark Kettenis
2016-12-24The unit of the parition offset in disklabel is number of sectors in theYASUOKA Masahiko
sector size, not in 512 byte blocks. tested by gonzalo.
2016-12-24Match on "arm,gic-400" another GICv2 compat string.Jonathan Gray
ok patrick@ kettenis@
2016-12-23Tweaks suggested by miod@Visa Hankala
2016-12-23Update and add wide character support types.Patrick Wildt
2016-12-23The code to retrieve the interrupt ID only works if the amount of IRQsPatrick Wildt
supported by the controller is not too big. Otherwise the mask will be wrong and the calculated IRQ as well. Split the dynamic mask into two pieces. First of all use a static mask to remove the bits we don't want to look at. Then we use that value to check for spurious or false IRQs. ok jsg@
2016-12-23Convert the sector number in the patition table to the sector numberYASUOKA Masahiko
in 512 byte blocks. This fixes efiboot to read disklabel on 4K sector size disk properly. tested by gonzalo@
2016-12-23The efi disk i/o to read sectors properly when the sector size is notYASUOKA Masahiko
512. The problem actually had happened on macbookair7,1. reported and tested by gonzalo@.
2016-12-22Extend the size of user virtual address space from 2GB to 1TB on mips64Visa Hankala
by adding another level to page directories. This improves ASLR and complements W^X added earlier on some systems, giving a notable update to the architecture's security. Besides, there is now more room for running tasks that hog memory. Testing help from deraadt@ and fcambus@. Platforms tested: loongson, octeon, sgi/IP27 and sgi/IP30 (IP30 also with 4KB pages).
2016-12-21Add a driver for OCTEON MMC host controller.Visa Hankala
Tested on EdgeRouter Pro, and Shasta. OK mpi@
2016-12-20fix use of uninitialised variablesJonathan Gray
ok kettenis@
2016-12-20no need to test if an array is non-NULLJonathan Gray
ok kettenis@
2016-12-20fix an uninitialised variable on altivec assist trapJonathan Gray
ok krw@ kettenis@
2016-12-20Fix operand of pushq instruction; clang's integrated assembler is lessMark Kettenis
forgiving than gas and insists that we use a 64-bit integer. No binary change. ok mlarkin@
2016-12-19Generating mixed 16-bit/32-bit/64-bit code with clang's integratedMark Kettenis
assembler is a bit tricky. It supports the .code16, .code32 and .code64 directives. But it doesn't know about the data16/data32 and addr16/addr32 instruction prefixes. Instead it tries to determine those from the instruction opcode. It mostly succeeds, but there are a couple of corner cases where clang will generate the "addr32" form where gas generates the "addr16" form in .code16 segments. That should be no problem (and just waste a couple of bytes), but it makes comparing the generated code a bit difficult. Allow the trampoline code to be compiled with both. For clang #define away the addr32 prefix and avoid using the data32 prefix by using a mnemonic that explicitly encodes the size of the operand. Add a few addr32 prefixes in .code16 blocks to reduce the differences between code generated by clang and gas. ok patrick@, deraadt@, mlarkin@
2016-12-19Adjust Makefile to gain improvements that were made in other archsPatrick Wildt
already. This means for example dropping -Wno-format or adding -g by default. Prompted by jsg@
2016-12-19Fix debug printf format and arguments.Patrick Wildt
Found by and input from jsg@
2016-12-19fix uninitialised variable warnings from clangJonathan Gray
ok patrick@
2016-12-19remove redundant return statementsJonathan Gray
ok patrick@
2016-12-19ansify function declaration; better whitespacePatrick Wildt
2016-12-19Fix an off by one when saving and restoring an array of registers.Jonathan Gray
ok patrick@
2016-12-18Consolidate bus space tags into generic bus space code. EspeciallyPatrick Wildt
considering we don't have a separate iobus and the a4x iobus wasn't even compiled it does not make sense to declare those in iobus. Improves code readability as well.
2016-12-18Adjust OpenBSD/arm64 files with FreeBSD origin to show the upstreamPatrick Wildt
revision. Prompted by mikeb@.
2016-12-18Adjust OpenBSD/arm64 files with FreeBSD origin to show the upstreamPatrick Wildt
revision. While there, update a few of those files. Prompted by mikeb@.
2016-12-17Import of OpenBSD/arm64Patrick Wildt
This commit contains all the kernel files related to the OpenBSD/arm64 port. It is based on the PowerPC pmap, loongson, arm/armv7 code and FreeBSD aarch64 code. Hard work done by Dale Rahn.
2016-12-17Fix IO clock speed and system reset on Octeon III.Visa Hankala
2016-12-17There is no RTC on Shasta, so do not attach the driver.Visa Hankala
2016-12-17Make Octeon model strings a bit more specific. While there,Visa Hankala
add CN70xx/CN71xx.
2016-12-17On some systems, the firmware advertises multiple tiny and disjointVisa Hankala
regions of free memory whose size is no more than a few page frames. Ignore them in order not to clutter uvm with fragments.
2016-12-17Add new device xp(4), preliminary support for LUNA's I/O processor.Kenji Aoyama
This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*), and makes LUNA's I/O auxiliary processor (called XP, actually HD647180) possible to load and run programs. (*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html
2016-12-16Provide the "machdep.lidsuspend" sysctl on Loongson.Frederic Cambus
OK visa@
2016-12-14Add the TSC timecounter and use it on Skylake machines where the HPETReyk Floeter
is too slow and the invariant TSC more accurate. The commit includes joint work by mikeb@ kettenis@ and me; tested for some time by a large group of volunteers. OK mikeb@ kettenis@
2016-12-13Enable xbf(4)Mike Belopuhov
2016-12-12Tweak IPI register definitions.Visa Hankala
2016-12-12Pass WSDISPLAYIO_{GET,SET}PARAM to ws_{get,set}_param. This allowsYASUOKA Masahiko
the brightness on some machines to be adjusted through wsconsctl(8). diff from Anton Lindqvist
2016-12-11Determine the available CPUs.Visa Hankala
2016-12-08Add a routine for setting up interrupt handlers using fdt.Visa Hankala
ok kettenis@
2016-12-08Add fdt_attach_args and simplebus for implementing fdt-capableVisa Hankala
drivers on octeon. Adapted from armv7. ok kettenis@