Commit Graph

34 Commits

Author SHA1 Message Date
Mintsuki
00a542f0c6 misc: Fix wrong format specifiers for 64-bit arguments in print calls 2026-02-10 11:10:02 +01:00
Mintsuki
06540a1255 protos/chainload: Include NUL terminator in LoadOptionsSize 2026-02-10 10:58:04 +01:00
Mintsuki
4661b8924d protos/chainload: Add NULL check for default drive/partition lookup 2026-02-10 10:58:04 +01:00
Mintsuki
0602546ad2 fs,lib: Check volume_read() and read_cluster_from_map() return values 2026-01-04 16:11:05 +01:00
Jakub Vaněk
1303f2d080 protos/efi: Make the file path passed to executed binaries relative
Fixes https://github.com/limine-bootloader/limine/issues/528
2025-08-16 11:37:45 +02:00
Mintsuki
eae4dfea61 protos/efi: Hybridise loading mechanism with old memory-device based approach 2025-07-14 13:20:46 +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
c0924e6cf1 protos/chainload: Get rid of unnecessary function splits 2025-02-25 19:47:32 +01:00
mintsuki
71014d8f24 protos/chainload: Use updated protocol names in messages 2025-02-25 19:44:46 +01:00
mintsuki
50c01f010d protos/efi: Do not use EFI allocator uselessly and fix use-after-free 2025-02-25 19:25:46 +01:00
mintsuki
3e899468de protos/efi: Comment out unused debug function devpath_print() to avoid warning 2025-02-25 19:06:39 +01:00
mintsuki
84981d6ca6 protos/efi: Rework entire chainloading procedure to fix issues caused by the old method
This should fix rEFInd and potentially more EFI applications previously misbehaving.
2025-02-25 19:02:01 +01:00
mintsuki
eaca4391d3 protos/efi: Fix 'path' option alias not working. Closes #458 2025-02-15 20:57:29 +01:00
mintsuki
c9cc7bbb66 protos: Make 'path' option standard to pick executable to boot for all protos 2025-01-10 13:53:12 +01:00
mintsuki
8c75c55a92 misc/uefi: Switch from EfiLoaderData to EfiLoaderCode at 2 more allocation sites 2024-06-16 18:27:55 +02:00
mintsuki
b54c3fc9cc protos/chainload: Fix bug that could result in bogus oom errors. Fixes #302 2023-09-11 17:16:19 -05:00
Kacper Słomiński
916aa370b2 protos: chainload: Allocate memory for the null terminator in cmdline 2023-09-11 17:16:19 -05:00
mintsuki
828e3790a4 chainload: LoadOptionsSize should be in bytes. Fixes #254 2023-03-08 15:40:11 +01:00
mintsuki
246276a538 chainload: BIOS: do not rely on 0x7c00 being free 2023-03-07 13:07:28 +01:00
mintsuki
ac1c5d1b95 efi/chainload: Support passing of command lines. Addresses #244 2023-01-14 12:49:22 +01:00
mintsuki
d39baeaa80 video: Initial support for multiple framebuffers 2022-11-18 23:59:31 +01:00
mintsuki
ac34ec411f term: Better ensure term is not accessed when NULL 2022-10-05 15:01:01 +02:00
mintsuki
b34954bb43 term: Misc fixes and improvements 2022-10-04 07:24:42 +02:00
mintsuki
0f1d86e7e4 term: Tidy up VGA textmode wrapper code 2022-10-04 02:34:11 +02:00
mintsuki
4d855fc17e term: Move to use external, portable terminal 2022-10-04 00:58:00 +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
mintsuki
4c6fba824c chainload: Add GPT_GUID support and improve documentation. Closes #201 2022-07-26 19:21:47 +02:00
mintsuki
8a8b62fbcf chainload: Fix bug where PARTITION was ignored if MBR_ID was set. Addresses #197 2022-07-14 19:24:41 +02:00
mintsuki
e5e125887b protos: Remove pointless returns added for autodetection 2022-07-13 07:40:53 +02:00
mintsuki
62c029c218 chainload: Implement MBR_ID config option. Closes #190 2022-07-11 01:30:54 +02:00
mintsuki
4511827780 chainload_next: Pass config through to chainload on UEFI 2022-07-11 00:27:22 +02:00
mintsuki
95272c5f1d protos: Add chainload_next protocol. Closes #191 2022-07-11 00:15:56 +02:00
mintsuki
400202d926 misc: stage23 -> common 2022-02-03 10:38:43 +01:00