<!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/paging.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('de/d38/paging_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">paging.c File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="../../d0/d27/include_2sys_2types_8h_source.html">sys/types.h</a>></code><br /> <code>#include <<a class="el" href="../../d1/d21/vmm_8h_source.html">vmm/vmm.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="../../d4/d03/kmalloc_8h_source.html">lib/kmalloc.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="../../d7/d00/sched_8h_source.html">ubixos/sched.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/d66/string_8h_source.html">string.h</a>></code><br /> <code>#include <<a class="el" href="../../dc/da7/assert_8h_source.html">assert.h</a>></code><br /> <code>#include <<a class="el" href="../../d3/df4/descrip_8h_source.html">sys/descrip.h</a>></code><br /> <code>#include <<a class="el" href="../../d2/d48/vitals_8h_source.html">ubixos/vitals.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for paging.c:</div> <div class="dyncontent"> <div class="center"><img src="../../dc/d20/paging_8c__incl.png" border="0" usemap="#vmm_2paging_8c" alt=""/></div> <map name="vmm_2paging_8c" id="vmm_2paging_8c"> <area shape="rect" title=" " alt="" coords="1497,5,1599,32"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="973,603,1064,629"/> <area shape="rect" href="../../d1/d21/vmm_8h.html" title=" " alt="" coords="592,80,683,107"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="1505,80,1591,107"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html" title=" " alt="" coords="1671,229,1766,256"/> <area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="1843,80,1957,107"/> <area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="1033,229,1143,256"/> <area shape="rect" href="../../df/d63/spinlock_8h.html" title=" " alt="" coords="1595,155,1717,181"/> <area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="1773,453,1838,480"/> <area shape="rect" href="../../dc/da7/assert_8h.html" title=" " alt="" coords="1981,80,2051,107"/> <area shape="rect" href="../../d3/df4/descrip_8h.html" title=" " alt="" coords="223,155,323,181"/> <area shape="rect" href="../../d2/d48/vitals_8h.html" title=" " alt="" coords="1367,80,1471,107"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="711,827,809,853"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="775,677,868,704"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="717,752,806,779"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="445,752,563,779"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="587,752,693,779"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="830,752,930,779"/> <area shape="rect" href="../../d4/df4/paging_8h.html" title=" " alt="" coords="365,155,467,181"/> <area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="352,229,499,256"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="371,379,466,405"/> <area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="231,453,323,480"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="761,304,829,331"/> <area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="449,453,529,480"/> <area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="281,677,389,704"/> <area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="449,528,532,555"/> <area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="607,528,729,555"/> <area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="796,379,879,405"/> <area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="995,453,1066,480"/> <area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="1141,379,1229,405"/> <area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="1192,453,1291,480"/> <area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="756,453,844,480"/> <area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="869,453,971,480"/> <area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="971,528,1066,555"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="1451,155,1520,181"/> <area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="1101,304,1192,331"/> <area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="1001,304,1077,331"/> <area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="1771,528,1843,555"/> <area shape="rect" href="../../d2/d1b/stat_8h.html" title=" " alt="" coords="101,304,176,331"/> <area shape="rect" href="../../d7/d9f/fcntl_8h.html" title=" " alt="" coords="43,229,125,256"/> <area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="1247,155,1313,181"/> <area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="1470,229,1543,256"/> <area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="1971,304,2050,331"/> <area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="2061,528,2134,555"/> <area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="1879,453,1950,480"/> <area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="2049,379,2146,405"/> <area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="2025,453,2097,480"/> <area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="1894,379,1973,405"/> <area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="2170,379,2254,405"/> <area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="2046,603,2149,629"/> </map> </div> </div> <p><a href="../../de/d38/paging_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:a6cdf3466734f2da5e258c9844d536295"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a6cdf3466734f2da5e258c9844d536295">obreak</a> (struct <a class="el" href="../../d3/dc5/structthread.html">thread</a> *td, struct <a class="el" href="../../d6/d23/structobreak__args.html">obreak_args</a> *uap)</td></tr> <tr class="separator:a6cdf3466734f2da5e258c9844d536295"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a43af6ffc41a9e9da3a15f10fb187266a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a43af6ffc41a9e9da3a15f10fb187266a">vmm_cleanVirtualSpace</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> addr)</td></tr> <tr class="separator:a43af6ffc41a9e9da3a15f10fb187266a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8350aa43ff69829ba667ca34d9bcaa7a"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a8350aa43ff69829ba667ca34d9bcaa7a">vmm_clearVirtualPage</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> pageAddr)</td></tr> <tr class="separator:a8350aa43ff69829ba667ca34d9bcaa7a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3615feeeee9f4038cd1070372ccba22e"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a3615feeeee9f4038cd1070372ccba22e">vmm_getFreeKernelPage</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#ae438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid, <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> count)</td></tr> <tr class="separator:a3615feeeee9f4038cd1070372ccba22e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a541f0b43826a40b9e978f5479080bb0e"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a541f0b43826a40b9e978f5479080bb0e">vmm_getFreeMallocPage</a> (<a class="el" href="../../dd/d1e/objgfx30_8h.html#a81f3b46fa4ddd984830104840a08da82">uInt16</a> count)</td></tr> <tr class="separator:a541f0b43826a40b9e978f5479080bb0e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6aca027c65f91943e6bc46ab9542c086"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a6aca027c65f91943e6bc46ab9542c086">vmm_mapFromTask</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#ae438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid, void *ptr, <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> size)</td></tr> <tr class="separator:a6aca027c65f91943e6bc46ab9542c086"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af47a45e3f0802f5aac053808127aaaf1"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#af47a45e3f0802f5aac053808127aaaf1">vmm_pagingInit</a> ()</td></tr> <tr class="separator:af47a45e3f0802f5aac053808127aaaf1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad6c3897473d837504f3d1415fb8ab796"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#ad6c3897473d837504f3d1415fb8ab796">vmm_remapPage</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> source, <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> dest, <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> perms, <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#ae438ba74394b14d7b24b6df3b3b8c252">pidType</a> pid, int haveLock)</td></tr> <tr class="separator:ad6c3897473d837504f3d1415fb8ab796"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:a7c58070dedac2ee9e1c73d8c8206b923"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d38/paging_8c.html#a7c58070dedac2ee9e1c73d8c8206b923">kernelPageDirectory</a> = 0x0</td></tr> <tr class="separator:a7c58070dedac2ee9e1c73d8c8206b923"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="a6cdf3466734f2da5e258c9844d536295"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6cdf3466734f2da5e258c9844d536295">◆ </a></span>obreak()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int obreak </td> <td>(</td> <td class="paramtype">struct <a class="el" href="../../d3/dc5/structthread.html">thread</a> * </td> <td class="paramname"><em>td</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">struct <a class="el" href="../../d6/d23/structobreak__args.html">obreak_args</a> * </td> <td class="paramname"><em>uap</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="../../de/d38/paging_8c_source.html#l00546">546</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> </div> </div> <a id="a43af6ffc41a9e9da3a15f10fb187266a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a43af6ffc41a9e9da3a15f10fb187266a">◆ </a></span>vmm_cleanVirtualSpace()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmm_cleanVirtualSpace </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>addr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d38/paging_8c_source.html#l00587">587</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">Referenced by <a class="el" href="../../df/dc9/exec_8c_source.html#l00340">sysExec()</a>.</p> </div> </div> <a id="a8350aa43ff69829ba667ca34d9bcaa7a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8350aa43ff69829ba667ca34d9bcaa7a">◆ </a></span>vmm_clearVirtualPage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmm_clearVirtualPage </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>pageAddr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d38/paging_8c_source.html#l00356">356</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">References <a class="el" href="../../d4/df4/paging_8h_source.html#l00048">PD_ENTRIES</a>.</p> <p class="reference">Referenced by <a class="el" href="../../de/d38/paging_8c_source.html#l00291">vmm_getFreeKernelPage()</a>.</p> </div> </div> <a id="a3615feeeee9f4038cd1070372ccba22e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3615feeeee9f4038cd1070372ccba22e">◆ </a></span>vmm_getFreeKernelPage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* vmm_getFreeKernelPage </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#ae438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"><em>pid</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> </td> <td class="paramname"><em>count</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="../../de/d38/paging_8c_source.html#l00291">291</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d24/kpanic_8h_source.html#l00032">K_PANIC</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00069">KERNEL_PAGE_DEFAULT</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00055">PAGE_PRESENT</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00037">PAGE_SIZE</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00045">PD_BASE_ADDR</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00048">PD_ENTRIES</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00040">PD_INDEX</a>, <a class="el" href="../../d3/d21/vmm__init_8c_source.html#l00033">pdSpinLock</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00046">PT_BASE_ADDR</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00049">PT_ENTRIES</a>, <a class="el" href="../../dc/d88/armv6_2spinlock_8c_source.html#l00055">spinLock()</a>, <a class="el" href="../../dc/d88/armv6_2spinlock_8c_source.html#l00036">spinUnlock()</a>, <a class="el" href="../../de/db8/vmm__allocpagetable_8c_source.html#l00007">vmm_allocPageTable()</a>, <a class="el" href="../../de/d38/paging_8c_source.html#l00356">vmm_clearVirtualPage()</a>, <a class="el" href="../../d3/db5/vmm__memory_8c_source.html#l00221">vmm_findFreePage()</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00065">VMM_KERN_END</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00064">VMM_KERN_START</a>, and <a class="el" href="../../de/d38/paging_8c_source.html#l00199">vmm_remapPage()</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d8/d4c/i386_2bioscall_8c_source.html#l00040">biosCall()</a>, and <a class="el" href="../../de/d18/i386__exec_8c_source.html#l00148">execThread()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../de/d38/paging_8c_a3615feeeee9f4038cd1070372ccba22e_cgraph.png" border="0" usemap="#de/d38/paging_8c_a3615feeeee9f4038cd1070372ccba22e_cgraph" alt=""/></div> <map name="de/d38/paging_8c_a3615feeeee9f4038cd1070372ccba22e_cgraph" id="de/d38/paging_8c_a3615feeeee9f4038cd1070372ccba22e_cgraph"> <area shape="rect" title=" " alt="" coords="5,141,172,168"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="606,65,666,92"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="599,141,673,168"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#ae29ab191c93f9ead066cb462dd2e7247" title=" " alt="" coords="252,242,339,269"/> <area shape="rect" href="../../d1/d21/vmm_8h.html#acba8d9cc298370338bc5bea5187183b2" title=" " alt="" coords="223,40,367,66"/> <area shape="rect" href="../../d1/d21/vmm_8h.html#ab8e4e189a7b1df2a03072ce5b75c89fe" title=" " alt="" coords="419,90,551,117"/> <area shape="rect" href="../../de/d38/paging_8c.html#a8350aa43ff69829ba667ca34d9bcaa7a" title=" " alt="" coords="220,293,371,320"/> <area shape="rect" href="../../de/d38/paging_8c.html#ad6c3897473d837504f3d1415fb8ab796" title=" " alt="" coords="423,141,546,168"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="722,116,813,142"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="721,166,813,193"/> </map> </div> </div> </div> <a id="a541f0b43826a40b9e978f5479080bb0e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a541f0b43826a40b9e978f5479080bb0e">◆ </a></span>vmm_getFreeMallocPage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* vmm_getFreeMallocPage </td> <td>(</td> <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#a81f3b46fa4ddd984830104840a08da82">uInt16</a> </td> <td class="paramname"><em>count</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d38/paging_8c_source.html#l00488">488</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> </div> </div> <a id="a6aca027c65f91943e6bc46ab9542c086"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6aca027c65f91943e6bc46ab9542c086">◆ </a></span>vmm_mapFromTask()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* vmm_mapFromTask </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#ae438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"><em>pid</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>ptr</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>size</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="../../de/d38/paging_8c_source.html#l00372">372</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d9/d0f/main_8cc_source.html#l00051">sdeThread()</a>.</p> </div> </div> <a id="af47a45e3f0802f5aac053808127aaaf1"></a> <h2 class="memtitle"><span class="permalink"><a href="#af47a45e3f0802f5aac053808127aaaf1">◆ </a></span>vmm_pagingInit()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmm_pagingInit </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d38/paging_8c_source.html#l00058">58</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">References <a class="el" href="../../d4/df4/paging_8h.html#a15b43ccb21abdb9e0a41acb82b260a99">_vmm_pageFault()</a>, <a class="el" href="../../d5/d82/gpt_8h_source.html#l00037">bzero</a>, <a class="el" href="../../d3/d24/kpanic_8h_source.html#l00032">K_PANIC</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00069">KERNEL_PAGE_DEFAULT</a>, <a class="el" href="../../de/d38/paging_8c_source.html#l00041">kernelPageDirectory</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../d3/db5/vmm__memory_8c_source.html#l00045">numPages</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00068">PAGE_DEFAULT</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00062">PAGE_GLOBAL</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00037">PAGE_SIZE</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00065">PAGE_STACK</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00045">PD_BASE_ADDR</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00048">PD_ENTRIES</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00040">PD_INDEX</a>, <a class="el" href="../../d4/df4/paging_8h_source.html#l00046">PT_BASE_ADDR</a>, <a class="el" href="../../d4/d03/kmalloc_8h_source.html#l00038">sysID</a>, <a class="el" href="../../d3/db5/vmm__memory_8c_source.html#l00221">vmm_findFreePage()</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00065">VMM_KERN_END</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00064">VMM_KERN_START</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00050">VMM_MMAP_ADDR_PMODE</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00051">VMM_MMAP_ADDR_RMODE</a>, <a class="el" href="../../de/d38/paging_8c_source.html#l00199">vmm_remapPage()</a>, and <a class="el" href="../../d3/db5/vmm__memory_8c_source.html#l00047">vmmMemoryMap</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d3/d21/vmm__init_8c_source.html#l00043">vmm_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../de/d38/paging_8c_af47a45e3f0802f5aac053808127aaaf1_cgraph.png" border="0" usemap="#de/d38/paging_8c_af47a45e3f0802f5aac053808127aaaf1_cgraph" alt=""/></div> <map name="de/d38/paging_8c_af47a45e3f0802f5aac053808127aaaf1_cgraph" id="de/d38/paging_8c_af47a45e3f0802f5aac053808127aaaf1_cgraph"> <area shape="rect" title=" " alt="" coords="5,183,116,209"/> <area shape="rect" href="../../d4/df4/paging_8h.html#a15b43ccb21abdb9e0a41acb82b260a99" title=" " alt="" coords="170,107,290,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="201,157,259,184"/> <area shape="rect" href="../../d1/d21/vmm_8h.html#ab8e4e189a7b1df2a03072ce5b75c89fe" title=" " alt="" coords="164,208,296,235"/> <area shape="rect" href="../../de/d38/paging_8c.html#ad6c3897473d837504f3d1415fb8ab796" title=" " alt="" coords="169,259,291,285"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="350,56,405,83"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="346,107,409,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="344,157,411,184"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="463,5,544,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="459,56,548,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="471,107,535,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="469,157,538,184"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="596,208,671,235"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="719,183,810,209"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="719,233,811,260"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="347,259,407,285"/> </map> </div> </div> </div> <a id="ad6c3897473d837504f3d1415fb8ab796"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad6c3897473d837504f3d1415fb8ab796">◆ </a></span>vmm_remapPage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vmm_remapPage </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>source</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>dest</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> </td> <td class="paramname"><em>perms</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#ae438ba74394b14d7b24b6df3b3b8c252">pidType</a> </td> <td class="paramname"><em>pid</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>haveLock</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="../../de/d38/paging_8c_source.html#l00199">199</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d24/kpanic_8h_source.html#l00032">K_PANIC</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../dc/d88/armv6_2spinlock_8c_source.html#l00055">spinLock()</a>, <a class="el" href="../../d4/d03/kmalloc_8h_source.html#l00038">sysID</a>, <a class="el" href="../../d1/d21/vmm_8h_source.html#l00059">VMM_USER_END</a>, and <a class="el" href="../../d1/d21/vmm_8h_source.html#l00058">VMM_USER_START</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d5/d8b/kernel_2elf_8c_source.html#l00037">elf_load_file()</a>, <a class="el" href="../../df/dc9/exec_8c_source.html#l00153">execFile()</a>, <a class="el" href="../../da/d53/vmm__mmap_8c_source.html#l00075">freebsd6_mmap()</a>, <a class="el" href="../../d4/dda/kmod_8c_source.html#l00070">kmod_load()</a>, <a class="el" href="../../d8/dd5/ld_8c_source.html#l00040">ldEnable()</a>, <a class="el" href="../../de/d1c/ogDisplay__UbixOS_8cc_source.html#l00099">ogDisplay_UbixOS::SetMode()</a>, <a class="el" href="../../da/d53/vmm__mmap_8c_source.html#l00162">sys_mmap()</a>, <a class="el" href="../../df/dc9/exec_8c_source.html#l00340">sysExec()</a>, <a class="el" href="../../de/d38/paging_8c_source.html#l00291">vmm_getFreeKernelPage()</a>, and <a class="el" href="../../de/d38/paging_8c_source.html#l00058">vmm_pagingInit()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../de/d38/paging_8c_ad6c3897473d837504f3d1415fb8ab796_cgraph.png" border="0" usemap="#de/d38/paging_8c_ad6c3897473d837504f3d1415fb8ab796_cgraph" alt=""/></div> <map name="de/d38/paging_8c_ad6c3897473d837504f3d1415fb8ab796_cgraph" id="de/d38/paging_8c_ad6c3897473d837504f3d1415fb8ab796_cgraph"> <area shape="rect" title=" " alt="" coords="5,31,128,57"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="183,5,243,32"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="176,56,251,83"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="299,31,390,57"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="299,81,391,108"/> </map> </div> </div> </div> <h2 class="groupheader">Variable Documentation</h2> <a id="a7c58070dedac2ee9e1c73d8c8206b923"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7c58070dedac2ee9e1c73d8c8206b923">◆ </a></span>kernelPageDirectory</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a>* kernelPageDirectory = 0x0</td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="../../de/d38/paging_8c_source.html#l00041">41</a> of file <a class="el" href="../../de/d38/paging_8c_source.html">paging.c</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d8/d4c/i386_2bioscall_8c_source.html#l00040">biosCall()</a>, <a class="el" href="../../df/dc9/exec_8c_source.html#l00153">execFile()</a>, <a class="el" href="../../df/dc9/exec_8c_source.html#l00066">execThread()</a>, and <a class="el" href="../../de/d38/paging_8c_source.html#l00058">vmm_pagingInit()</a>.</p> </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="../../de/d38/paging_8c.html">paging.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>