doc/manual/en/html/node87.html
changeset 249 d328d0d9b88e
parent 248 7fedc55c14d5
child 250 39e22f84ce6e
equal deleted inserted replaced
248:7fedc55c14d5 249:d328d0d9b88e
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       
     2 
       
     3 <!--Converted with LaTeX2HTML 2002-2-1 (1.71)
       
     4 original version by:  Nikos Drakos, CBLU, University of Leeds
       
     5 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
       
     6 * with significant contributions from:
       
     7   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
       
     8 <HTML>
       
     9 <HEAD>
       
    10 <TITLE>Code for GCC</TITLE>
       
    11 <META NAME="description" CONTENT="Code for GCC">
       
    12 <META NAME="keywords" CONTENT="manual">
       
    13 <META NAME="resource-type" CONTENT="document">
       
    14 <META NAME="distribution" CONTENT="global">
       
    15 
       
    16 <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
       
    17 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
       
    18 
       
    19 <LINK REL="STYLESHEET" HREF="manual.css">
       
    20 
       
    21 <LINK REL="next" HREF="node88.html">
       
    22 <LINK REL="previous" HREF="node86.html">
       
    23 <LINK REL="up" HREF="node86.html">
       
    24 <LINK REL="next" HREF="node88.html">
       
    25 </HEAD>
       
    26 
       
    27 <BODY >
       
    28 
       
    29 <DIV CLASS="navigation"><!--Navigation Panel-->
       
    30 <A NAME="tex2html1307"
       
    31   HREF="node88.html">
       
    32 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
       
    33  SRC="/usr/share/latex2html/icons/next.png"></A> 
       
    34 <A NAME="tex2html1303"
       
    35   HREF="node86.html">
       
    36 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
       
    37  SRC="/usr/share/latex2html/icons/up.png"></A> 
       
    38 <A NAME="tex2html1297"
       
    39   HREF="node86.html">
       
    40 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
       
    41  SRC="/usr/share/latex2html/icons/prev.png"></A> 
       
    42 <A NAME="tex2html1305"
       
    43   HREF="node1.html">
       
    44 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
       
    45  SRC="/usr/share/latex2html/icons/contents.png"></A>  
       
    46 <BR>
       
    47 <B> Next:</B> <A NAME="tex2html1308"
       
    48   HREF="node88.html">Code for CodeWarrior</A>
       
    49 <B> Up:</B> <A NAME="tex2html1304"
       
    50   HREF="node86.html">Interrupt lock, unlock</A>
       
    51 <B> Previous:</B> <A NAME="tex2html1298"
       
    52   HREF="node86.html">Interrupt lock, unlock</A>
       
    53  &nbsp; <B>  <A NAME="tex2html1306"
       
    54   HREF="node1.html">Contents</A></B> 
       
    55 <BR>
       
    56 <BR></DIV>
       
    57 <!--End of Navigation Panel-->
       
    58 
       
    59 <H5><A NAME="SECTION000114221000000000000">
       
    60 Code for GCC</A>
       
    61 </H5>
       
    62 <TT> void unlock (void)
       
    63 <BR>
       
    64  {
       
    65 <BR>
       
    66   
       
    67 <BR>
       
    68 __asm__
       
    69 __volatile__(cli);
       
    70 <BR>
       
    71  }
       
    72 <BR>
       
    73 void lock (void)
       
    74 <BR>
       
    75  {
       
    76 <BR>
       
    77 short mask;
       
    78 <BR>
       
    79   
       
    80 <BR>
       
    81 __asm__
       
    82 __volatile__(tpa&#92;n&#92;tsei:=d(mask));
       
    83 <BR>
       
    84  }</TT>
       
    85 
       
    86 <P>
       
    87 <BR><HR>
       
    88 <ADDRESS>
       
    89 epimerde
       
    90 2007-06-08
       
    91 </ADDRESS>
       
    92 </BODY>
       
    93 </HTML>