From 50b8debead304385abb00a1500eee1e79a832a33 Mon Sep 17 00:00:00 2001 From: Franklin S Cooper Jr Date: Fri, 26 Sep 2014 19:07:34 -0500 Subject: [PATCH] MemArena.cpp: Fix Bus Error when running on Beaglebone/Beaglebone Black * Similar to commit 178891b57608a8df1541b3f7fc6ee83ad1b50989 when running the emulator a "Bus Error" would be given andn will cause a seg fault immediately. * When running on the BB change the path of the ram temp file to a valid location. Signed-off-by: Franklin S Cooper Jr --- Common/MemArena.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common/MemArena.cpp b/Common/MemArena.cpp index 1414afe549..2dbf2a17dd 100644 --- a/Common/MemArena.cpp +++ b/Common/MemArena.cpp @@ -99,6 +99,8 @@ int ashmem_unpin_region(int fd, size_t offset, size_t len) // do not make this "static" #ifdef MAEMO std::string ram_temp_file = "/home/user/gc_mem.tmp"; +#elif defined(BB) +std::string ram_temp_file = "/home/root/gc_mem.tmp"; #else std::string ram_temp_file = "/tmp/gc_mem.tmp"; #endif