<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>UbixOS V2: src/sys/vmm/vmm_memory.c File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.7 --> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="classes.html"><span>Data Structures</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul></div> <div class="nav"> <a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_b87deefade4e886319aa926bd3ba1491.html">vmm</a></div> <h1>vmm_memory.c File Reference</h1><code>#include <<a class="el" href="vmm_8h-source.html">vmm/vmm.h</a>></code><br> <code>#include <<a class="el" href="io_8h-source.html">sys/io.h</a>></code><br> <code>#include <<a class="el" href="kpanic_8h-source.html">ubixos/kpanic.h</a>></code><br> <code>#include <<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>></code><br> <code>#include <<a class="el" href="kmalloc_8h-source.html">lib/kmalloc.h</a>></code><br> <code>#include <<a class="el" href="vitals_8h-source.html">ubixos/vitals.h</a>></code><br> <code>#include <<a class="el" href="spinlock_8h-source.html">ubixos/spinlock.h</a>></code><br> <code>#include <<a class="el" href="assert_8h-source.html">assert.h</a>></code><br> <p> Include dependency graph for vmm_memory.c:<p><center><img src="vmm__memory_8c__incl.png" border="0" usemap="#src/sys/vmm/vmm_memory.c_map" alt=""></center> <map name="src/sys/vmm/vmm_memory.c_map"> <area href="vmm_8h.html" shape="rect" coords="283,5,390,32" alt=""> <area href="io_8h.html" shape="rect" coords="300,56,372,83" alt=""> <area href="kpanic_8h.html" shape="rect" coords="272,107,400,133" alt=""> <area href="kprintf_8h.html" shape="rect" coords="472,107,571,133" alt=""> <area href="kmalloc_8h.html" shape="rect" coords="468,157,575,184" alt=""> <area href="vitals_8h.html" shape="rect" coords="276,259,396,285" alt=""> <area href="spinlock_8h.html" shape="rect" coords="452,309,591,336" alt=""> <area href="assert_8h.html" shape="rect" coords="299,360,374,387" alt=""> <area href="paging_8h.html" shape="rect" coords="462,5,582,32" alt=""> <area href="types_8h.html" shape="rect" coords="644,157,764,184" alt=""> <area href="ubthread_8h.html" shape="rect" coords="450,208,594,235" alt=""> <area href="vfs_8h.html" shape="rect" coords="483,259,560,285" alt=""> </map> <p> <a href="vmm__memory_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#362d462b3a1e19b5e0ef95e1839dbf11">adjustCowCounter</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> baseAddr, int adjustment)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#1a89fbc2f80ca828332c5ef31801faa3">countMemory</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#e90be267d851fed04d4d9b1c6c10454a">freePage</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> pageAddr)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#1be09ae74f7f41cd765042a0a7411c49">vmmFindFreePage</a> (<a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#a24b696e386ef97dfe88b9b434c671c6">vmmFreeProcessPages</a> (<a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#0926a4c7f70e387891f6124a48258b64">vmmMemMapInit</a> ()</td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#0e1198ffc77f9177e36e61b72daf3cdc">freePages</a> = 0</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#2b0091bdc36e32af3daf9cfcaa7c04e1">numPages</a> = 0x0</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#c13b9a55ec869479ab26ad9d949e6f85">vmmCowSpinLock</a> = SPIN_LOCK_INITIALIZER</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structmMap.html">mMap</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#89e87741958ee81f1811075b25af058a">vmmMemoryMap</a> = (<a class="el" href="structmMap.html">mMap</a> *) 0x101000</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="vmm__memory_8c.html#ee00a539cbe4cc341553ee44f318157a">vmmSpinLock</a> = SPIN_LOCK_INITIALIZER</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="362d462b3a1e19b5e0ef95e1839dbf11"></a><!-- doxytag: member="vmm_memory.c::adjustCowCounter" ref="362d462b3a1e19b5e0ef95e1839dbf11" args="(uInt32 baseAddr, int adjustment)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int adjustCowCounter </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>baseAddr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>adjustment</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00266">266</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="vmm_8h-source.html#l00046">mMap::cowCounter</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="vmm_8h-source.html#l00043">mMap::status</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vmm__memory_8c-source.html#l00041">vmmCowSpinLock</a>, <a class="el" href="vmm_8h-source.html#l00038">vmmID</a>, and <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="pagefault_8c-source.html#l00053">vmm_pageFault()</a>, <a class="el" href="copyvirtualspace_8c-source.html#l00053">vmmCopyVirtualSpace()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm__memory_8c_362d462b3a1e19b5e0ef95e1839dbf11_cgraph.png" border="0" usemap="#vmm__memory_8c_362d462b3a1e19b5e0ef95e1839dbf11_cgraph_map" alt=""></center> <map name="vmm__memory_8c_362d462b3a1e19b5e0ef95e1839dbf11_cgraph_map"> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="208,81,288,108" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="200,132,296,159" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="344,56,445,83" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="629,107,728,133" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="495,56,556,83" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="605,5,752,32" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="609,56,748,83" alt=""> </map> </div> </div><p> <a class="anchor" name="1a89fbc2f80ca828332c5ef31801faa3"></a><!-- doxytag: member="vmm_memory.c::countMemory" ref="1a89fbc2f80ca828332c5ef31801faa3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int countMemory </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00104">104</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="ap-boot_8S-source.html#l00006">cr0</a>, <a class="el" href="io_8c-source.html#l00039">inportByte()</a>, and <a class="el" href="io_8c-source.html#l00073">outportByte()</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm__memory_8c_1a89fbc2f80ca828332c5ef31801faa3_cgraph.png" border="0" usemap="#vmm__memory_8c_1a89fbc2f80ca828332c5ef31801faa3_cgraph_map" alt=""></center> <map name="vmm__memory_8c_1a89fbc2f80ca828332c5ef31801faa3_cgraph_map"> <area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="173,5,267,32" alt=""> <area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="169,56,271,83" alt=""> </map> </div> </div><p> <a class="anchor" name="e90be267d851fed04d4d9b1c6c10454a"></a><!-- doxytag: member="vmm_memory.c::freePage" ref="e90be267d851fed04d4d9b1c6c10454a" args="(uInt32 pageAddr)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int freePage </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td> <td class="paramname"> <em>pageAddr</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00228">228</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="vmm_8h-source.html#l00046">mMap::cowCounter</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="vmm_8h-source.html#l00043">mMap::status</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, and <a class="el" href="vmm__memory_8c-source.html#l00040">vmmSpinLock</a>. <p> Referenced by <a class="el" href="paging_8c-source.html#l00160">vmm_remapPage()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm__memory_8c_e90be267d851fed04d4d9b1c6c10454a_cgraph.png" border="0" usemap="#vmm__memory_8c_e90be267d851fed04d4d9b1c6c10454a_cgraph_map" alt=""></center> <map name="vmm__memory_8c_e90be267d851fed04d4d9b1c6c10454a_cgraph_map"> <area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="136,107,283,133" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="339,81,419,108" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="331,144,427,171" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="475,56,576,83" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="760,107,859,133" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="625,56,687,83" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="736,5,883,32" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="740,56,879,83" alt=""> </map> </div> </div><p> <a class="anchor" name="1be09ae74f7f41cd765042a0a7411c49"></a><!-- doxytag: member="vmm_memory.c::vmmFindFreePage" ref="1be09ae74f7f41cd765042a0a7411c49" args="(pidType pid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> vmmFindFreePage </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"> <em>pid</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00186">186</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00037">memNotavail</a>, <a class="el" href="vmm__memory_8c-source.html#l00044">numPages</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="fdc_8c-source.html#l00054">status</a>, <a class="el" href="kmalloc_8h-source.html#l00039">sysID</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, and <a class="el" href="vmm__memory_8c-source.html#l00040">vmmSpinLock</a>. <p> Referenced by <a class="el" href="elf_8c-source.html#l00111">elf_loadfile()</a>, <a class="el" href="exec_8c-source.html#l00143">execFile()</a>, <a class="el" href="kmod_8c-source.html#l00075">kmod_load()</a>, <a class="el" href="ld_8c-source.html#l00042">ldEnable()</a>, <a class="el" href="paging_8c-source.html#l00478">obreak()</a>, <a class="el" href="exec_8c-source.html#l00552">sys_exec()</a>, <a class="el" href="exec_8c-source.html#l00334">sysExec()</a>, <a class="el" href="paging_8c-source.html#l00401">vmm_getFreeMallocPage()</a>, <a class="el" href="pagefault_8c-source.html#l00053">vmm_pageFault()</a>, <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, <a class="el" href="paging_8c-source.html#l00160">vmm_remapPage()</a>, <a class="el" href="paging_8c-source.html#l00253">vmmGetFreeKernelPage()</a>, <a class="el" href="getfreepage_8c-source.html#l00048">vmmGetFreePage()</a>, and <a class="el" href="getfreevirtualpage_8c-source.html#l00047">vmmGetFreeVirtualPage()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm__memory_8c_1be09ae74f7f41cd765042a0a7411c49_cgraph.png" border="0" usemap="#vmm__memory_8c_1be09ae74f7f41cd765042a0a7411c49_cgraph_map" alt=""></center> <map name="vmm__memory_8c_1be09ae74f7f41cd765042a0a7411c49_cgraph_map"> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="215,81,281,108" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="208,157,288,184" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="200,208,296,235" alt=""> <area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="349,5,440,32" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="361,56,428,83" alt=""> <area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="359,107,431,133" alt=""> <area href="vsprintf_8c.html#c2f4c669c6f6aa6caa5ab8adb1b07dd0" shape="rect" coords="497,56,572,83" alt=""> <area href="vsprintf_8c.html#3fa7c8ef8597579301cb4b5c59bc6d9a" shape="rect" coords="495,107,575,133" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="344,157,445,184" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="648,208,747,235" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="504,157,565,184" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="624,107,771,133" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="628,157,767,184" alt=""> </map> </div> </div><p> <a class="anchor" name="a24b696e386ef97dfe88b9b434c671c6"></a><!-- doxytag: member="vmm_memory.c::vmmFreeProcessPages" ref="a24b696e386ef97dfe88b9b434c671c6" args="(pidType pid)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vmmFreeProcessPages </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#e438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"> <em>pid</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00296">296</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm_8h-source.html#l00046">mMap::cowCounter</a>, <a class="el" href="vitals_8h-source.html#l00044">vitalsStruct::freePages</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm__memory_8c-source.html#l00044">numPages</a>, <a class="el" href="paging_8h-source.html#l00046">PAGE_COW</a>, <a class="el" href="paging_8h-source.html#l00042">pageEntries</a>, <a class="el" href="paging_8h-source.html#l00044">parentPageDirAddr</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="fdc_8c-source.html#l00054">status</a>, <a class="el" href="timer_8S-source.html#l00035">systemVitals</a>, <a class="el" href="paging_8h-source.html#l00043">tablesBaseAddress</a>, <a class="el" href="vmm_8h-source.html#l00038">vmmID</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, <a class="el" href="vmm__memory_8c-source.html#l00040">vmmSpinLock</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="systemtask_8c-source.html#l00048">systemTask()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm__memory_8c_a24b696e386ef97dfe88b9b434c671c6_cgraph.png" border="0" usemap="#vmm__memory_8c_a24b696e386ef97dfe88b9b434c671c6_cgraph_map" alt=""></center> <map name="vmm__memory_8c_a24b696e386ef97dfe88b9b434c671c6_cgraph_map"> <area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="229,107,376,133" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="432,81,512,108" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="424,144,520,171" alt=""> <area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="568,56,669,83" alt=""> <area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="853,107,952,133" alt=""> <area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="719,56,780,83" alt=""> <area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="829,5,976,32" alt=""> <area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="833,56,972,83" alt=""> </map> </div> </div><p> <a class="anchor" name="0926a4c7f70e387891f6124a48258b64"></a><!-- doxytag: member="vmm_memory.c::vmmMemMapInit" ref="0926a4c7f70e387891f6124a48258b64" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmmMemMapInit </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00057">57</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> References <a class="el" href="vmm__memory_8c-source.html#l00104">countMemory()</a>, <a class="el" href="vmm__memory_8c-source.html#l00039">freePages</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="vmm_8h-source.html#l00036">memAvail</a>, <a class="el" href="vmm_8h-source.html#l00037">memNotavail</a>, <a class="el" href="vmm__memory_8c-source.html#l00044">numPages</a>, <a class="el" href="vmm_8h-source.html#l00042">mMap::pageAddr</a>, <a class="el" href="vmm_8h-source.html#l00045">mMap::pid</a>, <a class="el" href="fdc_8c-source.html#l00054">status</a>, <a class="el" href="vmm_8h-source.html#l00043">mMap::status</a>, <a class="el" href="vmm_8h-source.html#l00038">vmmID</a>, <a class="el" href="vmm__memory_8c-source.html#l00045">vmmMemoryMap</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="vmm__init_8c-source.html#l00041">vmm_init()</a>. <p> Here is the call graph for this function:<p><center><img src="vmm__memory_8c_0926a4c7f70e387891f6124a48258b64_cgraph.png" border="0" usemap="#vmm__memory_8c_0926a4c7f70e387891f6124a48258b64_cgraph_map" alt=""></center> <map name="vmm__memory_8c_0926a4c7f70e387891f6124a48258b64_cgraph_map"> <area href="vmm_8h.html#1a89fbc2f80ca828332c5ef31801faa3" shape="rect" coords="192,31,307,57" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="216,81,283,108" alt=""> <area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="360,5,453,32" alt=""> <area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="356,56,457,83" alt=""> </map> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="0e1198ffc77f9177e36e61b72daf3cdc"></a><!-- doxytag: member="vmm_memory.c::freePages" ref="0e1198ffc77f9177e36e61b72daf3cdc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> <a class="el" href="vmm__memory_8c.html#0e1198ffc77f9177e36e61b72daf3cdc">freePages</a> = 0<code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00039">39</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="2b0091bdc36e32af3daf9cfcaa7c04e1"></a><!-- doxytag: member="vmm_memory.c::numPages" ref="2b0091bdc36e32af3daf9cfcaa7c04e1" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="vmm__memory_8c.html#2b0091bdc36e32af3daf9cfcaa7c04e1">numPages</a> = 0x0 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00044">44</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="c13b9a55ec869479ab26ad9d949e6f85"></a><!-- doxytag: member="vmm_memory.c::vmmCowSpinLock" ref="c13b9a55ec869479ab26ad9d949e6f85" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> <a class="el" href="vmm__memory_8c.html#c13b9a55ec869479ab26ad9d949e6f85">vmmCowSpinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00041">41</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>. </div> </div><p> <a class="anchor" name="89e87741958ee81f1811075b25af058a"></a><!-- doxytag: member="vmm_memory.c::vmmMemoryMap" ref="89e87741958ee81f1811075b25af058a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structmMap.html">mMap</a>* <a class="el" href="vmm__memory_8c.html#89e87741958ee81f1811075b25af058a">vmmMemoryMap</a> = (<a class="el" href="structmMap.html">mMap</a> *) 0x101000 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00045">45</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="main_8c-source.html#l00097">kmain()</a>, <a class="el" href="paging_8c-source.html#l00059">vmm_pagingInit()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00057">vmmMemMapInit()</a>. </div> </div><p> <a class="anchor" name="ee00a539cbe4cc341553ee44f318157a"></a><!-- doxytag: member="vmm_memory.c::vmmSpinLock" ref="ee00a539cbe4cc341553ee44f318157a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> <a class="el" href="vmm__memory_8c.html#ee00a539cbe4cc341553ee44f318157a">vmmSpinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="vmm__memory_8c-source.html#l00040">40</a> of file <a class="el" href="vmm__memory_8c-source.html">vmm_memory.c</a>. <p> Referenced by <a class="el" href="vmm__memory_8c-source.html#l00228">freePage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, and <a class="el" href="vmm__memory_8c-source.html#l00296">vmmFreeProcessPages()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:26:41 2006 for UbixOS V2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address> </body> </html>