2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
9 #include <aros/debug.h>
10 #include <exec/memory.h>
11 #include <exec/execbase.h>
12 #include <aros/libcall.h>
13 #include <proto/exec.h>
17 /*****************************************************************************
21 AROS_LH1(ULONG
, TypeOfMem
,
24 AROS_LHA(APTR
, address
, A1
),
27 struct ExecBase
*, SysBase
, 89, Exec
)
30 Return type of memory at a given address or 0 if there is no memory
34 address - Address to test
37 The memory flags you would give to AllocMem().
49 ******************************************************************************/
53 struct MemHeader
*mh
= FindMem(address
, SysBase
);
55 /* We have either found the memory or not */
56 return mh
? mh
->mh_Attributes
: 0;