[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:
@@ -86,14 +86,14 @@ int find_smbios_entry ( userptr_t start, size_t len,
|
||||
if ( ( sum = smbios_checksum ( start, offset,
|
||||
entry->len ) ) != 0 ) {
|
||||
DBG ( "SMBIOS at %08lx has bad checksum %02x\n",
|
||||
user_to_phys ( start, offset ), sum );
|
||||
virt_to_phys ( start + offset ), sum );
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Fill result structure */
|
||||
DBG ( "Found SMBIOS v%d.%d entry point at %08lx\n",
|
||||
entry->major, entry->minor,
|
||||
user_to_phys ( start, offset ) );
|
||||
virt_to_phys ( start + offset ) );
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -126,14 +126,14 @@ int find_smbios3_entry ( userptr_t start, size_t len,
|
||||
if ( ( sum = smbios_checksum ( start, offset,
|
||||
entry->len ) ) != 0 ) {
|
||||
DBG ( "SMBIOS3 at %08lx has bad checksum %02x\n",
|
||||
user_to_phys ( start, offset ), sum );
|
||||
virt_to_phys ( start + offset ), sum );
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Fill result structure */
|
||||
DBG ( "Found SMBIOS3 v%d.%d entry point at %08lx\n",
|
||||
entry->major, entry->minor,
|
||||
user_to_phys ( start, offset ) );
|
||||
virt_to_phys ( start + offset ) );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user