<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.16"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>UbixOS: vmm/pagefault.c File Reference</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> <script type="text/javascript" src="../../dynsections.js"></script> <link href="../../navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../resize.js"></script> <script type="text/javascript" src="../../navtreedata.js"></script> <script type="text/javascript" src="../../navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">UbixOS  <span id="projectnumber">2.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.16 --> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('../../',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d4/d48/pagefault_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">pagefault.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../d1/d21/vmm_8h_source.html">vmm/vmm.h</a>></code><br /> <code>#include <<a class="el" href="../../d7/d00/sched_8h_source.html">ubixos/sched.h</a>></code><br /> <code>#include <<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>></code><br /> <code>#include <<a class="el" href="../../df/d63/spinlock_8h_source.html">ubixos/spinlock.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>></code><br /> <code>#include <<a class="el" href="../../d7/d0b/trap_8h_source.html">sys/trap.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for pagefault.c:</div> <div class="dyncontent"> <div class="center"><img src="../../de/dd8/pagefault_8c__incl.png" border="0" usemap="#vmm_2pagefault_8c" alt=""/></div> <map name="vmm_2pagefault_8c" id="vmm_2pagefault_8c"> <area shape="rect" title=" " alt="" coords="1076,5,1192,32"/> <area shape="rect" href="../../d1/d21/vmm_8h.html" title=" " alt="" coords="970,80,1060,107"/> <area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="30,453,110,480"/> <area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="1056,229,1166,256"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="1361,80,1474,107"/> <area shape="rect" href="../../df/d63/spinlock_8h.html" title=" " alt="" coords="1135,155,1258,181"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="1251,80,1336,107"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="603,603,694,629"/> <area shape="rect" href="../../d4/df4/paging_8h.html" title=" " alt="" coords="174,155,277,181"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="394,827,492,853"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="456,677,550,704"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="400,752,489,779"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="128,752,246,779"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="270,752,376,779"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="513,752,613,779"/> <area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="218,229,364,256"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="158,379,253,405"/> <area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="236,453,328,480"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="424,304,492,331"/> <area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="36,603,144,629"/> <area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="127,528,210,555"/> <area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="386,528,508,555"/> <area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="623,379,706,405"/> <area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="917,453,988,480"/> <area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="454,379,542,405"/> <area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="555,453,654,480"/> <area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="678,453,766,480"/> <area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="790,453,893,480"/> <area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="669,528,764,555"/> <area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="1106,304,1196,331"/> <area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="1221,304,1297,331"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="1282,155,1351,181"/> </map> </div> </div> <p><a href="../../d4/d48/pagefault_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a046643b9b8c1ad9efffaaaeb5ff11431"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/d48/pagefault_8c.html#a046643b9b8c1ad9efffaaaeb5ff11431">vmm_pageFault</a> (struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> *frame, <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> cr2)</td></tr> <tr class="separator:a046643b9b8c1ad9efffaaaeb5ff11431"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="a046643b9b8c1ad9efffaaaeb5ff11431"></a> <h2 class="memtitle"><span class="permalink"><a href="#a046643b9b8c1ad9efffaaaeb5ff11431">◆ </a></span>vmm_pageFault()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vmm_pageFault </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> * </td> <td class="paramname"><em>frame</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> </td> <td class="paramname"><em>cr2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../d4/d48/pagefault_8c_source.html#l00053">53</a> of file <a class="el" href="../../d4/d48/pagefault_8c_source.html">pagefault.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00050">_current</a>, <a class="el" href="../../d7/d00/sched_8h_source.html#l00063">taskStruct::id</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../dc/d88/armv6_2spinlock_8c_source.html#l00055">spinLock()</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00050">trapframe::tf_eip</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00049">trapframe::tf_err</a>, and <a class="el" href="../../d7/d0b/trap_8h_source.html#l00054">trapframe::tf_esp</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d4/d48/pagefault_8c_a046643b9b8c1ad9efffaaaeb5ff11431_cgraph.png" border="0" usemap="#d4/d48/pagefault_8c_a046643b9b8c1ad9efffaaaeb5ff11431_cgraph" alt=""/></div> <map name="d4/d48/pagefault_8c_a046643b9b8c1ad9efffaaaeb5ff11431_cgraph" id="d4/d48/pagefault_8c_a046643b9b8c1ad9efffaaaeb5ff11431_cgraph"> <area shape="rect" title=" " alt="" coords="5,171,119,197"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="167,132,224,159"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="524,183,599,209"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="278,56,333,83"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="274,107,337,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="272,157,339,184"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="391,5,472,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="387,56,476,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="399,107,463,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="397,157,466,184"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="647,157,738,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="647,208,739,235"/> </map> </div> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="../../dir_012355b06a8b45aa7d4e022ccb130db3.html">vmm</a></li><li class="navelem"><a class="el" href="../../d4/d48/pagefault_8c.html">pagefault.c</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li> </ul> </div> </body> </html>