diff options
| author | Rui Paulo <rpaulo@FreeBSD.org> | 2015-02-06 05:11:18 +0000 |
|---|---|---|
| committer | Rui Paulo <rpaulo@FreeBSD.org> | 2015-02-06 05:11:18 +0000 |
| commit | d6a9376028870754d7d3de3f626c1deb6df81092 (patch) | |
| tree | d09ea80ca5b38338fbfb381b7d0818f486343403 /src/common/tuklib_physmem.c | |
| parent | 9db922924cf9ffc4f7f66c21c93ceca8eb2b5259 (diff) | |
Diffstat (limited to 'src/common/tuklib_physmem.c')
| -rw-r--r-- | src/common/tuklib_physmem.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/tuklib_physmem.c b/src/common/tuklib_physmem.c index 623b6e70b7f2..3cc7d12a171f 100644 --- a/src/common/tuklib_physmem.c +++ b/src/common/tuklib_physmem.c @@ -33,6 +33,10 @@ # include <syidef.h> # include <ssdef.h> +#elif defined(AMIGA) || defined(__AROS__) +# define __USE_INLINE__ +# include <proto/exec.h> + // AIX #elif defined(TUKLIB_PHYSMEM_AIX) # include <sys/systemcfg.h> @@ -119,6 +123,9 @@ tuklib_physmem(void) if (LIB$GETSYI(&val, &vms_mem, 0, 0, 0, 0) == SS$_NORMAL) ret = (uint64_t)vms_mem * 8192; +#elif defined(AMIGA) || defined(__AROS__) + ret = AvailMem(MEMF_TOTAL); + #elif defined(TUKLIB_PHYSMEM_AIX) ret = _system_configuration.physmem; |
