mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +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:
@@ -81,7 +81,7 @@ static int imgmem_exec ( int argc, char **argv ) {
|
||||
return rc;
|
||||
|
||||
/* Create image */
|
||||
if ( ( rc = imgmem ( opts.name, phys_to_user ( data ), len ) ) != 0 )
|
||||
if ( ( rc = imgmem ( opts.name, phys_to_virt ( data ), len ) ) != 0 )
|
||||
return rc;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user