Newer
Older
ubixos / doc / html / d7 / d0b / trap_8h.html
<!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: include/sys/trap.h 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&amp;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
   &#160;<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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d7/d0b/trap_8h.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">trap.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../d6/d35/i386_2cpu_8h_source.html">i386/cpu.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for trap.h:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/d5f/trap_8h__incl.png" border="0" usemap="#include_2sys_2trap_8h" alt=""/></div>
<map name="include_2sys_2trap_8h" id="include_2sys_2trap_8h">
<area shape="rect" title=" " alt="" coords="5,5,131,32"/>
<area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="27,80,109,107"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="23,155,113,181"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="182,379,279,405"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="120,229,213,256"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="58,304,147,331"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="171,304,290,331"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="314,304,419,331"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="443,304,543,331"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d7d/trap_8h__dep__incl.png" border="0" usemap="#include_2sys_2trap_8hdep" alt=""/></div>
<map name="include_2sys_2trap_8hdep" id="include_2sys_2trap_8hdep">
<area shape="rect" title=" " alt="" coords="4071,5,4197,32"/>
<area shape="rect" href="../../d5/d60/arch_2armv6_2syscall_8c.html" title=" " alt="" coords="3390,430,3531,457"/>
<area shape="rect" href="../../dc/d6f/trap_8c.html" title=" " alt="" coords="3003,341,3115,367"/>
<area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="1127,80,1266,107"/>
<area shape="rect" href="../../dc/d5c/kernel_2syscall_8c.html" title=" " alt="" coords="4085,430,4199,457"/>
<area shape="rect" href="../../de/d5f/syscall__posix_8c.html" title=" " alt="" coords="4236,430,4387,457"/>
<area shape="rect" href="../../d5/d05/idt_8c.html" title=" " alt="" coords="4363,341,4435,367"/>
<area shape="rect" href="../../d4/d48/pagefault_8c.html" title=" " alt="" coords="3140,341,3256,367"/>
<area shape="rect" href="../../de/ddf/syscall_8h.html" title=" " alt="" coords="4172,251,4333,278"/>
<area shape="rect" href="../../d6/db0/syscall__posix_8h.html" title=" " alt="" coords="4347,155,4497,196"/>
<area shape="rect" href="../../d3/df4/descrip_8h.html" title=" " alt="" coords="2089,341,2235,367"/>
<area shape="rect" href="../../d2/d3f/descrip_8c.html" title=" " alt="" coords="1522,430,1637,457"/>
<area shape="rect" href="../../d3/d0a/gen__calls_8c.html" title=" " alt="" coords="1368,430,1495,457"/>
<area shape="rect" href="../../d6/dba/kern__pipe_8c.html" title=" " alt="" coords="173,430,301,457"/>
<area shape="rect" href="../../d1/d47/pipe_8c.html" title=" " alt="" coords="10,430,106,457"/>
<area shape="rect" href="../../d7/d42/vfs__calls_8c.html" title=" " alt="" coords="1129,430,1251,457"/>
<area shape="rect" href="../../de/d9a/gen__calls_8h.html" title=" " alt="" coords="1351,341,1509,367"/>
<area shape="rect" href="../../de/de2/kern__sig_8h.html" title=" " alt="" coords="393,341,545,367"/>
<area shape="rect" href="../../dd/d88/kern__sig_8c.html" title=" " alt="" coords="408,430,529,457"/>
<area shape="rect" href="../../d7/d40/kern__sysctl_8h.html" title=" " alt="" coords="771,341,942,367"/>
<area shape="rect" href="../../d0/def/kern__sysctl_8c.html" title=" " alt="" coords="630,430,769,457"/>
<area shape="rect" href="../../da/d3e/pipe_8h.html" title=" " alt="" coords="55,341,181,367"/>
<area shape="rect" href="../../d5/d20/sysproto_8h.html" title=" " alt="" coords="3737,251,3891,278"/>
<area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="1125,244,1268,285"/>
<area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="2259,341,2371,367"/>
<area shape="rect" href="../../d4/df4/paging_8h.html" title=" " alt="" coords="1585,341,1731,367"/>
<area shape="rect" href="../../d9/d74/execve_8c.html" title=" " alt="" coords="257,341,369,367"/>
<area shape="rect" href="../../d8/d36/signal_8c.html" title=" " alt="" coords="1755,341,1862,367"/>
<area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="2553,251,2707,278"/>
<area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="2573,162,2687,189"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html" title=" " alt="" coords="2028,430,2163,457"/>
<area shape="rect" href="../../d9/d48/i386_2fork_8c.html" title=" " alt="" coords="2187,430,2297,457"/>
<area shape="rect" href="../../de/d18/i386__exec_8c.html" title=" " alt="" coords="2758,430,2907,457"/>
<area shape="rect" href="../../d9/d83/i386_2sched_8c.html" title=" " alt="" coords="2322,430,2447,457"/>
<area shape="rect" href="../../d6/d13/file_8c.html" title=" " alt="" coords="1815,430,1898,457"/>
<area shape="rect" href="../../db/d66/stat_8c.html" title=" " alt="" coords="3094,430,3182,457"/>
<area shape="rect" href="../../dd/df2/vfs_8c.html" title=" " alt="" coords="1923,430,2004,457"/>
<area shape="rect" href="../../d9/d56/sys__arch_8c.html" title=" " alt="" coords="1661,430,1791,457"/>
<area shape="rect" href="../../de/d38/paging_8c.html" title=" " alt="" coords="2472,430,2575,457"/>
<area shape="rect" href="../../da/d53/vmm__mmap_8c.html" title=" " alt="" coords="2599,430,2733,457"/>
<area shape="rect" href="../../d4/d75/ubixos_2init_8h.html" title=" " alt="" coords="2932,430,3069,457"/>
<area shape="rect" href="../../d6/dc6/ufs__extern_8h.html" title=" " alt="" coords="793,423,920,464"/>
<area shape="rect" href="../../d6/de9/copyvirtualspace_8c.html" title=" " alt="" coords="945,430,1105,457"/>
<area shape="rect" href="../../df/db5/sde_8h.html" title=" " alt="" coords="4012,341,4136,367"/>
<area shape="rect" href="../../d5/d87/syscalls_8c.html" title=" " alt="" coords="3914,430,4034,457"/>
<area shape="rect" href="../../db/d72/mpi__syscalls_8c.html" title=" " alt="" coords="3676,341,3811,367"/>
<area shape="rect" href="../../d4/dfd/system_8c.html" title=" " alt="" coords="3835,341,3937,367"/>
<area shape="rect" href="../../d7/d12/syscalls__new_8h.html" title=" " alt="" coords="1118,333,1275,375"/>
<area shape="rect" href="../../dc/d85/syscalls__posix_8c.html" title=" " alt="" coords="3207,430,3365,457"/>
<area shape="rect" href="../../d2/d6e/syscalls_8h.html" title=" " alt="" coords="3382,341,3550,367"/>
</map>
</div>
</div>
<p><a href="../../d7/d0b/trap_8h_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="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d05/structtrapframe.html">trapframe</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a62b4617f9a2800b1e9baf8d6f93835bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d0b/trap_8h.html#a62b4617f9a2800b1e9baf8d6f93835bd">die_if_kernel</a> (char *str, struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> *regs, long err)</td></tr>
<tr class="separator:a62b4617f9a2800b1e9baf8d6f93835bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50e545f26a0fed346d9d0ed1d585cbfe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d0b/trap_8h.html#a50e545f26a0fed346d9d0ed1d585cbfe">trap</a> (struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> *)</td></tr>
<tr class="separator:a50e545f26a0fed346d9d0ed1d585cbfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a62b4617f9a2800b1e9baf8d6f93835bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62b4617f9a2800b1e9baf8d6f93835bd">&#9670;&nbsp;</a></span>die_if_kernel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void die_if_kernel </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> *&#160;</td>
          <td class="paramname"><em>regs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>err</em>&#160;</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="../../dc/d6f/trap_8c_source.html#l00059">59</a> of file <a class="el" href="../../dc/d6f/trap_8c_source.html">trap.c</a>.</p>

