mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
[uaccess] Add explicit casts to and from userptr_t where needed
Allow for the possibility of userptr_t becoming a pointer type by adding explicit casts where necessary. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -45,7 +45,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#define EM_ALIGN ( 4 * 1024 )
|
||||
|
||||
/** Equivalent of NOWHERE for user pointers */
|
||||
#define UNOWHERE ( ~UNULL )
|
||||
#define UNOWHERE ( ( userptr_t ) ~( ( intptr_t ) 0 ) )
|
||||
|
||||
/** An external memory block */
|
||||
struct external_memory {
|
||||
|
||||
Reference in New Issue
Block a user