diff options
| author | Michael Brown | 2016-02-21 12:37:37 +0100 |
|---|---|---|
| committer | Michael Brown | 2016-02-21 12:37:37 +0100 |
| commit | 4c1f2486e664e9c88164cfff917a99bfe6beed52 (patch) | |
| tree | a87dfb2423a808d7121fe3dd1c51efa5349976b0 /src/include/ipxe | |
| parent | [librm] Mark virt_offset, text16, data16, rm_cs, and rm_ds as constant (diff) | |
| download | ipxe-4c1f2486e664e9c88164cfff917a99bfe6beed52.tar.gz ipxe-4c1f2486e664e9c88164cfff917a99bfe6beed52.tar.xz ipxe-4c1f2486e664e9c88164cfff917a99bfe6beed52.zip | |
[librm] Support userptr_t in 64-bit builds
In a 64-bit build, the entirety of the 32-bit address space is
identity-mapped and so any valid physical address may immediately be
used as a virtual address. Conversely, a virtual address that is
already within the 32-bit address space may immediately be used as a
physical address.
A valid virtual address that lies outside the 32-bit address space
must be an address within .textdata, and so can be converted to a
physical address by adding virt_offset.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
0 files changed, 0 insertions, 0 deletions
