Commit Graph

102 Commits

Author SHA1 Message Date
Marvin Friedrich
db3ac54d4e drivers/serial: Initialize serial baudrate ahead of time 2026-01-06 15:08:00 +01:00
Mintsuki
0b17ff4a98 drivers/serial: Validate baud rate to prevent division by zero 2026-01-04 18:31:09 +01:00
Mintsuki
18fb572dd2 mm/pmm: Use uint64_t instead of size_t for the size argument for ext_mem_alloc/pmm_free functions 2025-12-27 22:45:52 +01:00
Mintsuki
1b5f95c2ac drivers/vbe: Add iteration limit and EDID sanity checks 2025-12-26 13:30:13 +01:00
Mintsuki
8a0f7684a7 drivers/disk: Validate sector size and device path traversal 2025-12-26 13:27:34 +01:00
Mintsuki
71a5cf86b1 drivers/gop: Fix current_fallback incremented before use bug 2025-12-25 20:20:42 +01:00
Mintsuki
42e5fb9ded drivers/disk: Skip EFI handles with VenHw(7CCE9C94-983F-4D0A-8143-B6C05545B223)
See https://github.com/limine-bootloader/limine/issues/521#issuecomment-3160168795
2025-10-29 00:01:44 +01:00
Mintsuki
aeb805620d drivers/serial: Default baud rate to 115200 instead of 9600 on BIOS 2025-09-15 20:07:23 +02:00
Mintsuki
a0b5faddf9 drivers/disk: Partial revert of f39f51d0; ensure EFI handles are HDD type before attempting write-back method 2025-09-13 22:11:22 +02:00
Mintsuki
e9592014da drivers/disk: Only validate EFI handle before running the fallback detection method 2025-09-05 22:52:35 +02:00
Mintsuki
d36726b4ba drivers/disk: EFI: Do not disable write caching unnecessarily
See #525
2025-08-06 18:45:42 +02:00
Mintsuki
b1422f5692 drivers/disk: EFI: Attempt to restore original data to volume even after a write failure
See #525
2025-08-06 18:23:55 +02:00
Mintsuki
47667c34f4 drivers/disk: EFI: More coarse validation of handles based on PCI HW subtype 2025-08-06 16:11:57 +02:00
Mintsuki
a68dd11cff driver/disk: EFI: Attempt to validate EFI volume handles before use 2025-08-06 06:44:14 +02:00
Mintsuki
05b1a75fde misc: Update Flanterm to latest 2025-07-14 15:36:58 +02:00
Mintsuki
dc42296949 drivers/disk: Reinstate limit for scanned drives to 0xf0 for BIOS 2025-05-27 19:59:58 +02:00
Mintsuki
73d03e7149 disk: Avoid mistakingly allocating more memory than necessary
What should've been a sizeof(void *) had been a sizeof(struct volume) for the longest time
2025-03-25 23:18:20 +01:00
Mintsuki
3ef6bb6764 disk: Handle dynamically allocating volume index. Fixes #481 2025-03-25 21:54:08 +01:00
mintsuki
04883abb0c drivers/vbe: Fix size of reserved area of VBE mode info struct 2024-10-15 21:40:18 +02:00
mintsuki
568f665be3 drivers/vbe: Improve error handling for get_vbe_mode_info() and set_vbe_mode() 2024-07-21 08:17:17 +02:00
mintsuki
ed915c3157 drivers/vbe: Properly return failures from int 0x10/ax=0x4f00 2024-07-20 18:59:26 +02:00
mintsuki
32a96b4666 drivers/disk: Allocate unique_sector_pool at runtime 2024-07-15 01:03:14 +02:00
mintsuki
a8f6d49c19 drivers/disk: Simplify overly convoluted code to invalidate collision unique sector 2024-07-15 00:16:57 +02:00
mintsuki
5090334a09 drivers/disk: Optimise disk_volume_from_efi_handle() 2024-07-14 21:22:45 +02:00
mintsuki
a15a75d210 drivers/disk: Get rid of logically broken unique sector detection and replace with working one 2024-07-14 08:30:32 +02:00
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
cospplredman
ba5c0004e6 fixed header guard names
made them more standard compliant
2024-03-20 03:06:55 +01:00
mintsuki
c0fd295cf4 serial: Add baudrate setting for BIOS
Co-authored-by: Bryce Lanham <blanham@gmail.com>
2024-02-08 09:30:59 +01: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
mintsuki
474fc105a5 gop: Readd preset mode storage 2023-07-29 11:55:37 -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
mintsuki
93ae0e9afc textmode: Actually disable term hooking on non-managed initialisation 2023-04-13 18:49:26 +02:00
mintsuki
01eeeb6e1d term: Drop in_bootloader for new Flanterm 2023-03-30 01:23:55 +02:00
mintsuki
779571339e misc: Updates for Flanterm rebrand 2023-03-29 22:43:06 +02:00
mintsuki
980c122475 vga_textmode: Minor cursor-related bug fixes 2023-03-07 13:07:28 +01:00
mintsuki
e909489635 vga_textmode: Unbreak on trunk 2023-02-16 03:21:06 +01: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
2ee939725e term: Compatibility with new terminal code 2022-12-30 07:58:46 +01:00
mintsuki
b3c08f8122 term: Compatibility with latest terminal changes 2022-12-14 16:35:03 +01:00
mintsuki
c2854bde82 gop: Fix small issue causing IA-32 UEFI port not to build 2022-11-19 06:35:41 +01: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