Newer
Older
UbixOS / doc / html / pagefault_8c.html
<!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/pagefault.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&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;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>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</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&nbsp;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>&nbsp;&raquo&nbsp;<a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_b87deefade4e886319aa926bd3ba1491.html">vmm</a></div>
<h1>pagefault.c File Reference</h1><code>#include &lt;<a class="el" href="vmm_8h-source.html">vmm/vmm.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="sched_8h-source.html">ubixos/sched.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kpanic_8h-source.html">ubixos/kpanic.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="spinlock_8h-source.html">ubixos/spinlock.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>&gt;</code><br>

<p>
Include dependency graph for pagefault.c:<p><center><img src="pagefault_8c__incl.png" border="0" usemap="#src/sys/vmm/pagefault.c_map" alt=""></center>
<map name="src/sys/vmm/pagefault.c_map">
<area href="vmm_8h.html" shape="rect" coords="253,83,360,109" alt="">
<area href="sched_8h.html" shape="rect" coords="427,235,549,261" alt="">
<area href="kpanic_8h.html" shape="rect" coords="243,285,371,312" alt="">
<area href="spinlock_8h.html" shape="rect" coords="419,361,557,388" alt="">
<area href="kprintf_8h.html" shape="rect" coords="257,387,356,413" alt="">
<area href="paging_8h.html" shape="rect" coords="428,83,548,109" alt="">
<area href="types_8h.html" shape="rect" coords="761,209,881,236" alt="">
<area href="thread_8h.html" shape="rect" coords="607,108,711,135" alt="">
<area href="tty_8h.html" shape="rect" coords="609,260,708,287" alt="">
<area href="file_8h.html" shape="rect" coords="619,311,699,337" alt="">
<area href="tss_8h.html" shape="rect" coords="619,159,699,185" alt="">
</map>

<p>
<a href="pagefault_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">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pagefault_8c.html#38aaad80f8ef516de9fe963e677fe273">vmm_pageFault</a> (<a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> memAddr, <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> eip, <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> <a class="el" href="start_8S.html#fba1069006eb01caca2f78a33f379594">esp</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="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="pagefault_8c.html#97eea32960b19607e9418f78aadc41db">pageFaultSpinLock</a> = SPIN_LOCK_INITIALIZER</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="38aaad80f8ef516de9fe963e677fe273"></a><!-- doxytag: member="pagefault.c::vmm_pageFault" ref="38aaad80f8ef516de9fe963e677fe273" args="(uInt32 memAddr, uInt32 eip, uInt32 esp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vmm_pageFault           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a>&nbsp;</td>
          <td class="paramname"> <em>memAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a>&nbsp;</td>
          <td class="paramname"> <em>eip</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a>&nbsp;</td>
          <td class="paramname"> <em>esp</em></td><td>&nbsp;</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="pagefault_8c-source.html#l00053">53</a> of file <a class="el" href="pagefault_8c-source.html">pagefault.c</a>.
<p>
References <a class="el" href="sched_8c-source.html#l00051">_current</a>, <a class="el" href="vmm__memory_8c-source.html#l00266">adjustCowCounter()</a>, <a class="el" href="endtask_8c-source.html#l00046">endTask()</a>, <a class="el" href="sched_8h-source.html#l00055">taskStruct::id</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="paging_8h-source.html#l00046">PAGE_COW</a>, <a class="el" href="paging_8h-source.html#l00052">PAGE_DEFAULT</a>, <a class="el" href="paging_8h-source.html#l00042">pageEntries</a>, <a class="el" href="pagefault_8c-source.html#l00036">pageFaultSpinLock</a>, <a class="el" href="paging_8h-source.html#l00044">parentPageDirAddr</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="paging_8h-source.html#l00043">tablesBaseAddress</a>, <a class="el" href="sched_8h-source.html#l00067">taskStruct::td</a>, <a class="el" href="thread_8h-source.html#l00040">thread::vm_daddr</a>, <a class="el" href="thread_8h-source.html#l00041">thread::vm_dsize</a>, <a class="el" href="getphysicaladdr_8c-source.html#l00040">vmm_getPhysicalAddr()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, <a class="el" href="getfreevirtualpage_8c-source.html#l00047">vmmGetFreeVirtualPage()</a>, <a class="el" href="unmappage_8c-source.html#l00050">vmmUnmapPage()</a>, <a class="el" href="ap-boot_8S-source.html#l00006">x1</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>.
<p>
Here is the call graph for this function:<p><center><img src="pagefault_8c_38aaad80f8ef516de9fe963e677fe273_cgraph.png" border="0" usemap="#pagefault_8c_38aaad80f8ef516de9fe963e677fe273_cgraph_map" alt=""></center>
<map name="pagefault_8c_38aaad80f8ef516de9fe963e677fe273_cgraph_map">
<area href="vmm_8h.html#362d462b3a1e19b5e0ef95e1839dbf11" shape="rect" coords="419,72,565,99" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="621,97,701,124" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="613,199,709,225" alt="">
<area href="endtask_8h.html#152c1859ada097cc21071f471bfa2e67" shape="rect" coords="239,528,316,555" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="628,376,695,403" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="757,376,824,403" alt="">
<area href="paging_8h.html#e88bcfc69132a46a1982237913101a5b" shape="rect" coords="192,579,363,605" alt="">
<area href="vmm_8h.html#976cf3919bf7c77c868021ec9374593b" shape="rect" coords="420,224,564,251" alt="">
<area href="paging_8h.html#4b324672c4b25064eb8db1e3419337b1" shape="rect" coords="185,300,369,327" alt="">
<area href="paging_8h.html#fd94da50e455602f86ad7dae2fc9d1db" shape="rect" coords="209,629,345,656" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="97eea32960b19607e9418f78aadc41db"></a><!-- doxytag: member="pagefault.c::pageFaultSpinLock" ref="97eea32960b19607e9418f78aadc41db" 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="pagefault_8c.html#97eea32960b19607e9418f78aadc41db">pageFaultSpinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="pagefault_8c-source.html#l00036">36</a> of file <a class="el" href="pagefault_8c-source.html">pagefault.c</a>.
<p>
Referenced by <a class="el" href="pagefault_8c-source.html#l00053">vmm_pageFault()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:26:25 2006 for UbixOS V2 by&nbsp;
<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>