From 7fc4533b321fbe7ef6ce0ef05e3b99cebe13a39e Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 8 Dec 2005 15:24:02 +0100 Subject: Merge in the newer Xenbus implementation from Linux to the Mini-OS. The new version compiles and starts up, but I'm not really sure how to test the new xenbus implementation. * Added unbind_evtchn * Copied parts of the Linux spinlock implementation to make the changes to xenbus compared to Linux smaller. Also added a dummy rwsem implementation. * Updated the xenbus-files Signed-off-by: Simon Kagstrom --- extras/mini-os/include/xmalloc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extras/mini-os/include/xmalloc.h') diff --git a/extras/mini-os/include/xmalloc.h b/extras/mini-os/include/xmalloc.h index e29a0387fc..f5e721fa16 100644 --- a/extras/mini-os/include/xmalloc.h +++ b/extras/mini-os/include/xmalloc.h @@ -7,6 +7,9 @@ /* Allocate space for array of typed objects. */ #define xmalloc_array(_type, _num) ((_type *)_xmalloc_array(sizeof(_type), __alignof__(_type), _num)) +#define malloc(size) _xmalloc(size, 4) +#define free(ptr) xfree(ptr) + /* Free any of the above. */ extern void xfree(const void *); -- cgit v1.2.3