Newer
Older
UbixOS / doc / html / gdt_8h_source.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 V2: C:/Dev/git/UbixOS/sys/include/sys/gdt.h Source File</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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 V2
   &#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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<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('',true,false,'search.php','Search');
  $(document).ready(function() { init_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('gdt_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">gdt.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gdt_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*-</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2002-2018 The UbixOS Project.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * This was developed by Christopher W. Olsen for the UbixOS Project.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification, are permitted</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * provided that the following conditions are met:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * 1) Redistributions of source code must retain the above copyright notice, this list of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    conditions, the following disclaimer and the list of authors.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * 2) Redistributions in binary form must reproduce the above copyright notice, this list of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    conditions, the following disclaimer and the list of authors in the documentation and/or</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    other materials provided with the distribution.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * 3) Neither the name of the UbixOS Project nor the names of its contributors may be used to</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    endorse or promote products derived from this software without specific prior written</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    permission.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#ifndef _GDT_H_</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#define _GDT_H_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="gdt_8h.html#a6f509410b22ba7d33df9c9d6c8c6e9a5">   32</a></span>&#160;<span class="preprocessor">#define SEL_GET_PL(sel)  ((sel)&amp;3) </span><span class="comment">/* Get Priority Level Of Selector */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="gdt_8h.html#a370f44c4d8ae8229b9b6dc20334ff274">   33</a></span>&#160;<span class="preprocessor">#define SEL_GET_LG(sel)  ((sel)&amp;4) </span><span class="comment">/* Return Local/Global Descriptor */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="gdt_8h.html#a2bb7b8fa7ac79171d8532454ca03095a">   34</a></span>&#160;<span class="preprocessor">#define SEL_GET_IDX(sel) (((sel)&gt;&gt;3) &amp; 0x1FFF) </span><span class="comment">/* Get Selector Index */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="gdt_8h.html#aaad8010ccb57fd5614f87f150ead9f51">   36</a></span>&#160;<span class="preprocessor">#define SEL_PL_KERN 0x0</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="gdt_8h.html#ace58b790221d5655a214dadd230a9af2">   37</a></span>&#160;<span class="preprocessor">#define SEL_PL_USER 0x3</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">/* Descriptor Definitions */</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="gdt_8h.html#a84806600e03a4a34f20aeb9cdacdb4f9">   40</a></span>&#160;<span class="preprocessor">#define dCall 0x0C00 </span><span class="comment">/* 386 Call Gate                */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="gdt_8h.html#af37890c8c59b0fd3d83cea8d6034a035">   41</a></span>&#160;<span class="preprocessor">#define dCode 0x1800 </span><span class="comment">/* Code Segment                 */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="gdt_8h.html#afcbb50cc521f6214eda9bca84aaee513">   42</a></span>&#160;<span class="preprocessor">#define dData 0x1000 </span><span class="comment">/* Data Segment                 */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="gdt_8h.html#a7eb6dc7004c613df58764da5df7d85d8">   43</a></span>&#160;<span class="preprocessor">#define dInt  0x0E00 </span><span class="comment">/* 386 Interrupt Gate           */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="gdt_8h.html#a5ebc94affcfbf066336ac0910680345e">   44</a></span>&#160;<span class="preprocessor">#define dLdt  0x200  </span><span class="comment">/* Local Descriptor Table (LDT) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="gdt_8h.html#a1521354f2c1fc307021a9a75dfc805f8">   45</a></span>&#160;<span class="preprocessor">#define dTask 0x500  </span><span class="comment">/* Task gate                    */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="gdt_8h.html#ab566353a8383ed84a5d0328677dc05dd">   46</a></span>&#160;<span class="preprocessor">#define dTrap 0x0F00 </span><span class="comment">/* 386 Trap Gate                */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="gdt_8h.html#a4d5c962ea8bc3d8422e6c3b92ce4b74f">   47</a></span>&#160;<span class="preprocessor">#define dTss  0x900  </span><span class="comment">/* Task State Segment (TSS)     */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">/* Descriptor Options */</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="gdt_8h.html#a2e29d1e158d5e81dc70dfae75f17d7f4">   50</a></span>&#160;<span class="preprocessor">#define dDpl3     0x6000 </span><span class="comment">/* DPL3 or mask for DPL             */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="gdt_8h.html#a609771e14bb3788ff7586d3d7a58fb62">   51</a></span>&#160;<span class="preprocessor">#define dDpl2     0x4000 </span><span class="comment">/* DPL2 or mask for DPL             */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="gdt_8h.html#aace18aa461784b516613570ef3e369a8">   52</a></span>&#160;<span class="preprocessor">#define dDpl1     0x2000 </span><span class="comment">/* DPL1 or mask for DPL             */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="gdt_8h.html#a5ee8638767e24765a2690483745d60d0">   53</a></span>&#160;<span class="preprocessor">#define dDpl0     0x0000 </span><span class="comment">/* DPL0 or mask for DPL             */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="gdt_8h.html#abe5eb76416aff1d9114e1cdb8b0797fe">   54</a></span>&#160;<span class="preprocessor">#define dPresent  0x8000 </span><span class="comment">/* Present                          */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="gdt_8h.html#a98924c500f63ccfe4e9566ee472490e2">   55</a></span>&#160;<span class="preprocessor">#define dNpresent 0x8000 </span><span class="comment">/* Not Present                      */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="gdt_8h.html#aad9c89b1e259b5cf08fd3610fd721402">   56</a></span>&#160;<span class="preprocessor">#define dAcc      0x100  </span><span class="comment">/* Accessed (Data or Code)          */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="gdt_8h.html#a9785c919d49cacd1b0fa92590a7562c8">   57</a></span>&#160;<span class="preprocessor">#define dWrite    0x200  </span><span class="comment">/* Writable (Data segments only)    */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="gdt_8h.html#a4427d6b09e5682b1c554a5a61e9bee55">   58</a></span>&#160;<span class="preprocessor">#define dRead     0x200  </span><span class="comment">/* Readable (Code segments only)    */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="gdt_8h.html#abd5637ceae4810b07f63f34a6efe3af0">   59</a></span>&#160;<span class="preprocessor">#define dBusy     0xB00  </span><span class="comment">/* Busy (TSS only)    was 200       */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="gdt_8h.html#a06255d29c48480c11a63195508ce39b5">   60</a></span>&#160;<span class="preprocessor">#define dEexdown  0x400  </span><span class="comment">/* Expand down (Data segments only) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="gdt_8h.html#aa8b04f84cbfdce2f778108416f654650">   61</a></span>&#160;<span class="preprocessor">#define dConform  0x400  </span><span class="comment">/* Conforming (Code segments only)  */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="gdt_8h.html#a6b595357c10a17c620edcbeeb1c7f6a1">   62</a></span>&#160;<span class="preprocessor">#define dBig      0x40   </span><span class="comment">/* Default to 32 bit mode           */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="gdt_8h.html#abc269d96e027bb39b828cadb2fc8660f">   63</a></span>&#160;<span class="preprocessor">#define dBiglim   0x80   </span><span class="comment">/* Limit is in 4K units             */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">/* GDT Descriptor */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html">   66</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgdtDescriptor.html">gdtDescriptor</a> {</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#a3b6f25eeaf186c263985eabffb96cb1a">   67</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structgdtDescriptor.html#a3b6f25eeaf186c263985eabffb96cb1a">limitLow</a>; <span class="comment">/* Limit 0..15    */</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#ad8fb7196c3b0b2d15ebbc0d20006d0a8">   68</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structgdtDescriptor.html#ad8fb7196c3b0b2d15ebbc0d20006d0a8">baseLow</a>; <span class="comment">/* Base  0..15    */</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#aef125e8406580a85d2201c2d63245575">   69</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structgdtDescriptor.html#aef125e8406580a85d2201c2d63245575">baseMed</a>; <span class="comment">/* Base  16..23   */</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#ae0bca342b5caa6d39826f21fc9ac4d56">   70</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structgdtDescriptor.html#ae0bca342b5caa6d39826f21fc9ac4d56">access</a>; <span class="comment">/* Access Byte    */</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#a8f380d84a88a1982542a08fd9b53698f">   71</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structgdtDescriptor.html#a8f380d84a88a1982542a08fd9b53698f">limitHigh</a> :4; <span class="comment">/* Limit 16..19   */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#a1c5e6d9ddc74b0998b968a383e5f314c">   72</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structgdtDescriptor.html#a1c5e6d9ddc74b0998b968a383e5f314c">granularity</a> :4; <span class="comment">/* Granularity    */</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structgdtDescriptor.html#a2cd45ddaee984e45ef519b5f96cb4151">   73</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structgdtDescriptor.html#a2cd45ddaee984e45ef519b5f96cb4151">baseHigh</a>; <span class="comment">/* Base 24..31    */</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}<a class="code" href="gdt_8h.html#ae2d16a801307e5bad8d30e90601a107b">__attribute__</a> ((packed));</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structgdtGate.html">   76</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structgdtGate.html">gdtGate</a> {</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structgdtGate.html#abc0d1d719871949fd4a56d71ba97076e">   77</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structgdtGate.html#abc0d1d719871949fd4a56d71ba97076e">offsetLow</a>; <span class="comment">/* Offset 0..15  */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structgdtGate.html#a71d7780bce5bd08890088cab94d6c415">   78</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structgdtGate.html#a71d7780bce5bd08890088cab94d6c415">selector</a>; <span class="comment">/* Selector      */</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structgdtGate.html#a78486d8b9aa678859910a54e16ca043c">   79</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structgdtGate.html#a78486d8b9aa678859910a54e16ca043c">access</a>; <span class="comment">/* Access Flags  */</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="gdt_8h.html#a062a82b40d49a93e0b1df488753a05c7">   80</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structgdtGate.html#aacfb0c1ac599c92b3aa941bbf146cab6">offsetHigh</a>; <span class="comment">/* Offset 16..31 */</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="gdt_8h.html#a6dfbfc549c0fa420ccc893f30419419d">   81</a></span>&#160;}<a class="code" href="gdt_8h.html#ae2d16a801307e5bad8d30e90601a107b">__attribute__</a> ((packed));</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="gdt_8h.html#ae19f3fa28f7f859cf6b1953fb1c5a923">   82</a></span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="gdt_8h.html#a198dfa308833dbb0ad274c3cba92bf9c">   83</a></span>&#160;<span class="keyword">union </span><a class="code" href="uniondescriptorTableUnion.html">descriptorTableUnion</a> {</div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="gdt_8h.html#a1e4177f7c614d17db5c7a1eff62b9a5f">   84</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structgdtDescriptor.html">gdtDescriptor</a> <a class="code" href="uniondescriptorTableUnion.html#a5c0b66fcfd449657154ad846df5cf701">descriptor</a>; <span class="comment">/* Normal descriptor */</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="gdt_8h.html#a13b3c4a548236ea9660c0df43a518fbc">   85</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structgdtGate.html">gdtGate</a> <a class="code" href="uniondescriptorTableUnion.html#a6040720faa184813d93d2521a9558e5d">gate</a>; <span class="comment">/* Gate descriptor */</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="gdt_8h.html#aca5617d66cdcb6082e9875026baff360">   86</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="uniondescriptorTableUnion.html#a088ef1c7d8872dc929903de980a91b86">dummy</a>; <span class="comment">/* Any other info */</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;};</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="gdt_8h.html#af3cff64995ffb5584c82c7bf27ee802d">   89</a></span>&#160;<span class="preprocessor">#define ubixDescriptorTable(name, length) union descriptorTableUnion name[length] =</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="gdt_8h.html#ac84a835fad3118c457254bf67013ad5b">   90</a></span>&#160;<span class="preprocessor">#define ubixStandardDescriptor(base, limit, control) {.descriptor = {(limit &amp; 0xffff), (base &amp; 0xffff), ((base &gt;&gt; 16) &amp; 0xff), ((control + dPresent) &gt;&gt; 8), (limit &gt;&gt; 16), ((control &amp; 0xff) &gt;&gt; 4), (base &gt;&gt; 24)}}</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="gdt_8h.html#a7eb57f465bcbf5080c587a469a3a5a08">   91</a></span>&#160;<span class="preprocessor">#define ubixGateDescriptor(offset, selector, control) {.gate = {(offset &amp; 0xffff), selector, (control+dPresent), (offset &gt;&gt; 16) }}</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keyword">extern</span> <span class="keyword">union </span><a class="code" href="uniondescriptorTableUnion.html">descriptorTableUnion</a> <a class="code" href="gdt_8h.html#a7061e97a5e93568027196f9ab7a47b04">ubixGDT</a>[11];</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">/***</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment"> $Log: gdt.h,v $</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment"> Revision 1.1.1.1  2006/06/01 12:46:15  reddawg</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment"> ubix2</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment"> Revision 1.2  2005/10/12 00:13:37  reddawg</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment"> Removed</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="comment"> Revision 1.1.1.1  2005/09/26 17:23:52  reddawg</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="comment"> no message</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="comment"> Revision 1.5  2004/08/15 16:47:49  reddawg</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment"> Fixed</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment"> Revision 1.4  2004/07/22 20:53:07  reddawg</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment"> atkbd: fixed problem</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment"> Revision 1.3  2004/05/21 15:12:17  reddawg</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment"> Cleaned up</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment"> END</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment"> ***/</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="agdt_8h_html_ae2d16a801307e5bad8d30e90601a107b"><div class="ttname"><a href="gdt_8h.html#ae2d16a801307e5bad8d30e90601a107b">__attribute__</a></div><div class="ttdeci">union descriptorTableUnion __attribute__</div></div>
<div class="ttc" id="auniondescriptorTableUnion_html_a5c0b66fcfd449657154ad846df5cf701"><div class="ttname"><a href="uniondescriptorTableUnion.html#a5c0b66fcfd449657154ad846df5cf701">descriptorTableUnion::descriptor</a></div><div class="ttdeci">struct gdtDescriptor descriptor</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00084">gdt.h:84</a></div></div>
<div class="ttc" id="agdt_8h_html_a7061e97a5e93568027196f9ab7a47b04"><div class="ttname"><a href="gdt_8h.html#a7061e97a5e93568027196f9ab7a47b04">ubixGDT</a></div><div class="ttdeci">union descriptorTableUnion ubixGDT[11]</div></div>
<div class="ttc" id="astructgdtGate_html"><div class="ttname"><a href="structgdtGate.html">gdtGate</a></div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00076">gdt.h:76</a></div></div>
<div class="ttc" id="auniondescriptorTableUnion_html_a088ef1c7d8872dc929903de980a91b86"><div class="ttname"><a href="uniondescriptorTableUnion.html#a088ef1c7d8872dc929903de980a91b86">descriptorTableUnion::dummy</a></div><div class="ttdeci">unsigned long dummy</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00086">gdt.h:86</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_ae0bca342b5caa6d39826f21fc9ac4d56"><div class="ttname"><a href="structgdtDescriptor.html#ae0bca342b5caa6d39826f21fc9ac4d56">gdtDescriptor::access</a></div><div class="ttdeci">unsigned char access</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00070">gdt.h:70</a></div></div>
<div class="ttc" id="astructgdtGate_html_aacfb0c1ac599c92b3aa941bbf146cab6"><div class="ttname"><a href="structgdtGate.html#aacfb0c1ac599c92b3aa941bbf146cab6">gdtGate::offsetHigh</a></div><div class="ttdeci">unsigned short offsetHigh</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00080">gdt.h:80</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_a1c5e6d9ddc74b0998b968a383e5f314c"><div class="ttname"><a href="structgdtDescriptor.html#a1c5e6d9ddc74b0998b968a383e5f314c">gdtDescriptor::granularity</a></div><div class="ttdeci">unsigned int granularity</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00072">gdt.h:72</a></div></div>
<div class="ttc" id="astructgdtGate_html_a71d7780bce5bd08890088cab94d6c415"><div class="ttname"><a href="structgdtGate.html#a71d7780bce5bd08890088cab94d6c415">gdtGate::selector</a></div><div class="ttdeci">unsigned short selector</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00078">gdt.h:78</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html"><div class="ttname"><a href="structgdtDescriptor.html">gdtDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00066">gdt.h:66</a></div></div>
<div class="ttc" id="auniondescriptorTableUnion_html"><div class="ttname"><a href="uniondescriptorTableUnion.html">descriptorTableUnion</a></div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00083">gdt.h:83</a></div></div>
<div class="ttc" id="astructgdtGate_html_abc0d1d719871949fd4a56d71ba97076e"><div class="ttname"><a href="structgdtGate.html#abc0d1d719871949fd4a56d71ba97076e">gdtGate::offsetLow</a></div><div class="ttdeci">unsigned short offsetLow</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00077">gdt.h:77</a></div></div>
<div class="ttc" id="astructgdtGate_html_a78486d8b9aa678859910a54e16ca043c"><div class="ttname"><a href="structgdtGate.html#a78486d8b9aa678859910a54e16ca043c">gdtGate::access</a></div><div class="ttdeci">unsigned short access</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00079">gdt.h:79</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_ad8fb7196c3b0b2d15ebbc0d20006d0a8"><div class="ttname"><a href="structgdtDescriptor.html#ad8fb7196c3b0b2d15ebbc0d20006d0a8">gdtDescriptor::baseLow</a></div><div class="ttdeci">unsigned short baseLow</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00068">gdt.h:68</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_aef125e8406580a85d2201c2d63245575"><div class="ttname"><a href="structgdtDescriptor.html#aef125e8406580a85d2201c2d63245575">gdtDescriptor::baseMed</a></div><div class="ttdeci">unsigned char baseMed</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00069">gdt.h:69</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_a2cd45ddaee984e45ef519b5f96cb4151"><div class="ttname"><a href="structgdtDescriptor.html#a2cd45ddaee984e45ef519b5f96cb4151">gdtDescriptor::baseHigh</a></div><div class="ttdeci">unsigned char baseHigh</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00073">gdt.h:73</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_a3b6f25eeaf186c263985eabffb96cb1a"><div class="ttname"><a href="structgdtDescriptor.html#a3b6f25eeaf186c263985eabffb96cb1a">gdtDescriptor::limitLow</a></div><div class="ttdeci">unsigned short limitLow</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00067">gdt.h:67</a></div></div>
<div class="ttc" id="auniondescriptorTableUnion_html_a6040720faa184813d93d2521a9558e5d"><div class="ttname"><a href="uniondescriptorTableUnion.html#a6040720faa184813d93d2521a9558e5d">descriptorTableUnion::gate</a></div><div class="ttdeci">struct gdtGate gate</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00085">gdt.h:85</a></div></div>
<div class="ttc" id="astructgdtDescriptor_html_a8f380d84a88a1982542a08fd9b53698f"><div class="ttname"><a href="structgdtDescriptor.html#a8f380d84a88a1982542a08fd9b53698f">gdtDescriptor::limitHigh</a></div><div class="ttdeci">unsigned int limitHigh</div><div class="ttdef"><b>Definition:</b> <a href="gdt_8h_source.html#l00071">gdt.h:71</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_d99d5d4662bf24521eef49da6a8cd34d.html">Dev</a></li><li class="navelem"><a class="el" href="dir_474a4b306371cf7e7f6fa12cb0b77df6.html">git</a></li><li class="navelem"><a class="el" href="dir_849109bbd106d461b128d63e5babcedf.html">UbixOS</a></li><li class="navelem"><a class="el" href="dir_6ec99f6d7d5182ba8913209ab70c9f18.html">sys</a></li><li class="navelem"><a class="el" href="dir_d1be8160e739b6eed1f7843efdbae1b3.html">include</a></li><li class="navelem"><a class="el" href="dir_214f84c2c73d0f2f98eaa46a63e7b8c6.html">sys</a></li><li class="navelem"><a class="el" href="gdt_8h.html">gdt.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>