From: bernie Date: Sun, 10 Aug 2008 09:13:31 +0000 (+0000) Subject: Fix PowerPC support X-Git-Tag: 2.0.0~345 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3e2d80120922e13d77e2497290f96a3f0ed08488;p=bertos.git Fix PowerPC support git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1589 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/os.h b/bertos/cfg/os.h index c29bd59e..cc1ebe69 100644 --- a/bertos/cfg/os.h +++ b/bertos/cfg/os.h @@ -53,10 +53,10 @@ // 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 diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index 2e20947f..290b73d7 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -62,7 +62,6 @@ #elif CPU_ARM - #ifdef __IAR_SYSTEMS_ICC__ #include @@ -154,11 +153,16 @@ #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 + #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