summaryrefslogtreecommitdiff
path: root/sys/arch/armv7
AgeCommit message (Collapse)Author
2019-09-04Remove DST/TIMEZONE options(4) from kernel configs; ok jca@ deraadt@cheloha
2019-09-03drop support for building with gcc; ok deraadt@Christian Weisgerber
2019-09-03remove duplicate test introduced in rev 1.3Jonathan Gray
2019-08-29Capitalize my last name in copyright.Mark Kettenis
2019-08-20Network-based device paths use Messaging and not Media types. ThusPatrick Wildt
in reality the depth was always -1 which made the compare function a No-Op. Properly check the device path depth value and look for the Messaging type instead to find the correct NIC. This check never worked before and was uncovered by the last change. Regression noticed by bluhm@
2019-08-19match on r40 ahciJonathan Gray
tested by and ok jsing@ ok kettenis@
2019-08-13Allow PXE booting using u-boot by relaxing our requirementsPatrick Wildt
of the EFI PXE protocol. This also brings us in line with the GRUB2 implementation. Tested by naddy@ to behave the same Tested by sven falempin on his Pine64
2019-08-11Add clock support to sxirtc(4); needed by newer Linux DTs.Mark Kettenis
ok patrick@
2019-08-11Add sxisyscon(4) a driver for the system controller found on variousMark Kettenis
Allwinner SoCs. This is basically a stripped down syscon(4) and is needed because the Linux device trees dropped the "syscon" compatible. ok patrick@
2019-08-04crank version, following fchmod changeTheo de Raadt
2019-08-03In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -xTheo de Raadt
so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now. Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will remain in the tree while refinements happen for some of the laggard architectures. based upon a discussion florian tested in snapshots for more than a week without any complaints
2019-07-29Support disk write in efiboot for armv7 and arm64.YASUOKA Masahiko
ok patrick deraadt
2019-07-22Disable caches and MMU before jumping to the kernel entry point. NeededMark Kettenis
because UEFI on 32-bit ARM is supposed to leave them enabled and U-boot was changed (starting with release 2019.04) to follow the spec here. However the OpenBSD/armv7 kernel expects to be booted with caches and MMU turned off. Note that there are still issues on boards that enable the non-architected L2 cache. UEFI demands that such caches are not turned on, but U-Boot does turn them on and this makes our kernel fail to boot. With help from jsg@ ok jsg@
2019-07-19ttysleep(): drop unused timeout parametercheloha
All callers sleep indefinitely. With help from visa@. ok visa@, ratchov@, kn@
2019-06-21Further improve the filesystem stability of kernel installation by KARL.Theo de Raadt
Use install -F to instead of cp, for fsync(2). Coupled with the new sync(8) in the reorder_kernel script, the window for a incomplete /bsd file on-disk due to a crash has now shrunk substantially. Discussion with kettenis, millert and tedu
2019-05-08Enable ucrcom(4) on all architectures that have uslcom(4).Mark Kettenis
ok deraadt@
2019-05-06Whitespace removalMike Larkin
Pointed out by Jerome Pinot
2019-05-06Whitespace removalMike Larkin
Pointed out by Jerome Pinot
2019-05-06Whitespace removalMike Larkin
Pointed out by Jerome Pinot
2019-05-06Whitespace removalMike Larkin
Pointed out by Jerome Pinot
2019-05-06Whitespace removalMike Larkin
Pointed out by Jerome Pinot
2019-05-06Whitespace and extra semicolon removal.Mike Larkin
Pointed out by Jerome Pinot
2019-04-25Add a check to tftp_open() that we are actually opening a TFTP device.Christian Weisgerber
When reading a file from a non-TFTP device, clear the bootmac variable to prevent the kernel from going into netboot mode. This allows loading a kernel from a disk device after having booted efiboot from PXE. style tweak and ok kettenis@
2019-04-14Instead of using COPTS=-Oz (and similar) in make environment to forceTheo de Raadt
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc based upon SMALL_KERNEL
2019-04-10KNF per naddy@ians
2019-04-10crank versionsTheo de Raadt
2019-04-10change marks[] array to uint64_t, so the code can track full 64-bitTheo de Raadt
details from the ELF header instead of faking it. Proposal from mlarkin, tested on most architectures already
2019-04-08crank version; looks good deraadtFlorian Obser
2019-04-01fast track ddb> reboot command to skip anything which might panic again.Ted Unangst
ok deraadt
2019-01-12Enable ohci at fdt.Mark Kettenis
2018-12-24Adjust cpsw for linux 4.20 device tree changes. The location of the phyJonathan Gray
is now found via phy-handle instead of phy_id.
2018-12-07For shared interrupts we need to make sure that we registerPatrick Wildt
with the lowest IPL. Once we actually run the IRQ handler we raise to the highest IPL. Fixes a crash seen when having a network card in the PCIe slot of the MacchiatoBin. ok ccardenas@
2018-10-30The way we currently generate gap.o using a linker script results in .rodataMark Kettenis
and .data segments that have the X (executable) flag set when using lld. This doesn't result in those sections being mapped executable in the bsd kernel, but it does result in the X flag being set on those sections in the final kernel binary, which confuses some scanning tools for (ROP) gadgets. Fix this by tweaking the generated gapdummy.c file that is used for building gap.o. It now defines the .rodata section using inline asm. This also fixes .data as it will inherit its flags from .rodata. ok deraadt@, mortimer@
2018-10-26Use EFI memory map to determine what memory regions are availble just likeMark Kettenis
we already do on arm64. Prevents using the framebuffer on the cubox-i as regular memory for example.
2018-10-20Sync with amd64 version.Mark Kettenis
2018-09-19Free edid_buf after use so to fix possible memory leak.Claudio Jeker
With and ok jsg@
2018-09-14add gapdummy.c to the "clean" target like other generated filesChristian Weisgerber
ok visa@ jsg@ phessler@
2018-09-12Move -Wno-address-of-packed-member to the clang block as well and syncJonathan Gray
armv7 and i386 with amd64. ok guenther@
2018-08-27ompinmux has been replaced by pinctrlJonathan Gray
2018-08-27switch from ompinmux to pinctrlJonathan Gray
ok kettenis@
2018-08-25Don't treat UnicodeChar == 0 as a keyboard input. The same fix wasYASUOKA Masahiko
done on amd64 already. Original diff from Frank Groeneveld ok tb patrick
2018-08-23Set the pointer to the EFI Runtime Services, otherwise we call intoPatrick Wildt
nowhere. ok kettenis@
2018-08-22Enable uscom(4) where uslcom(4) is already present.Martin Pieuchot
Based on a submisison from Jan Klemkow.
2018-08-20Remove unused spllock().Visa Hankala
OK deraadt@ mpi@
2018-08-09Define __HAVE_ACPI on arm64 and __HAVE_FDT on arm64, armv7 and octeonPatrick Wildt
so that we can include firmware-dependant code in generic drivers to be able to extract metadata information like MAC addresses and out-of-band interrupts from the ACPI/FDT tables. ok kettenis@
2018-08-08Extend the FDT interrupt API to support masking and unmasking IRQs.Patrick Wildt
Discussed with kettenis@
2018-08-06Make it possible to build a MULTIPROCESSOR kernel on armv7. While thisMark Kettenis
doesn't actually spin up any secondary CPUs, it does run. Mostly a cleanup of <machine/cpu.h> along the lines of what I did earlier on arm64. Makes armv7 use the MI mplock implementation and implements copyin32. ok patrick@
2018-08-05enable virtio pci attachment on armv7Jonathan Gray
2018-08-05enable bio and softraid on armv7 ramdiskJonathan Gray
2018-08-03Enable mue(4).Kevin Lo
Tested on Orange Pi Plus 2E (armv7) and Orange Pi PC 2 (arm64). ok jsg@