summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-11-17 09:00:42 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2018-11-17 09:04:05 -0500
commite36edaee5568abce2cdfaba1f5c229a882cbd40f (patch)
tree4e4cfdaa20815b7ffd896758b90c8660a3c042c9
parent03718bdb76a3d9dd9a28caf862d590e78a6739aa (diff)
downloadrockbox-e36edaee5568abce2cdfaba1f5c229a882cbd40f.tar.gz
rockbox-e36edaee5568abce2cdfaba1f5c229a882cbd40f.tar.bz2
rockbox-e36edaee5568abce2cdfaba1f5c229a882cbd40f.zip
Lua fix crash on arm devices
This is a seemingly random bug that only affects (as far as I can tell) arm devices it isn't actually random as code changes cause it to appear/disappear based on alignment Change-Id: I4cbc4370677959319f8589fe454e854c45623468
-rw-r--r--apps/plugins/lua/rocklib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h
index c8d1366ba6..5d3abe30ec 100644
--- a/apps/plugins/lua/rocklib.h
+++ b/apps/plugins/lua/rocklib.h
@@ -45,7 +45,7 @@ struct lua_str_reg {
char const* value;
};
-LUALIB_API int (luaopen_rock) (lua_State *L);
+LUALIB_API int (luaopen_rock) (lua_State *L) __attribute__((aligned(0x8)));
int get_current_path(lua_State *L, int level);
int filetol(int fd, long *num);