File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
building/linux64ARMv8/squeak.cog.spur Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ if [ `uname` = "OpenBSD" ]; then
1414 LIBRT=" "
1515# OpenBSD has problems with fast-bitblt under gcc and clang
1616 FASTBITBLT=" "
17+ OPT=" $OPT -DMUSL"
1718# Prefer clang over gcc if available
1819 if [ -n " $( command -v clang || true) " ]; then CC=clang; else CC=gcc; fi
1920else # non-OpenBSD Linux
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ INSTALLDIR=sqcogspur64ARMv8linuxht
66# tpr - add enablementisation of fast bitblt ben avison code
77MACHINE=" -march=armv8-a -mtune=cortex-a72"
88OPT=" -g -O2 -DNDEBUG -DDEBUGVM=0 -D_GNU_SOURCE -DUSEEVDEV"
9+
910# #OPT="-g -O3 -DMUSL -DNDEBUG -DDEBUGVM=0"
1011
1112if [ ` uname` = " OpenBSD" ]; then
@@ -16,6 +17,7 @@ if [ `uname` = "OpenBSD" ]; then
1617 LIBRT=" "
1718# OpenBSD has problems with fast-bitblt under gcc and clang
1819 FASTBITBLT=" "
20+ OPT=" $OPT -DMUSL"
1921# Prefer clang over gcc if available
2022 if [ -n " $( command -v clang || true) " ]; then CC=clang; else CC=gcc; fi
2123else # non-OpenBSD Linux
Original file line number Diff line number Diff line change @@ -87,7 +87,11 @@ int mmapErrno = 0;
8787#endif
8888
8989#define MAP_PROT (PROT_READ | PROT_WRITE)
90+ #ifdef __OpenBSD__
91+ #define MAP_FLAGS (MAP_ANON | MAP_PRIVATE | MAP_STACK)
92+ #else
9093#define MAP_FLAGS (MAP_ANON | MAP_PRIVATE)
94+ #endif
9195
9296extern int useMmap ;
9397/* Since Cog needs to make memory executable via mprotect, and since mprotect
You can’t perform that action at this time.
0 commit comments