2 #include <gpxe/uaccess.h>
3 #include <gpxe/umalloc.h>
4 #include <gpxe/memmap.h>
6 void umalloc_test ( void ) {
7 struct memory_map memmap
;
11 printf ( "Before allocation:\n" );
12 get_memmap ( &memmap
);
14 bob
= umalloc ( 1234 );
15 bob
= urealloc ( bob
, 12345 );
16 fred
= umalloc ( 999 );
18 printf ( "After allocation:\n" );
19 get_memmap ( &memmap
);
24 printf ( "After freeing:\n" );
25 get_memmap ( &memmap
);