Skip to content

Commit 9adc505

Browse files
committed
arm64 OpenBSD
1 parent b5f212d commit 9adc505

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

building/linux64ARMv8/squeak.cog.spur/build.debug/mvm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
1920
else # non-OpenBSD Linux

building/linux64ARMv8/squeak.cog.spur/build/mvm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ INSTALLDIR=sqcogspur64ARMv8linuxht
66
# tpr - add enablementisation of fast bitblt ben avison code
77
MACHINE="-march=armv8-a -mtune=cortex-a72"
88
OPT="-g -O2 -DNDEBUG -DDEBUGVM=0 -D_GNU_SOURCE -DUSEEVDEV"
9+
910
##OPT="-g -O3 -DMUSL -DNDEBUG -DDEBUGVM=0"
1011

1112
if [ `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
2123
else # non-OpenBSD Linux

platforms/unix/vm/sqUnixMemory.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

9296
extern int useMmap;
9397
/* Since Cog needs to make memory executable via mprotect, and since mprotect

0 commit comments

Comments
 (0)