aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-10-07 11:16:12 +0200
committerRickard Green <[email protected]>2010-10-07 11:16:12 +0200
commit24094014aa9e6a5df6fe9ae56333b99c6e927826 (patch)
tree44054d3b07f131b69a300659b2422d766e297cee /erts/emulator/beam/erl_process.c
parent17224a3d31d25ce6daa4de63b52b26bee9564bcd (diff)
downloadotp-24094014aa9e6a5df6fe9ae56333b99c6e927826.tar.gz
otp-24094014aa9e6a5df6fe9ae56333b99c6e927826.tar.bz2
otp-24094014aa9e6a5df6fe9ae56333b99c6e927826.zip
Fix newly introduced halfword emulator bugs
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index 901167a315..b47ce97c46 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -2528,9 +2528,9 @@ erts_init_scheduling(int mrq, int no_schedulers, int no_schedulers_online)
aligned_sched_sleep_info = erts_alloc(ERTS_ALC_T_SCHDLR_SLP_INFO,
(sizeof(ErtsAlignedSchedulerSleepInfo)
*(n+1)));
- if ((((Uint) aligned_sched_sleep_info) & ERTS_CACHE_LINE_MASK) == 0)
+ if ((((UWord) aligned_sched_sleep_info) & ERTS_CACHE_LINE_MASK) == 0)
aligned_sched_sleep_info = ((ErtsAlignedSchedulerSleepInfo *)
- ((((Uint) aligned_sched_sleep_info)
+ ((((UWord) aligned_sched_sleep_info)
& ~ERTS_CACHE_LINE_MASK)
+ ERTS_CACHE_LINE_SIZE));
for (ix = 0; ix < n; ix++) {