Home | History | Annotate | Line # | Download | only in nbfs
      1 /* $NetBSD: rmalloc.c,v 1.2 2006/07/13 16:48:18 bjh21 Exp $ */
      2 
      3 #include <lib/libsa/stand.h>
      4 #include <riscoscalls.h>
      5 
      6 void *
      7 alloc(size_t size)
      8 {
      9 	void *ret;
     10 
     11 	if (xosmodule_alloc(size, &ret) != NULL)
     12 		return NULL;
     13 	return ret;
     14 }
     15 
     16 void dealloc(void *ptr, size_t size)
     17 {
     18 
     19 	xosmodule_free(ptr);
     20 }
     21