X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu.h;h=1c8a62f387df5f85d449142958f491d09b84ce8d;hb=edce74d23db44bb7857440e8144484dc73c22ee9;hp=44c123ede2d543facf1ab686529d22a8aad32dfd;hpb=9e65a04fb4ea28b482012fc5b6077a06efe4afae;p=bertos.git diff --git a/cpu.h b/cpu.h index 44c123ed..1c8a62f3 100755 --- a/cpu.h +++ b/cpu.h @@ -17,6 +17,12 @@ /*#* *#* $Log$ + *#* Revision 1.28 2004/12/31 17:39:41 bernie + *#* Fix documentation. + *#* + *#* Revision 1.27 2004/12/31 17:02:47 bernie + *#* IRQ_SAVE_DISABLE(), IRQ_RESTORE(): Add null stubs for x86. + *#* *#* Revision 1.26 2004/12/13 12:08:12 bernie *#* DISABLE_IRQSAVE, ENABLE_IRQRESTORE, DISABLE_INTS, ENABLE_INTS: Remove obsolete macros. *#* @@ -72,7 +78,7 @@ #ifndef DEVLIB_CPU_H #define DEVLIB_CPU_H -#include "compiler.h" /* for uintXX_t, PP_CAT3(), PP_STRINGIZE() */ +#include "compiler.h" /* for uintXX_t */ /*! @@ -108,6 +114,8 @@ #define NOP asm volatile ("nop") #define IRQ_DISABLE /* nothing */ #define IRQ_ENABLE /* nothing */ + #define IRQ_SAVE_DISABLE(x) /* nothing */ + #define IRQ_RESTORE(x) /* nothing */ typedef uint32_t cpuflags_t; // FIXME typedef uint32_t cpustack_t; @@ -371,7 +379,7 @@ STATIC_ASSERT(sizeof(int) == SIZEOF_INT); /*! - * \def SCHEDULER_IDLE + * \def CPU_IDLE * * \brief Invoked by the scheduler to stop the CPU when idle. *