From bc01dfddcc4df790e12cbe85da0a8a44b3b31c31 Mon Sep 17 00:00:00 2001 From: Shikhin Sethi Date: Mon, 19 May 2014 23:14:44 +0530 Subject: [PATCH] Added bits/wordsize.h. --- libc/include/bits/wordsize.h | 10 ++++++++++ platform/bcm2835/mailbox.c | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 libc/include/bits/wordsize.h diff --git a/libc/include/bits/wordsize.h b/libc/include/bits/wordsize.h new file mode 100644 index 0000000..9800695 --- /dev/null +++ b/libc/include/bits/wordsize.h @@ -0,0 +1,10 @@ +#ifndef _WORDSIZE_H +#define _WORDSIZE_H + +#ifdef __arm__ + #define __WORDSIZE 32 +#else + #error "Architecture not recognized." +#endif + +#endif /* _WORDSIZE_H */ diff --git a/platform/bcm2835/mailbox.c b/platform/bcm2835/mailbox.c index 84609fe..44fa3cf 100644 --- a/platform/bcm2835/mailbox.c +++ b/platform/bcm2835/mailbox.c @@ -43,7 +43,6 @@ uint32_t mailbox_read(uint8_t channel) data_memory_barrier(); uint32_t data; do { - timer_list_t timer; timer_setup(&timer, MAILBOX_TIMEOUT, 0, mailbox_read_timeout, 0); -- 2.11.4.GIT