diff options
Diffstat (limited to 'bsps/sparc/shared/iommu/griommu.c')
-rw-r--r-- | bsps/sparc/shared/iommu/griommu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bsps/sparc/shared/iommu/griommu.c b/bsps/sparc/shared/iommu/griommu.c index c6c87df6d6..69d8672057 100644 --- a/bsps/sparc/shared/iommu/griommu.c +++ b/bsps/sparc/shared/iommu/griommu.c @@ -19,6 +19,8 @@ #include <bsp.h> #include <bsp/griommu.h> +#include <grlib_impl.h> + /*#define STATIC*/ #define STATIC static @@ -1027,7 +1029,7 @@ void * griommu_apv_new(void) } /* Allocate APV */ - unsigned int * orig_ptr = (unsigned int *) malloc( + unsigned int * orig_ptr = grlib_malloc( (GRIOMMU_APV_SIZE/priv->pagesize) + GRIOMMU_APV_ALIGN); if (orig_ptr == NULL) return NULL; |