Commit Graph

31 Commits

Author SHA1 Message Date
mintsuki
b258face1c drivers/disk: Ensure disk_volume_from_efi_handle() does not return erroneous results 2024-07-14 04:32:40 +02:00
mintsuki
705dfa92f6 disk: UEFI: Add additional sector_size == 2048 condition for is_optical 2024-05-08 21:42:29 +02:00
mintsuki
40a772033a disk: BIOS: Yucky workaround to a workaround to an HP Pavillion something 2024-05-08 20:55:27 +02:00
mintsuki
9109b40756 disk: BIOS: Fix wrong logical operator from 9476b3dfaa 2024-05-07 21:03:15 +02:00
mintsuki
71cfe73d67 disk: BIOS: Work around bogus GCC warning 2024-05-07 20:11:28 +02:00
mintsuki
10e0ca6aaa disk: BIOS: Remove useless disk_read_sectors() call 2024-05-07 20:05:04 +02:00
mintsuki
9476b3dfaa disk: BIOS: Use DPTE to determine removable media and BDA disk count to skip broken entries 2024-05-07 19:53:03 +02:00
mintsuki
51fc81b117 disk: Set MAX_VOLUMES to 256 for UEFI ports 2024-04-29 23:14:48 +02:00
mintsuki
4abedffb43 disk: BIOS: Skip drive if sector size is 0. Fixes #294 2023-08-19 08:20:45 -05:00
mintsuki
27a32e416c disk: Add additional volume_index_i overflow guards 2023-08-18 13:37:16 -05:00
Bryce Lanham
fe083d3701 Fix netboot in configs where BLOCK_IO does not exist
For example, netbooting qemu-system-aarch64 with no drive specified will
result in OVMF not loading the BLOCK_IO_PROTOCOL, causing a panic in
disk.s2.c.
2023-06-01 03:33:13 -05:00
mintsuki
f26b651e5f disk/efi: Do not use DISK_IO protocol and fix buffer reuse bug 2023-05-30 21:36:09 +02:00
Qwinci
3dd0a6fb41 limine: Add UEFI PXE support
based on @qookei's original patch with small changes.
2023-01-17 18:47:36 +02:00
mintsuki
f9399fd5a3 disk: Fix issue where _p struct was not zeroed out in create_disk_index() 2022-11-19 06:35:41 +01:00
beakeyz
28187433f9 Fixed little memory leak in the UEFI build that would make the bootloader crash on systems with larger disks 2022-11-18 22:28:28 +00:00
mintsuki
3c541576f3 disk: Fix wrong parameter passed to ReadBlocks() 2022-10-14 06:59:35 +02:00
mintsuki
b30d2dc978 disk: UEFI: Add BLOCK_IO fallback for volume_from_efi_handle() 2022-10-14 00:02:55 +02:00
mintsuki
da5896b764 disk: On UEFI, improve optical vs non-optical detection 2022-10-14 00:02:55 +02:00
mintsuki
96fe1aa2e0 disk: Only use BLOCK_IO as fallback to DISK_IO when determining optical 2022-10-09 10:58:07 +02:00
mintsuki
d265cad7b6 disk: On BIOS, change how optical is determined 2022-10-09 10:58:07 +02:00
czapek1337
44a3f3f2f7 disk: Use BLOCK_IO instead of DISK_IO 2022-10-06 05:38:06 +02:00
mintsuki
e89d834457 disk/efi: Improve firmware error handling 2022-09-19 20:48:42 +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
9b3570f043 bios/disk: Fix always-true comparison warning 2022-09-01 04:42:49 +02:00
mintsuki
1b630659d9 bios/disk: Add manual sector size detection code 2022-09-01 04:22:30 +02:00
mintsuki
07080dcbc2 misc: blib.h -> misc.h 2022-08-26 23:44:47 +02:00
mintsuki
55199478db efi: Fix broken assignments of handles_size 2022-07-01 09:07:45 +02:00
mintsuki
f9e90da2c2 efi: Fix potential issues with LocateHandle invocations 2022-07-01 08:03:21 +02:00
mintsuki
b80fb36744 misc: Misc Hyper-V related fixes. Closes #150 2022-02-09 12:45:55 +01:00
mintsuki
400202d926 misc: stage23 -> common 2022-02-03 10:38:43 +01:00