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