mirror of
https://github.com/ipxe/ipxe
synced 2026-02-05 19:12:46 +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:
@@ -300,8 +300,8 @@ int register_image ( struct image *image ) {
|
||||
image->flags |= IMAGE_REGISTERED;
|
||||
list_add_tail ( &image->list, &images );
|
||||
DBGC ( image, "IMAGE %s at [%lx,%lx) registered\n",
|
||||
image->name, user_to_phys ( image->data, 0 ),
|
||||
user_to_phys ( image->data, image->len ) );
|
||||
image->name, virt_to_phys ( image->data ),
|
||||
( virt_to_phys ( image->data ) + image->len ) );
|
||||
|
||||
/* Try to detect image type, if applicable. Ignore failures,
|
||||
* since we expect to handle some unrecognised images
|
||||
|
||||
Reference in New Issue
Block a user