Mintsuki
a24f496c2e
Revert "misc: Enforce hash verification when UEFI Secure Boot is active"
...
This reverts commit 9e2f3e7587 .
2026-04-04 15:02:58 +02:00
Mintsuki
9e2f3e7587
misc: Enforce hash verification when UEFI Secure Boot is active
2026-04-02 22:21:54 +02:00
Mintsuki
a758e57880
lib/misc: Check for overflow in DTB reallocation size
2026-04-02 22:21:54 +02:00
Mintsuki
9e8d1cee14
mm/pmm: Check for overflow in UEFI memmap AllocatePool size
2026-04-02 01:44:58 +02:00
Mintsuki
1a2da65c75
lib/misc: Remove unused oct2bin and hex2bin
2026-02-16 13:08:01 +01:00
Mintsuki
f1167da7a9
misc: Fix wrong format specifiers for 64-bit arguments in print calls
2026-02-09 13:02:39 +01:00
Mintsuki
3e41ea363e
lib/misc: Validate input characters in oct2bin and hex2bin
2025-12-26 13:50:31 +01:00
Mintsuki
f4f69c315f
misc: Hard panic when global DTB fails to load
2025-11-29 15:40:54 +01:00
Mintsuki
1ce8ba628b
misc: Update get_device_tree_blob() logic to match config docs
2025-11-29 10:40:12 +01:00
Mintsuki
c1389680aa
misc: Rename config option loader_dtb_path -> global_dtb and document it
2025-11-29 10:00:44 +01:00
Mintsuki
5460569106
riscv: Do an early RISC-V init to allow checking ISA features early
2025-11-29 09:51:56 +01:00
Mintsuki
715f2e032d
misc: Simplify get_device_tree_blob() logic and prevent leak
2025-10-13 12:40:40 +02:00
Mintsuki
9655de5371
lib/misc: Always reallocate DTB
2025-10-07 21:17:33 +02:00
Mintsuki
996a0c1801
misc: Move to using separate libfdt repository
2025-07-12 12:08:05 +02:00
sanana
c411051252
lib/bli: Implement LoaderTimeInitUSec and LoaderTimeExecUSec
...
These are variables used by `systemd-analyze` and is useful for boot performance
metrics.
2025-07-03 11:02:54 +03:00
mintsuki
852f4a0665
misc: Fix a variable shadowing in is_efi_serial_present()
2025-03-09 23:49:21 +01:00
mintsuki
2d404d6fc1
misc: Do not attempt to use serial if not detected on EFI
...
This addresses an issue reported on Macs that lack a serial port and also lack a working ConOut screen console, resulting in nothing but a blank screen instead of the menu
2025-03-09 23:42:43 +01:00
mintsuki
512da261c3
misc: Simplifications after 945c43de0 and e721cecc2
2024-12-25 18:44:10 +01:00
Kacper Słomiński
945c43de0d
lib: Move DTB_PATH handling logic into common code
2024-12-24 17:10:47 +01:00
Yao Zi
3f57bb5a2c
protos/linux_risc: pass memory map and initrd by EFI configuration table
...
Newer Linux kernel supports passing boot params without a devicetree. In
this case, the bootloader should register a Linux-specific EFI
configuration table, which contains memory mapping information or initrd
address.
This is the only option on some new platforms like LoongArch, and is
necessary to allow booting Linux kernel without a DTB on aarch64/riscv64.
Signed-off-by: Yao Zi <ziyao@disroot.org >
2024-12-20 20:51:23 +00:00
mintsuki
163647f129
mm/pmm: Ignore UEFI memory map entries of length 0. Fixes #417
2024-10-15 23:14:23 +02:00
mintsuki
0c2f0ddebe
build: Remove custom __riscv64 define in favour of built-in __riscv define
...
We do not support non-64-bit RISC-V anyways
2024-08-11 20:25:01 +02:00
Keegan Saunders
d9a2fb95a9
Add LoongArch support
2024-07-31 23:05:27 -04:00
mintsuki
bc49e9553d
dtb: Never pass UEFI DTB buffer directly; fix misuse of libfdt API. Closes #384
2024-07-12 19:09:34 +02:00
mintsuki
68ad2db755
dtb: Fix bugs introduced in cc05481b89
2024-06-28 01:01:21 +02:00
mintsuki
cc05481b89
dtb: Fix bugs introduced in 45e036275a
2024-06-28 00:51:45 +02:00
mintsuki
45e036275a
dtb: Optionally reallocate and expand DTB memory as needed
2024-06-28 00:43:27 +02:00
xvanc
65e2c1b4d8
riscv: add support for device tree
2024-05-30 10:53:21 -05:00
mintsuki
e8006a442b
misc/efi: Make VirtualStart always 0 for created EFI memmap entries
2024-05-23 16:35:42 +02:00
mintsuki
1c51ef85b0
Revert "misc/efi: Call SetVirtualAddressMap when exiting boot services"
...
This reverts commit 0a27376a2b .
2023-12-07 00:37:08 +01:00
48cf
0a27376a2b
misc/efi: Call SetVirtualAddressMap when exiting boot services
2023-12-07 00:31:17 +01:00
mekb
820d4751d3
menu: Add option to hide help text
2023-08-08 14:09:11 -05:00
xvanc
9274ee656e
Initial riscv64 port ( #274 )
...
* initial riscv64 port
* enable Paging Mode feature for all architectures
* riscv: add missing protocol docs
* riscv: fix tests
* docs: clarify `LIMINE_PAGING_MODE_DEFAULT` macro
* build: fix whitespace in common/GNUmakefile
* riscv: default to Sv48 paging when supported
* vmm: make `VMM_MAX_LEVEL` 1-indexed
* limine: do not call `reported_addr()` before finaling paging mode
smp/riscv: do not overwrite the argument passed to APs
* limine/riscv: update default paging mode in limine.h
* test/riscv: pad OVMF.fd when downloading it
2023-06-04 01:36:06 +02:00
mintsuki
af80341c8c
misc: Dynamically allocate EFI memmap copy
2022-10-07 07:49:47 +02:00
mintsuki
2557aa8f46
misc: Increase EFI_COPY_MAX_ENTRIES to 2048
2022-10-07 06:23:49 +02:00
mintsuki
4a4409e1b2
pmm: Undo most of what was done between 85603ec8 and 74a3a1c6
2022-09-24 03:57:55 +02:00
mintsuki
886523359c
efi/disk: Use blake2b to calculate unique sector hash
2022-09-15 12:53:47 +02:00
mintsuki
c44f514738
misc: Rename UEFI and BIOS define macros
2022-09-02 02:29:12 +02:00
mintsuki
07080dcbc2
misc: blib.h -> misc.h
2022-08-26 23:44:47 +02:00