From 96a7c6ffdc413aeae52a2fcf5becf2fbf99be346 Mon Sep 17 00:00:00 2001 From: schulz Date: Tue, 14 Feb 2017 10:30:03 +0000 Subject: [PATCH] lock is 32bits long. Using type "long" would promote 64bits on x86_64... git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@53632 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/include/aros/types/spinlock_s.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/include/aros/types/spinlock_s.h b/compiler/include/aros/types/spinlock_s.h index 7970a0d924..cc621d701c 100644 --- a/compiler/include/aros/types/spinlock_s.h +++ b/compiler/include/aros/types/spinlock_s.h @@ -14,7 +14,7 @@ typedef struct { unsigned int updating : 1; } slock; volatile unsigned char block[4]; - volatile unsigned long lock; + volatile unsigned int lock; }; } __attribute__((__aligned__(128))) spinlock_t; -- 2.11.4.GIT