Mesa (master): auxilary/os: Add DragonFly BSD support in os_get_total_physical_memory.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Oct 14 06:41:51 UTC 2014
Module: Mesa
Branch: master
Commit: a2fd55cfb65d3933c27ed6c2259966a98acc55eb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2fd55cfb65d3933c27ed6c2259966a98acc55eb
Author: Vinson Lee <vlee at freedesktop.org>
Date: Fri Oct 10 22:40:21 2014 -0700
auxilary/os: Add DragonFly BSD support in os_get_total_physical_memory.
This patch fixes this build error on DragonFly BSD.
CC os/os_misc.lo
os/os_misc.c: In function 'os_get_total_physical_memory':
os/os_misc.c:132:2: error: #error Unsupported *BSD
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/gallium/auxiliary/os/os_misc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/os/os_misc.c b/src/gallium/auxiliary/os/os_misc.c
index 4c5a22d..ebf033c 100644
--- a/src/gallium/auxiliary/os/os_misc.c
+++ b/src/gallium/auxiliary/os/os_misc.c
@@ -128,6 +128,8 @@ os_get_total_physical_memory(uint64_t *size)
mib[1] = HW_PHYSMEM64;
#elif defined(PIPE_OS_FREEBSD)
mib[1] = HW_REALMEM;
+#elif defined(PIPE_OS_DRAGONFLY)
+ mib[1] = HW_PHYSMEM;
#else
#error Unsupported *BSD
#endif
More information about the mesa-commit
mailing list