aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-04 13:27:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-04 13:27:27 +0000
commitdd96bdcd511d158d80d2ef64b47c46fcb8219d5a (patch)
tree396b376976d5dbe5caf2aec4721c2db625acd0a1 /demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c
parentcbf137ed955b30d8695d881aa8d16f1a723b89b5 (diff)
downloadChibiOS-dd96bdcd511d158d80d2ef64b47c46fcb8219d5a.tar.gz
ChibiOS-dd96bdcd511d158d80d2ef64b47c46fcb8219d5a.tar.bz2
ChibiOS-dd96bdcd511d158d80d2ef64b47c46fcb8219d5a.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1204 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c
index 329e0f8de..7d39c9520 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/arch/sys_arch.c
@@ -98,7 +98,7 @@ sys_mbox_t sys_mbox_new(int size) {
sys_mbox_t mbox;
mbox = chHeapAlloc(sizeof(Mailbox) + sizeof(msg_t) * size);
- chMBInit(mbox, (void *)(mbox + 1), size);
+ chMBInit(mbox, (void *)(((uint8_t *)mbox) + sizeof(Mailbox)), size);
return mbox;
}