X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cfg%2Fos.h;h=320afdd5f518d3f4973ed7c032a22c649471ce99;hb=9f6832426387c3730bf2c9b6202db9eb8d159f42;hp=041650400fe91b0f3e7b55bbdf2c504bc774032d;hpb=2039edbef30cfdf57f9b8b50d622ce3f8be03d8e;p=bertos.git diff --git a/cfg/os.h b/cfg/os.h index 04165040..320afdd5 100755 --- a/cfg/os.h +++ b/cfg/os.h @@ -14,6 +14,12 @@ /*#* *#* $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. *#* @@ -74,7 +80,7 @@ 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) \ @@ -110,8 +116,6 @@ #define OS_QT 0 #endif - - /* * Summarize hosted environments as OS_HOSTED and embedded * environment with OS_EMBEDDED. @@ -122,6 +126,9 @@ #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 */