Newer
Older
UbixOS / doc / html / d3 / d24 / kpanic_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/ubixos/kpanic.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('d3/d24/kpanic_8h.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">kpanic.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<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="../../dc/de1/kpanic_8h__dep__incl.png" border="0" usemap="#include_2ubixos_2kpanic_8hdep" alt=""/></div>
<map name="include_2ubixos_2kpanic_8hdep" id="include_2ubixos_2kpanic_8hdep">
<area shape="rect" title=" " alt="" coords="3065,5,3223,32"/>
<area shape="rect" href="../../df/dc9/exec_8c.html" title=" " alt="" coords="5,80,133,107"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html" title=" " alt="" coords="157,80,296,107"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html" title=" " alt="" coords="321,80,455,107"/>
<area shape="rect" href="../../dc/d2e/armv6_2systemtask_8c.html" title=" " alt="" coords="480,80,648,107"/>
<area shape="rect" href="../../de/d18/i386__exec_8c.html" title=" " alt="" coords="672,80,821,107"/>
<area shape="rect" href="../../d6/d0b/i386_2kpanic_8c.html" title=" " alt="" coords="845,80,973,107"/>
<area shape="rect" href="../../d9/d83/i386_2sched_8c.html" title=" " alt="" coords="997,80,1123,107"/>
<area shape="rect" href="../../d3/dd3/i386_2systemtask_8c.html" title=" " alt="" coords="1147,80,1306,107"/>
<area shape="rect" href="../../d4/d27/devfs_8c.html" title=" " alt="" coords="1331,80,1440,107"/>
<area shape="rect" href="../../d3/d2e/fat_8c.html" title=" " alt="" coords="1465,80,1543,107"/>
<area shape="rect" href="../../d3/de7/thread_8c.html" title=" " alt="" coords="1567,80,1689,107"/>
<area shape="rect" href="../../d2/d34/ubixfs_8c.html" title=" " alt="" coords="1713,80,1831,107"/>
<area shape="rect" href="../../de/df2/ffs_8c.html" title=" " alt="" coords="1855,80,1937,107"/>
<area shape="rect" href="../../d3/d41/ufs_8c.html" title=" " alt="" coords="1961,80,2047,107"/>
<area shape="rect" href="../../d6/d13/file_8c.html" title=" " alt="" coords="2071,80,2153,107"/>
<area shape="rect" href="../../dc/d92/mount_8c.html" title=" " alt="" coords="2178,80,2281,107"/>
<area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="2305,80,2431,107"/>
<area shape="rect" href="../../d9/d56/sys__arch_8c.html" title=" " alt="" coords="2279,229,2409,256"/>
<area shape="rect" href="../../d0/d29/main_8c.html" title=" " alt="" coords="2505,80,2588,107"/>
<area shape="rect" href="../../dd/dd3/atkbd_8c.html" title=" " alt="" coords="2613,80,2699,107"/>
<area shape="rect" href="../../dd/d07/ne2k_8c.html" title=" " alt="" coords="2724,80,2807,107"/>
<area shape="rect" href="../../d5/d8b/kernel_2elf_8c.html" title=" " alt="" coords="2831,80,2916,107"/>
<area shape="rect" href="../../d0/def/kern__sysctl_8c.html" title=" " alt="" coords="2940,80,3079,107"/>
<area shape="rect" href="../../d8/dd5/ld_8c.html" title=" " alt="" coords="3103,80,3185,107"/>
<area shape="rect" href="../../d2/d0b/sem_8c.html" title=" " alt="" coords="3210,80,3307,107"/>
<area shape="rect" href="../../dc/dfb/smp_8c.html" title=" " alt="" coords="3331,80,3429,107"/>
<area shape="rect" href="../../dc/d5c/kernel_2syscall_8c.html" title=" " alt="" coords="3453,80,3566,107"/>
<area shape="rect" href="../../de/d5f/syscall__posix_8c.html" title=" " alt="" coords="3590,80,3741,107"/>
<area shape="rect" href="../../dc/d03/tty_8c.html" title=" " alt="" coords="3765,80,3851,107"/>
<area shape="rect" href="../../d5/d9a/ubthread_8c.html" title=" " alt="" coords="3876,80,3999,107"/>
<area shape="rect" href="../../d2/d4e/vitals_8c.html" title=" " alt="" coords="4023,80,4124,107"/>
<area shape="rect" href="../../d4/dda/kmod_8c.html" title=" " alt="" coords="4149,80,4257,107"/>
<area shape="rect" href="../../d6/da0/assert_8c.html" title=" " alt="" coords="4281,80,4367,107"/>
<area shape="rect" href="../../d3/d1a/kmalloc_8c.html" title=" " alt="" coords="4391,80,4486,107"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html" title=" " alt="" coords="4511,80,4596,107"/>
<area shape="rect" href="../../d4/d4d/tcpdump_8c.html" title=" " alt="" coords="4620,80,4753,107"/>
<area shape="rect" href="../../de/d1c/ogDisplay__UbixOS_8cc.html" title=" " alt="" coords="4778,80,4953,107"/>
<area shape="rect" href="../../d5/d05/idt_8c.html" title=" " alt="" coords="4977,80,5049,107"/>
<area shape="rect" href="../../d6/de9/copyvirtualspace_8c.html" title=" " alt="" coords="5073,80,5233,107"/>
<area shape="rect" href="../../d9/dfc/getfreepage_8c.html" title=" " alt="" coords="5257,80,5388,107"/>
<area shape="rect" href="../../d4/de7/getfreevirtualpage_8c.html" title=" " alt="" coords="5413,80,5577,107"/>
<area shape="rect" href="../../d4/d48/pagefault_8c.html" title=" " alt="" coords="5601,80,5717,107"/>
<area shape="rect" href="../../de/d38/paging_8c.html" title=" " alt="" coords="5741,80,5843,107"/>
<area shape="rect" href="../../db/df4/setpageattributes_8c.html" title=" " alt="" coords="5867,80,6031,107"/>
<area shape="rect" href="../../d3/d21/vmm__init_8c.html" title=" " alt="" coords="6056,80,6171,107"/>
<area shape="rect" href="../../d3/db5/vmm__memory_8c.html" title=" " alt="" coords="6195,80,6341,107"/>
<area shape="rect" href="../../da/d53/vmm__mmap_8c.html" title=" " alt="" coords="6365,80,6499,107"/>
<area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="2154,155,2289,181"/>
<area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="2313,155,2431,181"/>
</map>
</div>
</div>
<p><a href="../../d3/d24/kpanic_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="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aa5193288597f00c4f8e3b2939aa6c0ce"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d24/kpanic_8h.html#aa5193288597f00c4f8e3b2939aa6c0ce">K_PANIC</a>(msg)&#160;&#160;&#160;<a class="el" href="../../d3/d24/kpanic_8h.html#adb9a182aa071791a306163d50d653deb">kpanic</a>(&quot;Error: (%s), File: %s, Line: %i\n&quot;,msg ,__FILE__,__LINE__);</td></tr>
<tr class="separator:aa5193288597f00c4f8e3b2939aa6c0ce"><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:adb9a182aa071791a306163d50d653deb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d24/kpanic_8h.html#adb9a182aa071791a306163d50d653deb">kpanic</a> (<a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *fmt,...)</td></tr>
<tr class="memdesc:adb9a182aa071791a306163d50d653deb"><td class="mdescLeft">&#160;</td><td class="mdescRight">print panic message and halt system  <a href="../../d3/d24/kpanic_8h.html#adb9a182aa071791a306163d50d653deb">More...</a><br /></td></tr>
<tr class="separator:adb9a182aa071791a306163d50d653deb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="aa5193288597f00c4f8e3b2939aa6c0ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5193288597f00c4f8e3b2939aa6c0ce">&#9670;&nbsp;</a></span>K_PANIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define K_PANIC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">msg</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="../../d3/d24/kpanic_8h.html#adb9a182aa071791a306163d50d653deb">kpanic</a>(&quot;Error: (%s), File: %s, Line: %i\n&quot;,msg ,__FILE__,__LINE__);</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d3/d24/kpanic_8h_source.html#l00032">32</a> of file <a class="el" href="../../d3/d24/kpanic_8h_source.html">kpanic.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="adb9a182aa071791a306163d50d653deb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb9a182aa071791a306163d50d653deb">&#9670;&nbsp;</a></span>kpanic()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void kpanic </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>print panic message and halt system </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fmt</td><td>panic message </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">41</a> of file <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html">kpanic.c</a>.</p>

<p class="reference">References <a class="el" href="../../d2/d68/8259_8h.html#a2b9ec30943ddb0a2ef3bd7ccfd2026c0">irqDisable()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../d6/d8a/fat__string_8h_source.html#l00017">NULL</a>, <a class="el" href="../../dc/d03/tty_8c_source.html#l00038">tty_foreground</a>, <a class="el" href="../../d1/d2d/stdarg_8h_source.html#l00050">va_end</a>, <a class="el" href="../../d1/d2d/stdarg_8h_source.html#l00041">va_start</a>, and <a class="el" href="../../d7/d31/vsprintf_8c_source.html#l00124">vsprintf()</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../dc/dfb/smp_8c_source.html#l00168">cpuidDetect()</a>, <a class="el" href="../../dc/dfb/smp_8c_source.html#l00177">cpuInfo()</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>, <a class="el" href="../../d3/d2e/fat_8c_source.html#l00180">fat_init()</a>, <a class="el" href="../../d4/dda/kmod_8c_source.html#l00070">kmod_load()</a>, <a class="el" href="../../d2/db6/lnc_8c_source.html#l00546">lnc_sendPacket()</a>, <a class="el" href="../../dd/d07/ne2k_8c_source.html#l00113">PCtoNIC()</a>, <a class="el" href="../../d2/d34/ubixfs_8c_source.html#l00192">readUbixFS()</a>, <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00135">schedNewTask()</a>, <a class="el" href="../../de/d1c/ogDisplay__UbixOS_8cc_source.html#l00099">ogDisplay_UbixOS::SetMode()</a>, <a class="el" href="../../dc/d5c/kernel_2syscall_8c_source.html#l00043">sys_call()</a>, <a class="el" href="../../de/d5f/syscall__posix_8c_source.html#l00042">sys_call_posix()</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="../../dc/d2e/armv6_2systemtask_8c_source.html#l00047">systemTask()</a>, <a class="el" href="../../d4/d4d/tcpdump_8c_source.html#l00047">tcpdump_init()</a>, <a class="el" href="../../dc/d03/tty_8c_source.html#l00084">tty_change()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00088">ubthread_mutex_lock()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00109">ubthread_mutex_unlock()</a>, <a class="el" href="../../d2/d4e/vitals_8c_source.html#l00047">vitals_init()</a>, <a class="el" href="../../de/db8/vmm__allocpagetable_8c_source.html#l00007">vmm_allocPageTable()</a>, <a class="el" href="../../d3/db5/vmm__memory_8c_source.html#l00221">vmm_findFreePage()</a>, <a class="el" href="../../de/d38/paging_8c_source.html#l00291">vmm_getFreeKernelPage()</a>, <a class="el" href="../../de/d38/paging_8c_source.html#l00199">vmm_remapPage()</a>, and <a class="el" href="../../db/df4/setpageattributes_8c_source.html#l00039">vmm_setPageAttributes()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/d24/kpanic_8h_adb9a182aa071791a306163d50d653deb_cgraph.png" border="0" usemap="#d3/d24/kpanic_8h_adb9a182aa071791a306163d50d653deb_cgraph" alt=""/></div>
<map name="d3/d24/kpanic_8h_adb9a182aa071791a306163d50d653deb_cgraph" id="d3/d24/kpanic_8h_adb9a182aa071791a306163d50d653deb_cgraph">
<area shape="rect" title="print panic message and halt system" alt="" coords="5,132,65,159"/>
<area shape="rect" href="../../d2/d68/8259_8h.html#a2b9ec30943ddb0a2ef3bd7ccfd2026c0" title=" " alt="" coords="113,81,192,108"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="124,132,181,159"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html#aaa83f2a89dae6d03dfe15deae29f383a" title=" " alt="" coords="121,183,184,209"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="246,81,301,108"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="242,132,305,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="240,183,307,209"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="359,5,440,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="355,56,444,83"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="367,107,431,133"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="365,157,434,184"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="492,157,567,184"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="615,132,706,159"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="615,183,707,209"/>
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_a44873caf3fcbd6d765fc7260c584f7c.html">ubixos</a></li><li class="navelem"><a class="el" href="../../d3/d24/kpanic_8h.html">kpanic.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>