****************************************************************/
// Obtain memory from a given zone.
-static void *
+static void * __malloc
zone_malloc(struct zone_s *zone, u32 size, u32 align)
{
u32 oldpos = GET_PMMVAR(zone->cur);
struct pmmalloc_s *PMMAllocs VAR32FLATVISIBLE;
// Allocate memory from the given zone and track it as a PMM allocation
-void *
+void * __malloc
pmm_malloc(struct zone_s *zone, u32 handle, u32 size, u32 align)
{
u32 oldallocdata = GET_PMMVAR(ZoneTmpHigh.cur);
#define noinline __attribute__((noinline))
#define __always_inline inline __attribute__((always_inline))
+#define __malloc __attribute__((__malloc__))
#define __attribute_const __attribute__((__const__))
#define __stringify_1(x) #x