<p class="reference">References <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00051">trapframe::tf_cs</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00038">trapframe::tf_ds</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00046">trapframe::tf_eax</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00041">trapframe::tf_ebp</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00043">trapframe::tf_ebx</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00045">trapframe::tf_ecx</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00039">trapframe::tf_edi</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00044">trapframe::tf_edx</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00052">trapframe::tf_eflags</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>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00037">trapframe::tf_es</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00040">trapframe::tf_esi</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00054">trapframe::tf_esp</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00036">trapframe::tf_fs</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00035">trapframe::tf_gs</a>, <a class="el" href="../../d7/d0b/trap_8h_source.html#l00055">trapframe::tf_ss</a>, and <a class="el" href="../../d7/d0b/trap_8h_source.html#l00047">trapframe::tf_trapno</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d5/d05/idt_8c_source.html#l00633">__alignmentCheck()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00285">__debug()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00259">__divideError()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00382">__doubleFault()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00607">__floatingPoint()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00658">__machineCheck()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00311">__nmi()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00737">__security()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00684">__simd()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00711">__virtualization()</a>, <a class="el" href="../../d5/d05/idt_8c_source.html#l00235">_intNull()</a>, <a class="el" href="../../dc/d5c/kernel_2syscall_8c_source.html#l00043">sys_call()</a>, and <a class="el" href="../../de/d5f/syscall__posix_8c_source.html#l00042">sys_call_posix()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d7/d0b/trap_8h_a62b4617f9a2800b1e9baf8d6f93835bd_cgraph.png" border="0" usemap="#d7/d0b/trap_8h_a62b4617f9a2800b1e9baf8d6f93835bd_cgraph" alt=""/></div>
<map name="d7/d0b/trap_8h_a62b4617f9a2800b1e9baf8d6f93835bd_cgraph" id="d7/d0b/trap_8h_a62b4617f9a2800b1e9baf8d6f93835bd_cgraph">
<area shape="rect" title=" " alt="" coords="5,132,100,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="148,132,205,159"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="259,81,314,108"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="255,132,318,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="253,183,320,209"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="372,5,453,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="368,56,457,83"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="381,107,445,133"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="378,157,447,184"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="505,157,580,184"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="629,132,719,159"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="628,183,720,209"/>
</map>
</div>

</div>
</div>
<a id="a50e545f26a0fed346d9d0ed1d585cbfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50e545f26a0fed346d9d0ed1d585cbfe">&#9670;&nbsp;</a></span>trap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void trap </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="../../df/d05/structtrapframe.html">trapframe</a> *&#160;</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="../../dc/d6f/trap_8c_source.html#l00101">101</a> of file <a class="el" href="../../dc/d6f/trap_8c_source.html">trap.c</a>.</p>

<p class="reference">References <a class="el" href="../../d7/d0b/trap_8h_source.html#l00047">trapframe::tf_trapno</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_317ea3797c15f4a1d9c156bc812661ca.html">sys</a></li><li class="navelem"><a class="el" href="../../d7/d0b/trap_8h.html">trap.h</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>