diff -r 2cb34a4ac65a -r 6b5a4c21e061 doc/manual/en/html/node87.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/manual/en/html/node87.html Tue Jun 05 18:43:21 2007 +0200 @@ -0,0 +1,93 @@ + + + + + +Code for GCC + + + + + + + + + + + + + + + + + + + + + +
+Code for GCC +
+ void unlock (void) +
+ { +
+ +
+__asm__ +__volatile__(cli); +
+ } +
+void lock (void) +
+ { +
+short mask; +
+ +
+__asm__ +__volatile__(tpa\n\tsei:=d(mask)); +
+ }
+ +

+


+
+epimerde +2007-06-05 +
+ +