mirror of
https://github.com/ipxe/ipxe
synced 2026-01-22 03:32:59 +03:00
[umalloc] Remove userptr_t from user memory allocations
Use standard void pointers for umalloc(), urealloc(), and ufree(),
with the "u" prefix retained to indicate that these allocations are
made from external ("user") memory rather than from the internal heap.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <ipxe/uaccess.h>
|
||||
#include <ipxe/umalloc.h>
|
||||
#include <ipxe/io.h>
|
||||
|
||||
void umalloc_test ( void ) {
|
||||
struct memory_map memmap;
|
||||
userptr_t bob;
|
||||
userptr_t fred;
|
||||
void *bob;
|
||||
void *fred;
|
||||
|
||||
printf ( "Before allocation:\n" );
|
||||
get_memmap ( &memmap );
|
||||
|
||||
Reference in New Issue
Block a user