From 93598cdccb8bebbead2bc1363fcdef92a78417f8 Mon Sep 17 00:00:00 2001 From: bernie Date: Sun, 18 Jul 2004 21:49:51 +0000 Subject: [PATCH] Fixes for GCC 3.5. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@50 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cpu.h b/cpu.h index 6403d53f..33587613 100755 --- a/cpu.h +++ b/cpu.h @@ -15,6 +15,9 @@ /* * $Log$ + * Revision 1.3 2004/07/18 21:49:51 bernie + * Fixes for GCC 3.5. + * * Revision 1.2 2004/06/03 11:27:09 bernie * Add dual-license information. * @@ -94,9 +97,9 @@ #elif defined (__AVR__) - #define NOP asm volatile ("nop") - #define DISABLE_INTS cli() - #define ENABLE_INTS sei() + #define NOP asm volatile ("nop" ::) + #define DISABLE_INTS asm volatile ("cli" ::) + #define ENABLE_INTS asm volatile ("sei" ::) #define SCHEDULER_IDLE /* nothing */ #define DISABLE_IRQSAVE(x) \ -- 2.25.1