aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common/erl_mseg.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-11-08 11:24:40 +0100
committerSverker Eriksson <[email protected]>2012-11-15 14:20:36 +0100
commit4ca2d66fb51e1f3bb85d420c339fb73c5fb6bc62 (patch)
treef0d4e86decddaa54cb1c98d3b9159e59fef00a31 /erts/emulator/sys/common/erl_mseg.h
parentde03018e74bea97795895f1611abf2a50a484449 (diff)
downloadotp-4ca2d66fb51e1f3bb85d420c339fb73c5fb6bc62.tar.gz
otp-4ca2d66fb51e1f3bb85d420c339fb73c5fb6bc62.tar.bz2
otp-4ca2d66fb51e1f3bb85d420c339fb73c5fb6bc62.zip
erts: Move carrier alignment define to erl_msg.h
Diffstat (limited to 'erts/emulator/sys/common/erl_mseg.h')
-rw-r--r--erts/emulator/sys/common/erl_mseg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/sys/common/erl_mseg.h b/erts/emulator/sys/common/erl_mseg.h
index 460e4a514a..91e335b225 100644
--- a/erts/emulator/sys/common/erl_mseg.h
+++ b/erts/emulator/sys/common/erl_mseg.h
@@ -33,13 +33,16 @@
#if HAVE_MMAP
# define HAVE_ERTS_MSEG 1
# define HAVE_SUPER_ALIGNED_MB_CARRIERS 1
+# define MSEG_ALIGN_BITS (17) /*SVERK Configure me! */
#else
# define HAVE_ERTS_MSEG 0
# define HAVE_SUPER_ALIGNED_MB_CARRIERS 0
+# define MSEG_ALIGN_BITS (12) /*SVERK Configure me! */
#endif
#if HAVE_ERTS_MSEG
+#define MSEG_ALIGNED_SIZE (1 << MSEG_ALIGN_BITS)
#define ERTS_MSEG_FLG_NONE ((Uint)(0))
#define ERTS_MSEG_FLG_2POW ((Uint)(1 << 0))