mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
b4ccd21229
commit
21a284b61b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user