templeos-info/public/Wb/Kernel/KExcept.HC.HTML

181 lines
22 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<a name="l1"></a><span class=cF1>asm</span><span class=cF0> {
<a name="l2"></a>#</span><span class=cF1>assert</span><span class=cF0> !(</span><span class=cF7>(</span><span class=cF3>REGG_LOCAL_NON_PTR_VARS</span><span class=cF0>|</span><span class=cF3>REGG_LOCAL_VARS</span><span class=cF7>)</span><span class=cF0>&amp;~0xFCC0)
<a name="l3"></a></span><span class=cFD>_TEST_EXCEPT</span><span class=cF0>::
<a name="l4"></a> </span><span class=cF1>XOR</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>,</span><span class=cFC>RAX</span><span class=cF0>
<a name="l5"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>,</span><span class=cFC>FS</span><span class=cF0>:</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CTask</span><span class=cF0>.last_except[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l6"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rbp[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l7"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RSI</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rsi[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l8"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RDI</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rdi[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l9"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>R10</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r10[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l10"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>R11</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r11[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l11"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>R12</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r12[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l12"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>R13</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r13[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l13"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>R14</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r14[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l14"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>R15</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r15[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l15"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rflags[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l16"></a> </span><span class=cF1>POPFD</span><span class=cF0>
<a name="l17"></a> </span><span class=cF1>JMP</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.hndlr_catch[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l18"></a>
<a name="l19"></a></span><span class=cFD>_TAKE_EXCEPT</span><span class=cF0>::
<a name="l20"></a> </span><span class=cF1>XOR</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>,</span><span class=cFC>RAX</span><span class=cF0>
<a name="l21"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>,</span><span class=cFC>FS</span><span class=cF0>:</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CTask</span><span class=cF0>.last_except[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l22"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RSP</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rsp[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l23"></a> </span><span class=cF1>JMP</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.hndlr_untry[</span><span class=cFC>RAX</span><span class=cF0>]
<a name="l24"></a>
<a name="l25"></a></span><span class=cFD>_SAVE_EXCEPT_REGS</span><span class=cF0>::
<a name="l26"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>
<a name="l27"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>,</span><span class=cFC>RSP</span><span class=cF0>
<a name="l28"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>,</span><span class=cF9>U64</span><span class=cF0> </span><span class=cF3>SF_ARG1</span><span class=cF0>[</span><span class=cFC>RBP</span><span class=cF0>]
<a name="l29"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rsi[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>RSI</span><span class=cF0>
<a name="l30"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.rdi[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>RDI</span><span class=cF0>
<a name="l31"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r10[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>R10</span><span class=cF0>
<a name="l32"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r11[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>R11</span><span class=cF0>
<a name="l33"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r12[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>R12</span><span class=cF0>
<a name="l34"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r13[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>R13</span><span class=cF0>
<a name="l35"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r14[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>R14</span><span class=cF0>
<a name="l36"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF9>CExcept</span><span class=cF0>.r15[</span><span class=cFC>RAX</span><span class=cF0>],</span><span class=cFC>R15</span><span class=cF0>
<a name="l37"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>
<a name="l38"></a> </span><span class=cF1>RET1</span><span class=cF0> 8
<a name="l39"></a>}
<a name="l40"></a>
<a name="l41"></a></span><span class=cF1>_extern</span><span class=cF0> </span><span class=cFD>_TEST_EXCEPT</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TestExcept();
<a name="l42"></a></span><span class=cF1>_extern</span><span class=cF0> </span><span class=cFD>_TAKE_EXCEPT</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> TakeExcept();
<a name="l43"></a></span><span class=cF1>_extern</span><span class=cF0> </span><span class=cFD>_SAVE_EXCEPT_REGS</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> SaveExceptRegs(</span><span class=cF9>CExcept</span><span class=cF0> *t);
<a name="l44"></a>
<a name="l45"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>PutExcept</span><span class=cF0>(</span><span class=cF1>Bool</span><span class=cF0> catch_it=</span><span class=cF3>TRUE</span><span class=cF0>)
<a name="l46"></a>{</span><span class=cF2>//Print exception msg and catch exception.</span><span class=cF0>
<a name="l47"></a> </span><span class=cF6>&quot;Except:%c:&quot;</span><span class=cF0>,</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_ch;
<a name="l48"></a> </span><span class=cF6>&quot;%P:%P:%P:%P:%P:%P\n&quot;</span><span class=cF0>,</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[0],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[1],
<a name="l49"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[2],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[3],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[4],
<a name="l50"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[5],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[6],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[7];
<a name="l51"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;catch_except=catch_it;
<a name="l52"></a>}
<a name="l53"></a>
<a name="l54"></a>#</span><span class=cF1>exe</span><span class=cF0> {</span><span class=cF5>Option</span><span class=cF0>(</span><span class=cF3>OPTf_NO_REG_VAR</span><span class=cF0>,</span><span class=cF3>ON</span><span class=cF0>);};
<a name="l55"></a>
<a name="l56"></a></span><span class=cF1>class</span><span class=cF0> CTryStk
<a name="l57"></a>{
<a name="l58"></a> </span><span class=cF9>I64</span><span class=cF0> rbp;
<a name="l59"></a> </span><span class=cF9>I64</span><span class=cF0> ret_rip;
<a name="l60"></a> </span><span class=cF9>I64</span><span class=cF0> arg1;
<a name="l61"></a> </span><span class=cF9>I64</span><span class=cF0> arg2;
<a name="l62"></a>};
<a name="l63"></a>
<a name="l64"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>SysTry</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *catch_start,</span><span class=cF1>U8</span><span class=cF0> *untry_start)
<a name="l65"></a>{
<a name="l66"></a> </span><span class=cF9>I64</span><span class=cF0> *rbp=</span><span class=cF5>GetRBP</span><span class=cF0>;
<a name="l67"></a> </span><span class=cF9>CExcept</span><span class=cF0> *tmpt=</span><span class=cF5>MAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CExcept</span><span class=cF7>)</span><span class=cF0>);
<a name="l68"></a> tmpt-&gt;hndlr_catch=catch_start;
<a name="l69"></a> tmpt-&gt;hndlr_untry=untry_start;
<a name="l70"></a> tmpt-&gt;rsp=rbp(</span><span class=cF1>U8</span><span class=cF0> *)+</span><span class=cF1>sizeof</span><span class=cF0>(CTryStk);
<a name="l71"></a> tmpt-&gt;rbp=*rbp;
<a name="l72"></a> tmpt-&gt;rflags=</span><span class=cF5>GetRFlags</span><span class=cF0>;
<a name="l73"></a> SaveExceptRegs(tmpt);
<a name="l74"></a> </span><span class=cF5>QueIns</span><span class=cF0>(tmpt,</span><span class=cF5>Fs</span><span class=cF0>-&gt;last_except);
<a name="l75"></a>}
<a name="l76"></a>
<a name="l77"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>SysUntry</span><span class=cF0>()
<a name="l78"></a>{
<a name="l79"></a> </span><span class=cF9>CExcept</span><span class=cF0> *tmpt=</span><span class=cF5>Fs</span><span class=cF0>-&gt;last_except;
<a name="l80"></a> </span><span class=cF5>QueRem</span><span class=cF0>(tmpt);
<a name="l81"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpt);
<a name="l82"></a>}
<a name="l83"></a>
<a name="l84"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>throw</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> ch=0,</span><span class=cF1>Bool</span><span class=cF0> no_log=</span><span class=cF3>FALSE</span><span class=cF0>)
<a name="l85"></a>{</span><span class=cF2>//ch can be up to 8 chars like </span><a href="/Wb/Kernel/KeyDev.HC.HTML#l20"><span class=cF4>PutChars</span></a><span class=cF2>().</span><span class=cF0>
<a name="l86"></a></span><span class=cF2>//In the catcher, fetch ch from Fs-&gt;except_ch.</span><span class=cF0>
<a name="l87"></a> </span><span class=cF9>CExcept</span><span class=cF0> *tmpt=</span><span class=cF5>Fs</span><span class=cF0>-&gt;last_except;
<a name="l88"></a> </span><span class=cF1>Bool</span><span class=cF0> was_raw;
<a name="l89"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l90"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_ch=ch;
<a name="l91"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i&lt;</span><span class=cF3>TASK_EXCEPT_CALLERS</span><span class=cF0>;i++)
<a name="l92"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[i]=</span><span class=cF5>Caller</span><span class=cF0>(i+1);
<a name="l93"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_rbp=</span><span class=cF5>GetRBP</span><span class=cF0>;
<a name="l94"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;catch_except=</span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l95"></a> </span><span class=cF1>if</span><span class=cF0> (!no_log)
<a name="l96"></a> </span><span class=cF5>AdamLog</span><span class=cF0>(</span><span class=cF6>&quot;Except:%c:%p:%p:%p:%p:%p:%p\n&quot;</span><span class=cF0>,ch,</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[0],
<a name="l97"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[1],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[2],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[3],
<a name="l98"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[4],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[5],</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[6],
<a name="l99"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;except_callers[7]);
<a name="l100"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF5>Fs</span><span class=cF0>-&gt;next_except!=&amp;</span><span class=cF5>Fs</span><span class=cF0>-&gt;next_except) </span><span class=cF7>{</span><span class=cF0>
<a name="l101"></a> TestExcept;
<a name="l102"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Fs</span><span class=cF0>-&gt;catch_except)
<a name="l103"></a> TakeExcept;
<a name="l104"></a> </span><span class=cF5>SetRBP</span><span class=cF0>(</span><span class=cF5>Fs</span><span class=cF0>-&gt;except_rbp);
<a name="l105"></a> tmpt=</span><span class=cF5>Fs</span><span class=cF0>-&gt;last_except;
<a name="l106"></a> </span><span class=cF5>QueRem</span><span class=cF0>(tmpt);
<a name="l107"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpt);
<a name="l108"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l109"></a> was_raw=</span><span class=cF5>Raw</span><span class=cF0>(</span><span class=cF3>ON</span><span class=cF0>);
<a name="l110"></a> </span><span class=cF5>PutExcept</span><span class=cF0>(</span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l111"></a> </span><span class=cF5>Panic</span><span class=cF0>(</span><span class=cF6>&quot;Unhandled Exception&quot;</span><span class=cF0>);
<a name="l112"></a> </span><span class=cF5>Raw</span><span class=cF0>(was_raw);
<a name="l113"></a>}
<a name="l114"></a>
<a name="l115"></a>#</span><span class=cF1>exe</span><span class=cF0> {</span><span class=cF5>Option</span><span class=cF0>(</span><span class=cF3>OPTf_NO_REG_VAR</span><span class=cF0>,</span><span class=cF3>OFF</span><span class=cF0>);};
<a name="l116"></a>
<a name="l117"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>Break</span><span class=cF0>()
<a name="l118"></a>{</span><span class=cF2>//Send &lt;CTRL-ALT-c&gt;.</span><span class=cF0>
<a name="l119"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;</span><span class=cF5>Fs</span><span class=cF0>-&gt;task_flags,</span><span class=cF3>TASKf_BREAK_TO_SHIFT_ESC</span><span class=cF7>)</span><span class=cF0>)
<a name="l120"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>,0x20100000201);
<a name="l121"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l122"></a> </span><span class=cF5>Fs</span><span class=cF0>-&gt;wake_jiffy=0;
<a name="l123"></a> </span><span class=cF5>TaskRstAwaitingMsg</span><span class=cF0>;
<a name="l124"></a> </span><span class=cF5>DrvsRelease</span><span class=cF0>();
<a name="l125"></a> </span><span class=cF5>BlkDevsRelease</span><span class=cF0>();
<a name="l126"></a> </span><span class=cF5>FlushMsgs</span><span class=cF0>;
<a name="l127"></a> </span><span class=cF5>throw</span><span class=cF0>(</span><span class=cF6>'Break'</span><span class=cF0>);
<a name="l128"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l129"></a>}
<a name="l130"></a>
<a name="l131"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>BreakLock</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF3>NULL</span><span class=cF0>)
<a name="l132"></a>{</span><span class=cF2>//Disables &lt;CTRL-ALT-c&gt;.</span><span class=cF0>
<a name="l133"></a> </span><span class=cF1>if</span><span class=cF0> (!task) task=</span><span class=cF5>Fs</span><span class=cF0>;
<a name="l134"></a> </span><span class=cF1>return</span><span class=cF0> !</span><span class=cF5>LBts</span><span class=cF0>(&amp;task-&gt;task_flags,</span><span class=cF3>TASKf_BREAK_LOCKED</span><span class=cF0>);
<a name="l135"></a>}
<a name="l136"></a>
<a name="l137"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>BreakUnlock</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF3>NULL</span><span class=cF0>)
<a name="l138"></a>{</span><span class=cF2>//Reenables &lt;CTRL-ALT-c&gt; and issues any pending breaks.</span><span class=cF0>
<a name="l139"></a> </span><span class=cF1>Bool</span><span class=cF0> res;
<a name="l140"></a> </span><span class=cF1>if</span><span class=cF0> (!task) task=</span><span class=cF5>Fs</span><span class=cF0>;
<a name="l141"></a> res=</span><span class=cF5>LBtr</span><span class=cF0>(&amp;task-&gt;task_flags,</span><span class=cF3>TASKf_BREAK_LOCKED</span><span class=cF0>);
<a name="l142"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>LBtr</span><span class=cF7>(</span><span class=cF0>&amp;task-&gt;task_flags,</span><span class=cF3>TASKf_PENDING_BREAK</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l143"></a> </span><span class=cF1>if</span><span class=cF0> (task==</span><span class=cF5>Fs</span><span class=cF0>)
<a name="l144"></a> </span><span class=cF5>Break</span><span class=cF0>;
<a name="l145"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l146"></a> task-&gt;rip=&amp;</span><span class=cF5>Break</span><span class=cF0>;
<a name="l147"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l148"></a> </span><span class=cF1>return</span><span class=cF0> res;
<a name="l149"></a>}
</span></pre></body>
</html>