disk: Set MAX_VOLUMES to 256 for UEFI ports

This commit is contained in:
mintsuki 2024-04-29 23:14:48 +02:00
parent 37eb16f431
commit 51fc81b117

View File

@ -19,10 +19,10 @@
#define DEFAULT_FASTEST_XFER_SIZE 64
#define MAX_FASTEST_XFER_SIZE 512
#define MAX_VOLUMES 64
#if defined (BIOS)
#define MAX_VOLUMES 64
struct bios_drive_params {
uint16_t buf_size;
uint16_t info_flags;
@ -307,6 +307,8 @@ void disk_create_index(void) {
#if defined (UEFI)
#define MAX_VOLUMES 256
int disk_read_sectors(struct volume *volume, void *buf, uint64_t block, size_t count) {
EFI_STATUS status;