Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
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@
|
|
tested by and ok jsing@ ok kettenis@
|
|
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
|
|
ok patrick@
|
|
Allwinner SoCs.
This is basically a stripped down syscon(4) and is needed because the
Linux device trees dropped the "syscon" compatible.
ok patrick@
|
|
|
|
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
|
|
ok patrick deraadt
|
|
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@
|
|
All callers sleep indefinitely.
With help from visa@.
ok visa@, ratchov@, kn@
|
|
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
|
|
ok deraadt@
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
Pointed out by Jerome Pinot
|
|
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@
|
|
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL
|
|
|
|
|
|
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already
|
|
|
|
ok deraadt
|
|
|
|
is now found via phy-handle instead of phy_id.
|
|
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@
|
|
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@
|
|
we already do on arm64. Prevents using the framebuffer on the cubox-i as
regular memory for example.
|
|
|
|
With and ok jsg@
|
|
ok visa@ jsg@ phessler@
|
|
armv7 and i386 with amd64.
ok guenther@
|
|
|
|
ok kettenis@
|
|
done on amd64 already. Original diff from Frank Groeneveld
ok tb patrick
|
|
nowhere.
ok kettenis@
|
|
Based on a submisison from Jan Klemkow.
|
|
OK deraadt@ mpi@
|
|
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@
|
|
Discussed with 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@
|
|
|
|
|
|
Tested on Orange Pi Plus 2E (armv7) and Orange Pi PC 2 (arm64).
ok jsg@
|