HomeFreeBSD

loader/libofw: Fix disk size truncation

Description

loader/libofw: Fix disk size truncation

At present OF_ioctl first multiplies, then casts to 64-bit, meaning at
the asm level it truncates the result to 32-bit, then zero-extends it to
64-bit to return. Cast n to 64-bit before multiplying, so that the
correct result is returned.

Details

Provenance
jhibbitsAuthored on Feb 20 2024, 10:08 PM
Parents
rGf81cdf24ba54: bhyve: Add support for XML register definitions
Branches
Unknown
Tags
Unknown