Fix PowerPC support
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 10 Aug 2008 09:13:31 +0000 (09:13 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 10 Aug 2008 09:13:31 +0000 (09:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1589 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cfg/os.h
bertos/cpu/irq.h

index c29bd59ea5df387b8ca6cc9a96c2ad872d26b6d9..cc1ebe696989011005908e04b0c13de6ef9ca2a6 100644 (file)
 
        // FIXME: Maybe disable Win32 exceptions?
        typedef int cpuflags_t;
-       #define IRQ_DISABLE                /* FIXME */
-       #define IRQ_ENABLE                 /* FIXME */
-       #define IRQ_SAVE_DISABLE(old_sigs) /* FIXME */
-       #define IRQ_RESTORE(old_sigs)      /* FIXME */
+       #define IRQ_DISABLE                FIXME
+       #define IRQ_ENABLE                 FIXME
+       #define IRQ_SAVE_DISABLE(old_sigs) FIXME
+       #define IRQ_RESTORE(old_sigs)      FIXME
 
 #else
        #define OS_WIN32  0
index 2e20947f5ba53396eeb414495232f2eac4252d28..290b73d722d920380593d94dd4233da287abe39f 100644 (file)
@@ -62,7 +62,6 @@
 
 #elif CPU_ARM
 
-
        #ifdef __IAR_SYSTEMS_ICC__
 
                #include <inarm.h>
        #endif /* !__IAR_SYSTEMS_ICC_ */
 
 #elif CPU_PPC
-       #define IRQ_DISABLE         FIXME
-       #define IRQ_ENABLE          FIXME
-       #define IRQ_SAVE_DISABLE(x) FIXME
-       #define IRQ_RESTORE(x)      FIXME
-       #define IRQ_ENABLED()       FIXME
+
+       /* Get IRQ_* definitions from the hosting environment. */
+       #include <cfg/os.h>
+       #if OS_EMBEDDED
+               #define IRQ_DISABLE         FIXME
+               #define IRQ_ENABLE          FIXME
+               #define IRQ_SAVE_DISABLE(x) FIXME
+               #define IRQ_RESTORE(x)      FIXME
+               #define IRQ_ENABLED()       FIXME
+       #endif /* OS_EMBEDDED */
 
 #elif CPU_DSP56K