kernel to panic in normal operation, so this function should
only be used during kernel initialization. */
void *
-xmalloc (size_t size)
+malloc_or_panic (size_t size)
{
void *p = malloc (size);
if (p == NULL && size > 0)
kernel to panic in normal operation, so this function should
only be used during kernel initialization. */
void *
-xcalloc (size_t a, size_t b)
+calloc_or_panic (size_t a, size_t b)
{
void *p = calloc (a, b);
if (p == NULL && a > 0 && b > 0)
void malloc_init (void);
void *malloc (size_t) __attribute__ ((malloc));
-void *xmalloc (size_t) __attribute__ ((malloc));
+void *malloc_or_panic (size_t) __attribute__ ((malloc));
void *calloc (size_t, size_t) __attribute__ ((malloc));
-void *xcalloc (size_t, size_t) __attribute__ ((malloc));
+void *calloc_or_panic (size_t, size_t) __attribute__ ((malloc));
void free (void *);
#endif /* threads/malloc.h */