AHCI: Don't cast to addr_t when fetching low/high 32 bits.

Otherwise we'll lose the high 32 bits on 32-bit systems.
This commit is contained in:
Augustin Cavalier 2024-10-21 12:58:28 -04:00
parent b4ccd21229
commit 21a284b61b

View File

@ -330,8 +330,8 @@ extern scsi_for_sim_interface *gSCSI;
#define MAX_SECTOR_LBA_48 ((1ull << 48) - 1)
#define LO32(val) ((uint32)(addr_t)(val))
#define HI32(val) ((uint32)(((uint64)(addr_t)(val)) >> 32))
#define LO32(val) ((uint32)(val))
#define HI32(val) ((uint32)(((uint64)(val)) >> 32))
#define ASSERT(expr) if (expr) {} else panic("%s", #expr)
#define PCI_VENDOR_INTEL 0x8086