263 lines
26 KiB
HTML
Executable File
263 lines
26 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=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"Info;Memory/Info;Cmd Line (Typically)"</span><span class=cF0>
|
|
<a name="l2"></a>
|
|
<a name="l3"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>TSSSize</span><span class=cF0>(</span><span class=cF9>CTSS</span><span class=cF0> *tss)
|
|
<a name="l4"></a>{
|
|
<a name="l5"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>MSize2</span><span class=cF0>(tss)+</span><span class=cF5>MSize2</span><span class=cF0>(tss->st0)+</span><span class=cF5>MSize2</span><span class=cF0>(tss->st1)+</span><span class=cF5>MSize2</span><span class=cF0>(tss->st2);
|
|
<a name="l6"></a>}
|
|
<a name="l7"></a>
|
|
<a name="l8"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PenBrushesSize</span><span class=cF0>()
|
|
<a name="l9"></a>{
|
|
<a name="l10"></a> </span><span class=cF9>I64</span><span class=cF0> res=0,i;
|
|
<a name="l11"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>GR_PEN_BRUSHES_NUM</span><span class=cF0>;i++)
|
|
<a name="l12"></a> res+=</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.pen_brushes[i])+</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.collision_pen_brushes[i])+
|
|
<a name="l13"></a> </span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.even_pen_brushes[i])+</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.odd_pen_brushes[i]);
|
|
<a name="l14"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l15"></a>}
|
|
<a name="l16"></a>
|
|
<a name="l17"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>ScrnZoomTablesSize</span><span class=cF0>()
|
|
<a name="l18"></a>{
|
|
<a name="l19"></a> </span><span class=cF9>I64</span><span class=cF0> res=0,i;
|
|
<a name="l20"></a> </span><span class=cF1>for</span><span class=cF0> (i=1;i<=</span><span class=cF3>GR_SCRN_ZOOM_MAX</span><span class=cF0>;i++)
|
|
<a name="l21"></a> res+=</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.scrn_zoom_tables[i]);
|
|
<a name="l22"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l23"></a>}
|
|
<a name="l24"></a>
|
|
<a name="l25"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>TaskStkSize</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task)
|
|
<a name="l26"></a>{
|
|
<a name="l27"></a> </span><span class=cF9>CTaskStk</span><span class=cF0> *tmps=task->stk;
|
|
<a name="l28"></a> </span><span class=cF9>I64</span><span class=cF0> res=0;
|
|
<a name="l29"></a> </span><span class=cF1>while</span><span class=cF0> (tmps) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l30"></a> res+=</span><span class=cF5>MSize2</span><span class=cF0>(tmps);
|
|
<a name="l31"></a> tmps=tmps->next_stk;
|
|
<a name="l32"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l33"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l34"></a>}
|
|
<a name="l35"></a>
|
|
<a name="l36"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>TaskQueSize</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task)
|
|
<a name="l37"></a>{
|
|
<a name="l38"></a> </span><span class=cF9>CJob</span><span class=cF0> *tmpc,*tmpc1;
|
|
<a name="l39"></a> </span><span class=cF9>I64</span><span class=cF0> res=0;
|
|
<a name="l40"></a> </span><span class=cF1>PUSHFD</span><span class=cF0>
|
|
<a name="l41"></a> </span><span class=cF1>CLI</span><span class=cF0>
|
|
<a name="l42"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF5>LBts</span><span class=cF7>(</span><span class=cF0>&task->srv_ctrl.flags,</span><span class=cF3>JOBCf_LOCKED</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l43"></a> </span><span class=cF1>PAUSE</span><span class=cF0>
|
|
<a name="l44"></a>
|
|
<a name="l45"></a> tmpc1=&task->srv_ctrl.next_waiting;
|
|
<a name="l46"></a> tmpc=tmpc1->next;
|
|
<a name="l47"></a> </span><span class=cF1>while</span><span class=cF0> (tmpc!=tmpc1) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l48"></a> res+=</span><span class=cF5>MSize2</span><span class=cF0>(tmpc)+</span><span class=cF5>MSize2</span><span class=cF0>(tmpc->aux_str);
|
|
<a name="l49"></a> tmpc=tmpc->next;
|
|
<a name="l50"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l51"></a>
|
|
<a name="l52"></a> tmpc1=&task->srv_ctrl.next_done;
|
|
<a name="l53"></a> tmpc=tmpc1->next;
|
|
<a name="l54"></a> </span><span class=cF1>while</span><span class=cF0> (tmpc!=tmpc1) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l55"></a> res+=</span><span class=cF5>MSize2</span><span class=cF0>(tmpc)+</span><span class=cF5>MSize2</span><span class=cF0>(tmpc->aux_str);
|
|
<a name="l56"></a> tmpc=tmpc->next;
|
|
<a name="l57"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l58"></a>
|
|
<a name="l59"></a> </span><span class=cF5>LBtr</span><span class=cF0>(&task->srv_ctrl.flags,</span><span class=cF3>JOBCf_LOCKED</span><span class=cF0>);
|
|
<a name="l60"></a> </span><span class=cF1>POPFD</span><span class=cF0>
|
|
<a name="l61"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l62"></a>}
|
|
<a name="l63"></a>
|
|
<a name="l64"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>BlkDevsSize</span><span class=cF0>()
|
|
<a name="l65"></a>{
|
|
<a name="l66"></a> </span><span class=cF9>I64</span><span class=cF0> i,j,res=</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.blkdevs);
|
|
<a name="l67"></a> </span><span class=cF9>CBlkDev</span><span class=cF0> *bd;
|
|
<a name="l68"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>BLKDEVS_NUM</span><span class=cF0>;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l69"></a> bd=&</span><span class=cFB>blkdev</span><span class=cF0>.blkdevs[i];
|
|
<a name="l70"></a> </span><span class=cF1>if</span><span class=cF0> (bd->bd_signature==</span><span class=cF3>BD_SIGNATURE_VAL</span><span class=cF0>) {
|
|
<a name="l71"></a> j=(bd->max_blk+1)<<</span><span class=cF3>BLK_SIZE_BITS</span><span class=cF0>;
|
|
<a name="l72"></a> </span><span class=cF1>if</span><span class=cF0> (bd->type==</span><span class=cF3>BDT_RAM</span><span class=cF0>)
|
|
<a name="l73"></a> </span><span class=cF6>"RAMDsk %C\t:%010X/%010X\n"</span><span class=cF0>,
|
|
<a name="l74"></a> bd->first_drv_let,j-</span><span class=cF5>DrvUnused</span><span class=cF0>(bd->first_drv_let),j;
|
|
<a name="l75"></a> res+=</span><span class=cF5>MSize2</span><span class=cF0>(bd->dev_id_record);
|
|
<a name="l76"></a> }
|
|
<a name="l77"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l78"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l79"></a>}
|
|
<a name="l80"></a>
|
|
<a name="l81"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>DrvsSize</span><span class=cF0>()
|
|
<a name="l82"></a>{
|
|
<a name="l83"></a> </span><span class=cF9>I64</span><span class=cF0> i,res=</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.drvs);
|
|
<a name="l84"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>DRVS_NUM</span><span class=cF0>;i++)
|
|
<a name="l85"></a> res+=</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.drvs[i].cur_fat_blk)+</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.drvs[i].fis);
|
|
<a name="l86"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l87"></a>}
|
|
<a name="l88"></a>
|
|
<a name="l89"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>MemRepTask</span><span class=cF0>(</span><span class=cF9>CTask</span><span class=cF0> *task,</span><span class=cF1>Bool</span><span class=cF0> override_validate=</span><span class=cF3>FALSE</span><span class=cF0>)
|
|
<a name="l90"></a>{
|
|
<a name="l91"></a> </span><span class=cF9>I64</span><span class=cF0> i,j,k,m,n;
|
|
<a name="l92"></a> </span><span class=cF9>CDoc</span><span class=cF0> *pdoc,*ddoc,*bdoc;
|
|
<a name="l93"></a> </span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc;
|
|
<a name="l94"></a> </span><span class=cF9>CMathODE</span><span class=cF0> *o;
|
|
<a name="l95"></a> </span><span class=cF9>CCPU</span><span class=cF0> *c;
|
|
<a name="l96"></a> </span><span class=cF9>CTask</span><span class=cF0> *task1;
|
|
<a name="l97"></a>
|
|
<a name="l98"></a> </span><span class=cF1>if</span><span class=cF0> (!override_validate && !</span><span class=cF5>TaskValidate</span><span class=cF7>(</span><span class=cF0>task</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l99"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
|
|
<a name="l100"></a> </span><span class=cF1>if</span><span class=cF0> (task==</span><span class=cF5>Fs</span><span class=cF0>)
|
|
<a name="l101"></a> task->rsp=</span><span class=cF5>GetRSP</span><span class=cF0>;
|
|
<a name="l102"></a> </span><span class=cF6>"$BLACK$%-27t$Q#%08X$FG$\n"</span><span class=cF0>,task->task_title,task;
|
|
<a name="l103"></a> </span><span class=cF6>"$ID,2$Heap\t:%010X/%010X\n"</span><span class=cF0>,</span><span class=cF5>TaskMemUsed</span><span class=cF0>(task,override_validate),
|
|
<a name="l104"></a> </span><span class=cF5>TaskMemAlloced</span><span class=cF0>(task,override_validate);
|
|
<a name="l105"></a>
|
|
<a name="l106"></a> i=</span><span class=cF5>UnusedStk</span><span class=cF0>(task);
|
|
<a name="l107"></a> j=</span><span class=cF5>TaskStkSize</span><span class=cF0>(task);
|
|
<a name="l108"></a> </span><span class=cF1>if</span><span class=cF0> (0<=i<=task->stk->stk_size)
|
|
<a name="l109"></a> </span><span class=cF6>"Stk\t\t:%010X/%010X\n"</span><span class=cF0>,j-i,j;
|
|
<a name="l110"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l111"></a> </span><span class=cF6>"Stk\t\t:$RED$$BK,1$Overflow$BK,0$$FG$/%010X\n"</span><span class=cF0>,j;
|
|
<a name="l112"></a>
|
|
<a name="l113"></a> </span><span class=cF6>"HashTable\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>HashTableSize2</span><span class=cF0>(task->hash_table);
|
|
<a name="l114"></a> </span><span class=cF6>"FPU\t\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(task->fpu_mmx);
|
|
<a name="l115"></a> </span><span class=cF6>"DirCur\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(task->cur_dir);
|
|
<a name="l116"></a>
|
|
<a name="l117"></a> </span><span class=cF1>if</span><span class=cF0> (pdoc=</span><span class=cF5>DocPut</span><span class=cF7>(</span><span class=cF0>task</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l118"></a> </span><span class=cF6>"PutDoc\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DocSize</span><span class=cF0>(pdoc);
|
|
<a name="l119"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF7>(</span><span class=cF0>ddoc=</span><span class=cF5>DocDisplay</span><span class=cF0>(task)</span><span class=cF7>)</span><span class=cF0> && pdoc!=ddoc)
|
|
<a name="l120"></a> </span><span class=cF6>"DisplayDoc\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DocSize</span><span class=cF0>(ddoc);
|
|
<a name="l121"></a> </span><span class=cF1>if</span><span class=cF0> (bdoc=</span><span class=cF5>DocBorder</span><span class=cF7>(</span><span class=cF0>task</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l122"></a> </span><span class=cF6>"BorderDoc\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DocSize</span><span class=cF0>(bdoc);
|
|
<a name="l123"></a>
|
|
<a name="l124"></a> cc=task->next_cc;
|
|
<a name="l125"></a> </span><span class=cF1>while</span><span class=cF0> (cc!=&task->next_cc) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l126"></a> </span><span class=cF6>"CmpCtrl\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>CmpCtrlSize</span><span class=cF0>(cc);
|
|
<a name="l127"></a> cc=cc->next;
|
|
<a name="l128"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l129"></a>
|
|
<a name="l130"></a> o=task->next_ode;
|
|
<a name="l131"></a> </span><span class=cF1>while</span><span class=cF0> (o!=&task->next_ode) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l132"></a> </span><span class=cF6>"CMathODE\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>ODESize</span><span class=cF0>(o);
|
|
<a name="l133"></a> o=o->next;
|
|
<a name="l134"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l135"></a>
|
|
<a name="l136"></a> </span><span class=cF1>if</span><span class=cF0> (task==</span><span class=cFB>sys_winmgr_task</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l137"></a> </span><span class=cF6>"gr.pen_brushes\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>PenBrushesSize</span><span class=cF0>;
|
|
<a name="l138"></a> </span><span class=cF6>"gr.scrn_zoom_tbles\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>ScrnZoomTablesSize</span><span class=cF0>;
|
|
<a name="l139"></a> </span><span class=cF6>"scrncast.dc\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>scrncast</span><span class=cF0>.dc);
|
|
<a name="l140"></a> </span><span class=cF6>"scrncast.dc2_alias\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>scrncast</span><span class=cF0>.dc2_alias);
|
|
<a name="l141"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (task==</span><span class=cFB>adam_task</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l142"></a> j=0;k=0;m=0;n=0;
|
|
<a name="l143"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cFB>mp_cnt</span><span class=cF0>;i++) {
|
|
<a name="l144"></a> c=&</span><span class=cFB>cpu_structs</span><span class=cF0>[i];
|
|
<a name="l145"></a> k+=</span><span class=cF5>TSSSize</span><span class=cF0>(c->tss);
|
|
<a name="l146"></a> task1=c->seth_task;
|
|
<a name="l147"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l148"></a> </span><span class=cF1>if</span><span class=cF0> (task1!=</span><span class=cFB>adam_task</span><span class=cF0>) {</span><span class=cF2>//adam task located in Kernel mem</span><span class=cF0>
|
|
<a name="l149"></a> j+=</span><span class=cF5>MSize2</span><span class=cF0>(task1);
|
|
<a name="l150"></a> m+=</span><span class=cF5>MSize2</span><span class=cF0>(task1->code_heap);
|
|
<a name="l151"></a> </span><span class=cF1>if</span><span class=cF0> (task1->data_heap!=task1->code_heap)
|
|
<a name="l152"></a> m+=</span><span class=cF5>MSize2</span><span class=cF0>(task1->code_heap);
|
|
<a name="l153"></a> }
|
|
<a name="l154"></a> n+=</span><span class=cF5>TaskQueSize</span><span class=cF0>(task1);
|
|
<a name="l155"></a> task1=task1->next_task;
|
|
<a name="l156"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (task1!=c->seth_task);
|
|
<a name="l157"></a> task1=c->idle_task;
|
|
<a name="l158"></a> j+=</span><span class=cF5>MSize2</span><span class=cF0>(task1);
|
|
<a name="l159"></a> m+=</span><span class=cF5>MSize2</span><span class=cF0>(task1->code_heap);
|
|
<a name="l160"></a> </span><span class=cF1>if</span><span class=cF0> (task1->data_heap!=task1->code_heap)
|
|
<a name="l161"></a> m+=</span><span class=cF5>MSize2</span><span class=cF0>(task1->code_heap);
|
|
<a name="l162"></a> }
|
|
<a name="l163"></a> </span><span class=cF6>"TaskStructs\t:%010X\n"</span><span class=cF0>,j;
|
|
<a name="l164"></a> </span><span class=cF6>"TSSes\t:%010X\n"</span><span class=cF0>,k;
|
|
<a name="l165"></a> </span><span class=cF6>"HeapCtrls\t:%010X\n"</span><span class=cF0>,m;
|
|
<a name="l166"></a> </span><span class=cF1>if</span><span class=cF0> (n)
|
|
<a name="l167"></a> </span><span class=cF6>"TaskQues\t:%010X\n"</span><span class=cF0>,n;
|
|
<a name="l168"></a> </span><span class=cF6>"BlkDevs\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>BlkDevsSize</span><span class=cF0>;
|
|
<a name="l169"></a> </span><span class=cF6>"Drvs\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DrvsSize</span><span class=cF0>;
|
|
<a name="l170"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>blkdev</span><span class=cF0>.cache_base)
|
|
<a name="l171"></a> </span><span class=cF6>"DskCache\t:%010X\n"</span><span class=cF0>,
|
|
<a name="l172"></a> </span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.cache_base)+</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.cache_hash_table)+
|
|
<a name="l173"></a> </span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>blkdev</span><span class=cF0>.cache_ctrl);
|
|
<a name="l174"></a> </span><span class=cF6>"Clip\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DocSize</span><span class=cF0>(</span><span class=cFB>sys_clip_doc</span><span class=cF0>);
|
|
<a name="l175"></a> </span><span class=cF6>"AutoComplete:%010X\n"</span><span class=cF0>,</span><span class=cF5>CallExtStr</span><span class=cF0>(</span><span class=cF6>"AutoCompleteSize"</span><span class=cF0>);
|
|
<a name="l176"></a> </span><span class=cF6>"gr.to_8_bits\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.to_8_bits);
|
|
<a name="l177"></a> </span><span class=cF6>"gr.to_8_colors\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.to_8_colors);
|
|
<a name="l178"></a> </span><span class=cF6>"gr.text_base\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.text_base);
|
|
<a name="l179"></a> </span><span class=cF6>"gr.vga_text_cache\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.vga_text_cache);
|
|
<a name="l180"></a> </span><span class=cF6>"gr.win_z_buf\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.win_z_buf)+
|
|
<a name="l181"></a> </span><span class=cF5>MSize2</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.win_uncovered_bitmap);
|
|
<a name="l182"></a> </span><span class=cF6>"gr.dc\t\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.dc);
|
|
<a name="l183"></a> </span><span class=cF6>"gr.dc1\t\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.dc1);
|
|
<a name="l184"></a> </span><span class=cF6>"gr.dc2\t\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.dc2);
|
|
<a name="l185"></a> </span><span class=cF6>"gr.dc_cache\t\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.dc_cache);
|
|
<a name="l186"></a> </span><span class=cF6>"gr.scrn_image\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.scrn_image);
|
|
<a name="l187"></a> </span><span class=cF6>"gr.zoomed_dc\t:%010X\n"</span><span class=cF0>,</span><span class=cF5>DCSize</span><span class=cF0>(</span><span class=cFB>gr</span><span class=cF0>.zoomed_dc);
|
|
<a name="l188"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l189"></a> </span><span class=cF6>"$ID,-2$"</span><span class=cF0>;
|
|
<a name="l190"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l191"></a>}
|
|
<a name="l192"></a>
|
|
<a name="l193"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>MemRep</span><span class=cF0>()
|
|
<a name="l194"></a>{</span><span class=cF2>//Memory usage report.</span><span class=cF0>
|
|
<a name="l195"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l196"></a> </span><span class=cF9>CTask</span><span class=cF0> *task;
|
|
<a name="l197"></a> </span><span class=cF9>CCPU</span><span class=cF0> *c;
|
|
<a name="l198"></a> </span><span class=cF9>CBinFile</span><span class=cF0> *bfh=</span><span class=cFB>mem_boot_base</span><span class=cF0>-</span><span class=cF1>sizeof</span><span class=cF0>(</span><span class=cF9>CBinFile</span><span class=cF0>);
|
|
<a name="l199"></a> bfh(</span><span class=cF9>I64</span><span class=cF0>)+=bfh->file_size-1;
|
|
<a name="l200"></a>
|
|
<a name="l201"></a> </span><span class=cF6>"$BLACK$Low Memory\t:0000100000$FG$\n$ID,2$"</span><span class=cF0>;
|
|
<a name="l202"></a> </span><span class=cF6>"Kernel\t:%010X-%010X\n"</span><span class=cF0>,</span><span class=cFB>mem_boot_base</span><span class=cF0>-</span><span class=cF1>sizeof</span><span class=cF0>(</span><span class=cF9>CBinFile</span><span class=cF0>),bfh;
|
|
<a name="l203"></a>
|
|
<a name="l204"></a> </span><span class=cF6>"VGA\t\t:00000A0000-00000BFFFF\n"</span><span class=cF0>;
|
|
<a name="l205"></a> </span><span class=cF6>"$ID,-2$$BLACK$High Memory\t:0000100000-%010X$FG$\n"</span><span class=cF0>,
|
|
<a name="l206"></a> </span><span class=cFB>mem_heap_limit</span><span class=cF0>;
|
|
<a name="l207"></a> </span><span class=cF6>"</span><a href="/Wb/Kernel/KernelA.HH.HTML#l3415"><span class=cF4>SYS_FIXED_AREA</span></a><span class=cF6>\t:%010X-%010X\n"</span><span class=cF0>,
|
|
<a name="l208"></a> </span><span class=cF3>SYS_FIXED_AREA</span><span class=cF0>,</span><span class=cF3>SYS_FIXED_AREA</span><span class=cF0>+</span><span class=cF1>sizeof</span><span class=cF0>(</span><span class=cF9>CSysFixedArea</span><span class=cF0>)-1;
|
|
<a name="l209"></a>
|
|
<a name="l210"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>sys_data_bp</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l211"></a> </span><span class=cF6>"$BLACK$Code Heap\t:%010X/%010X$FG$\n"</span><span class=cF0>,
|
|
<a name="l212"></a> </span><span class=cFB>sys_code_bp</span><span class=cF0>->used_u8s,</span><span class=cFB>sys_code_bp</span><span class=cF0>->alloced_u8s;
|
|
<a name="l213"></a> </span><span class=cF6>"$BLACK$Data Heap\t:%010X/%010X$FG$\n"</span><span class=cF0>,
|
|
<a name="l214"></a> </span><span class=cFB>sys_data_bp</span><span class=cF0>->used_u8s,</span><span class=cFB>sys_data_bp</span><span class=cF0>->alloced_u8s;
|
|
<a name="l215"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l216"></a> </span><span class=cF6>"$BLACK$Code/Data Heap\t:%010X/%010X$FG$\n"</span><span class=cF0>,
|
|
<a name="l217"></a> </span><span class=cFB>sys_code_bp</span><span class=cF0>->used_u8s,</span><span class=cFB>sys_code_bp</span><span class=cF0>->alloced_u8s;
|
|
<a name="l218"></a>
|
|
<a name="l219"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cFB>mp_cnt</span><span class=cF0>;i++) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l220"></a> c=&</span><span class=cFB>cpu_structs</span><span class=cF0>[i];
|
|
<a name="l221"></a> </span><span class=cF6>"$PURPLE$CPU%d$FG$\n$ID,2$"</span><span class=cF0>,i;
|
|
<a name="l222"></a> task=c->seth_task;
|
|
<a name="l223"></a> </span><span class=cF1>do</span><span class=cF0> {
|
|
<a name="l224"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>MemRepTask</span><span class=cF7>(</span><span class=cF0>task</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l225"></a> </span><span class=cF1>break</span><span class=cF0>;
|
|
<a name="l226"></a> task=task->next_task;
|
|
<a name="l227"></a> } </span><span class=cF1>while</span><span class=cF0> (task!=c->seth_task);
|
|
<a name="l228"></a> </span><span class=cF5>MemRepTask</span><span class=cF0>(c->idle_task,</span><span class=cF3>TRUE</span><span class=cF0>);
|
|
<a name="l229"></a> </span><span class=cF6>"$ID,-2$"</span><span class=cF0>;
|
|
<a name="l230"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l231"></a>}
|
|
</span></pre></body>
|
|
</html>
|