/*#*
*#* $Log$
+ *#* Revision 1.5 2005/11/27 23:32:42 bernie
+ *#* Add CPU fallback for OS_ID.
+ *#*
+ *#* Revision 1.4 2005/11/27 03:07:13 bernie
+ *#* IRQ_SAVE_DISABLE(): Really block signals.
+ *#*
*#* Revision 1.3 2005/11/27 03:02:40 bernie
*#* Add POSIX emulation for IRQ_* macros; Add Qt support.
*#*
do { \
sigset_t sigs; \
sigemptyset(&sigs); \
- sigprocmask(SIG_SETMASK, &sigs, &old_sigs); \
+ sigprocmask(SIG_BLOCK, &sigs, &old_sigs); \
} while (0)
#define IRQ_RESTORE(old_sigs) \
#define OS_QT 0
#endif
-
-
/*
* Summarize hosted environments as OS_HOSTED and embedded
* environment with OS_EMBEDDED.
#else
#define OS_HOSTED 0
#define OS_EMBEDDED 1
+
+ /* Embedded environments fall back to CPU-specific code. */
+ #define OS_ID CPU_ID
#endif
/* Self-check for the detection */