memtest86plus/boot
martinwhitaker 20fca09752
Add boot options to perform display rotation and set preferred screen resolution (#383)
* Add boot option to rotate screen display through 90 degrees.

Some machines have a detachable display that can be used in either
portrait or landscape orientations, and require software to rotate
the displayed image accordingly. There is no way to detect the
current orientation through the BIOS, so provide a boot option to
control this. Hopefully we only need to support one (+90 degree)
angle.

Note that the rotate option only works in graphical mode. When booted
by a legacy BIOS using text mode, we have to rely on the BIOS to do
what's necessary.

* Extend boot command line options for display screen control.

Replace "rotate" option with "screen.rhs-up" and "screen.lhs-up" to
allow rotation in either direction. Add a "screen.mode=<w>x<h>"
option to set a preferred width <w> and height <h> for the UEFI
frame buffer. Also allow "screen.mode=bios" to use the default
UEFI frame buffer resolution.

* Add more debug output for EFI frame buffer mode.

* Replicate command line parsing of screen options in efisetup.c.

Trying to do it only once in screen.c didn't work, because static
variables initialied to zero are placed in the bss section, and we
don't zero the bss section until after efisetup() is executed.

The resulting code is in fact smaller, because the compiler can
optimise better when everything is local.

* Add a boot command line option for efisetup debug.

* Improve EFI debug test screen pattern.

* Document the new screen and efidebug boot command line options.

* Fix typo in README.
2024-03-04 14:49:13 +01:00
..
boot.h Faster barrier implementation. 2022-02-28 22:05:21 +00:00
bootparams.h Allow use on headless EFI systems. (#242) 2023-01-23 15:50:52 +01:00
bootsect.S Rename to Memtest86+ v6.0. 2022-02-19 19:44:58 +00:00
efi.h Simplify allocation of memory in efisetup.c. 2022-05-09 18:41:14 +01:00
efisetup.c Add boot options to perform display rotation and set preferred screen resolution (#383) 2024-03-04 14:49:13 +01:00
header.S Avoid sbverify warning about gap in section table. 2023-02-02 14:01:13 +01:00
mbr.S Rename to Memtest86+ v6.0. 2022-02-19 19:44:58 +00:00
peimage.h Use the correct name for the relocation type in the EFI image .reloc section. 2023-02-02 14:01:13 +01:00
sbat.csv EFI: Add support for .sbat signature revocations 2023-01-03 00:58:52 +01:00
setup.S Add Memtest86+ Version String to Kernel Header (#75) 2023-01-03 01:35:51 +01:00
startup32.S Fix the bss section size in 32-bit builds. 2023-02-02 14:01:13 +01:00
startup64.S Fix triple-fault when starting APs with program loaded above 16MB (issue #63). 2022-05-15 12:18:07 +01:00