Age | Commit message (Collapse) | Author |
|
was replaced a while ago.
ok tb
|
|
sectored media.
Bump to common version (3.67) to indicate new MI capability.
Reminded by deraadt@
|
|
testing by florian@ mglocker@ mlarkin@
ok deraadt@ mglocker@ mlarkin@
|
|
Enable users to power down their machines if there was no input after N
seconds during disk descryption.
Motivation is to save battery and prevent pocket heaters when notebooks
unhibernate (e.g. lid accidentially opened) and sit at "Passphrase: ".
Only available on efi(4) systems as the timeout is saved as EFI variable;
mostly because that's trivial to do, but also because we lack a better
mechanism to configure that and persist such data without the root disk.
Discussed with many, starting at h2k23
OK Tests gnezdo
|
|
ok bluhm@ jca@
|
|
ok yasuoka@
|
|
no longer needed with zlib 1.3
ok tb@
|
|
ok deraadt@
|
|
ok jmc@ guenther@ tb@
|
|
very far and the presence of these directories just confuse people and
make them do more work than necessary.
ok patrick@, kn@, mlarkin@
|
|
Bootloaders have no write support for softraid volumes, which manifests in,
e.g. /bsd.upgrade not being stripped of its 'x' permission bit to prevent
sysupgrade loops in case of upgrade failure.
Set a no-write flag handled by libsa to bail out early in write calls.
There should be no real behaviour change, writes just fail earlier now.
amd64 EFI bits, other architectues to come. Crank minor.
"seems sensible" jsing
|
|
Bootloaders have no write support for softraid volumes, which manifests in,
e.g. /bsd.upgrade not being stripped of its 'x' permission bit to prevent
sysupgrade loops in case of upgrade failure.
Set a no-write flag handled by libsa to bail out early in write calls.
There should be no real behaviour change, writes just fail earlier now.
amd64 BIOS bits first, rest to come. Crank minor.
"seems sensible" jsing
|
|
include endbr64 macros. That's not going to work, so use the simple method
of -Dendbr64= to remove them from the instruction stream.
ok kettenis guenther
|
|
only compile tty-related code (stty command, tty variable) on platforms
where it makes sense for the boot loader to control it, rather than the
PROM/firmware/whatever.
|
|
and pass it to the kernel.
ok jca@, patrick@
|
|
COMPILER_VERSION initially missed. I'm not sure why we still have those
COMPILER_VERSION checks in sys/arch/i386 and sys/arch/amd64, when the
base system doesn't ship gcc any more, but let's stay consistent.
|
|
Disable -Wdeprecated-non-prototype instead of patching zlib. Upstream
plans to drop the pre-ANSI syntax soon. ok tb@ millert@
|
|
To appease the clang 15 warning -Wdeprecated-non-prototype (turned on
by -Wall). ok millert@
|
|
is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386,
macppc, mips64, and sparc64 code.
ok deraadt@ jca@ krw@
|
|
64 zeros, suggested by miod@ a while ago.
ok mlarkin@
|
|
any attention for some time.
ok otto@ as part of larger diff
|
|
|
|
Mildly sad noises from Nick.
ok miod@ mlarkin@
|
|
|
|
OpenBSD/i386 doesn't actually support running on 386sx or 386dx CPUs
so we don't need to test whether we're running on one of these CPUs
anymore.
The 486 (which was launched in 1989) added a few new features over
the 386:
- an alignment check flag in EFLAGS
- 3 new userland instructions: bswap / cmpxchg / xadd
- 3 new kernel mode instructions: invd / wbinvd / invlpg
- new bits in CR0 (386 CPUs did not support ring0 write protection)
- new bits in CR3
In this diff, we remove the code that checks for the alignment check
flag as we've only supported Pentium (or newer) CPUs for some time.
The rest of the diff is about updating comments related to pre-486
CPUs. 2 files under arch/amd64 are updated to keep them in sync
with the arch/i386 updates.
ok mlarkin@, jsg@; tweak from miod@
|
|
|
|
Only boot-loader changes are needed. Both installboot(8) and
the kernel already do what is required to make this work.
ok kn@
Tested:
biosboot on vmm: kn, stsp
biosboot and efiboot on server hardware: stsp
|
|
Make the EFI bootloader provide the extra parameters that are necessary
for using the non-standard UART on the AMD Ryzen Embedded V1000 SoCs.
ok anton@
|
|
until the bootstrap populates the new structure.
Found the hard way by Hrvoje Popovski.
ok kettenis@
|
|
|
|
this in decades.
ok sthen krw
|
|
can get a handle of DevicePath protocol if any, otherwise select first
one. This is expected to workaround the garbled screen problem when
booting with efiboot happened on some machines.
origin diff from Alexei K.
|
|
/usr/mdec/mbr. Make the partition table all zeros and
see if any hidden uses fall out.
ok deraadt@
|
|
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.
ok jmc@
|
|
disk, and would fall through to the active partition selection
from crystal kolipe, ok miod krw
|
|
|
|
as self_reloc.c only handles the former.
ok deraadt@ kettenis@
|
|
O_RDONLY rather using 0
ok beck
|
|
those options are incompatible with the kernel anymore. Set DYNAMIC_CRC_TABLE
and BUILDFIXED for these bootblocks, to save space on the media
ok tb mlarkin
|
|
|
|
arm64 efid_io().
ok kettenis@
|
|
BS->AllocatePages() and BS->FreePages() as in all the other
efid_io() versions.
Don't leak the pages on success.
Bump boot version to 3.59.
ok yasuoka@
|
|
|
|
the expansion 'func(params)'.
Allows upcoming removal of eficall.h.
|
|
|
|
prodded by jsg@
|
|
'__attribute((ms_abi))', removing the need for the EFI_CALL
abstraction.
Nuke the amd64 EFI_CALL dance from all copies of eficall.h,
remove eficall.S from the build.
ok kettenis@ yasuoka@
|
|
media length check to allow EFI GPT partitions to be smaller that
the entire disk.
Consistently use GPTSECTOR instead of randomly tossing in some
literal '1's.
ok kettenis@
|
|
64 entries. Instead of writing beyond the array that we use to construct
a BIOS compatible memory map, check that we don't overflow the array and
print a message if we do. Bump the size of the array from 64 to 128
entries.
Issue reported and debugged by David N. Arnold.
Further input from yasuoka@
ok deraadt@ (earlier version) and yasuaka@
|
|
efid_io() simpler. Also fixes the problem on some machines when boot
from CD-ROM. It happened because the previous version passed
unaligned pointers to the functions even if it is restricted by the
IoAlign property of the media. idea from kettenis, work with asou
ok kettenis
|