mirror of
https://github.com/ipxe/ipxe
synced 2026-02-07 19:38:57 +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:
@@ -130,9 +130,9 @@ static void dma_op_free ( struct dma_mapping *map, void *addr, size_t len ) {
|
||||
* @v align Physical alignment
|
||||
* @ret addr Buffer address, or NULL on error
|
||||
*/
|
||||
static userptr_t dma_op_umalloc ( struct dma_device *dma,
|
||||
struct dma_mapping *map,
|
||||
size_t len, size_t align ) {
|
||||
static void * dma_op_umalloc ( struct dma_device *dma,
|
||||
struct dma_mapping *map,
|
||||
size_t len, size_t align ) {
|
||||
struct dma_operations *op = dma->op;
|
||||
|
||||
if ( ! op )
|
||||
@@ -147,8 +147,7 @@ static userptr_t dma_op_umalloc ( struct dma_device *dma,
|
||||
* @v addr Buffer address
|
||||
* @v len Length of buffer
|
||||
*/
|
||||
static void dma_op_ufree ( struct dma_mapping *map, userptr_t addr,
|
||||
size_t len ) {
|
||||
static void dma_op_ufree ( struct dma_mapping *map, void *addr, size_t len ) {
|
||||
struct dma_device *dma = map->dma;
|
||||
|
||||
assert ( dma != NULL );
|
||||
|
||||
Reference in New Issue
Block a user