mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
[uaccess] Remove user_to_phys() and phys_to_user()
Remove the intermediate concept of a user pointer from physical address conversions, leaving virt_to_phys() and phys_to_virt() as the directly implemented functions. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -248,7 +248,7 @@ int block_translate ( struct interface *block, userptr_t buffer, size_t size ) {
|
||||
DBGC2 ( blktrans, "BLKTRANS %p created", blktrans );
|
||||
if ( buffer ) {
|
||||
DBGC2 ( blktrans, " for %#lx+%#zx",
|
||||
user_to_phys ( buffer, 0 ), size );
|
||||
virt_to_phys ( buffer ), size );
|
||||
}
|
||||
DBGC2 ( blktrans, "\n" );
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user