<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16">
  <compounddef id="main_8c" kind="file" language="C++">
    <compoundname>main.c</compoundname>
    <includes refid="ubixos_2init_8h" local="no">ubixos/init.h</includes>
    <includes refid="gdt_8h" local="no">sys/gdt.h</includes>
    <includes refid="video_8h" local="no">sys/video.h</includes>
    <includes refid="tss_8h" local="no">sys/tss.h</includes>
    <includes refid="bootinfo_8h" local="no">sys/bootinfo.h</includes>
    <includes refid="exec_8h" local="no">ubixos/exec.h</includes>
    <includes refid="kpanic_8h" local="no">ubixos/kpanic.h</includes>
    <includes refid="systemtask_8h" local="no">ubixos/systemtask.h</includes>
    <includes refid="mount_8h" local="no">vfs/mount.h</includes>
    <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes>
    <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes>
    <includes refid="sde_8h" local="no">sde/sde.h</includes>
    <incdepgraph>
      <node id="75">
        <label>sys/video.h</label>
        <link refid="video_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="24">
        <label>ufs/ufs.h</label>
        <link refid="ufs_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="25" relation="include">
        </childnode>
      </node>
      <node id="38">
        <label>stdarg.h</label>
        <link refid="stdarg_8h"/>
      </node>
      <node id="39">
        <label>ubixos/kpanic.h</label>
        <link refid="kpanic_8h"/>
      </node>
      <node id="56">
        <label>sys/tss.h</label>
        <link refid="tss_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="1">
        <label>C:/Dev/git/UbixOS/sys/init/main.c</label>
        <link refid="main_8c"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="53" relation="include">
        </childnode>
        <childnode refid="75" relation="include">
        </childnode>
        <childnode refid="56" relation="include">
        </childnode>
        <childnode refid="76" relation="include">
        </childnode>
        <childnode refid="77" relation="include">
        </childnode>
        <childnode refid="39" relation="include">
        </childnode>
        <childnode refid="78" relation="include">
        </childnode>
        <childnode refid="26" relation="include">
        </childnode>
        <childnode refid="37" relation="include">
        </childnode>
        <childnode refid="79" relation="include">
        </childnode>
        <childnode refid="80" relation="include">
        </childnode>
      </node>
      <node id="36">
        <label>sys/io.h</label>
        <link refid="io_8h"/>
      </node>
      <node id="60">
        <label>sys/device.old.h</label>
        <link refid="device_8old_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="72">
        <label>ubixos/syscalls.h</label>
        <link refid="syscalls_8h"/>
        <childnode refid="54" relation="include">
        </childnode>
        <childnode refid="18" relation="include">
        </childnode>
        <childnode refid="73" relation="include">
        </childnode>
      </node>
      <node id="53">
        <label>sys/gdt.h</label>
        <link refid="gdt_8h"/>
      </node>
      <node id="45">
        <label>net/pbuf.h</label>
        <link refid="pbuf_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="40" relation="include">
        </childnode>
      </node>
      <node id="55">
        <label>ubixos/tty.h</label>
        <link refid="tty_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="28">
        <label>net/net.h</label>
        <link refid="net_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="29" relation="include">
        </childnode>
      </node>
      <node id="65">
        <label>isa/fdc.h</label>
        <link refid="fdc_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="50">
        <label>net/priv/memp_priv.h</label>
        <link refid="memp__priv_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="47" relation="include">
        </childnode>
      </node>
      <node id="16">
        <label>i386/cpu.h</label>
        <link refid="i386_2cpu_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="81">
        <label>sys/sysproto.h</label>
        <link refid="sysproto_8h"/>
        <childnode refid="14" relation="include">
        </childnode>
      </node>
      <node id="11">
        <label>vmm/paging.h</label>
        <link refid="paging_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="12" relation="include">
        </childnode>
        <childnode refid="14" relation="include">
        </childnode>
      </node>
      <node id="52">
        <label>sys/idt.h</label>
        <link refid="idt_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="53" relation="include">
        </childnode>
      </node>
      <node id="6">
        <label>sys/select.h</label>
        <link refid="select_8h"/>
        <childnode refid="7" relation="include">
        </childnode>
        <childnode refid="5" relation="include">
        </childnode>
        <childnode refid="8" relation="include">
        </childnode>
        <childnode refid="9" relation="include">
        </childnode>
        <childnode refid="10" relation="include">
        </childnode>
      </node>
      <node id="67">
        <label>ubixos/static.h</label>
        <link refid="static_8h"/>
      </node>
      <node id="20">
        <label>vfs/inode.h</label>
        <link refid="inode_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="21" relation="include">
        </childnode>
        <childnode refid="22" relation="include">
        </childnode>
        <childnode refid="23" relation="include">
        </childnode>
        <childnode refid="24" relation="include">
        </childnode>
      </node>
      <node id="78">
        <label>ubixos/systemtask.h</label>
        <link refid="systemtask_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="66">
        <label>fat/fat.h</label>
        <link refid="fat_8h"/>
      </node>
      <node id="76">
        <label>sys/bootinfo.h</label>
        <link refid="bootinfo_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="64">
        <label>mpi/mpi.h</label>
        <link refid="mpi_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="54" relation="include">
        </childnode>
      </node>
      <node id="71">
        <label>ubixos/spinlock.h</label>
        <link refid="spinlock_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="57">
        <label>isa/pit.h</label>
        <link refid="pit_8h"/>
      </node>
      <node id="34">
        <label>net/arch/cc.h</label>
        <link refid="cc_8h"/>
        <childnode refid="35" relation="include">
        </childnode>
      </node>
      <node id="59">
        <label>isa/ne2k.h</label>
        <link refid="ne2k_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="60" relation="include">
        </childnode>
      </node>
      <node id="63">
        <label>ubixfs/ubixfs.h</label>
        <link refid="include_2ubixfs_2ubixfs_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="27" relation="include">
        </childnode>
        <childnode refid="25" relation="include">
        </childnode>
        <childnode refid="64" relation="include">
        </childnode>
        <childnode refid="19" relation="include">
        </childnode>
      </node>
      <node id="10">
        <label>sys/_sigset.h</label>
        <link refid="__sigset_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
      <node id="3">
        <label>vmm/vmm.h</label>
        <link refid="vmm_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="11" relation="include">
        </childnode>
      </node>
      <node id="70">
        <label>ubixos/vitals.h</label>
        <link refid="vitals_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="71" relation="include">
        </childnode>
        <childnode refid="27" relation="include">
        </childnode>
      </node>
      <node id="79">
        <label>lib/kmalloc.h</label>
        <link refid="kmalloc_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="47">
        <label>net/mem.h</label>
        <link refid="mem_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
      </node>
      <node id="46">
        <label>net/stats.h</label>
        <link refid="stats_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="47" relation="include">
        </childnode>
        <childnode refid="48" relation="include">
        </childnode>
      </node>
      <node id="27">
        <label>vfs/vfs.h</label>
        <link refid="include_2vfs_2vfs_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="18" relation="include">
        </childnode>
        <childnode refid="26" relation="include">
        </childnode>
        <childnode refid="12" relation="include">
        </childnode>
        <childnode refid="14" relation="include">
        </childnode>
        <childnode refid="28" relation="include">
        </childnode>
        <childnode refid="21" relation="include">
        </childnode>
      </node>
      <node id="73">
        <label>ubixos/syscall.h</label>
        <link refid="syscall_8h"/>
        <childnode refid="15" relation="include">
        </childnode>
      </node>
      <node id="31">
        <label>net/lwipopts.h</label>
        <link refid="lwipopts_8h"/>
      </node>
      <node id="51">
        <label>isa/8259.h</label>
        <link refid="8259_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="26">
        <label>vfs/mount.h</label>
        <link refid="mount_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="17">
        <label>sys/resource.h</label>
        <link refid="resource_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
      <node id="15">
        <label>sys/trap.h</label>
        <link refid="trap_8h"/>
        <childnode refid="16" relation="include">
        </childnode>
      </node>
      <node id="74">
        <label>pci/lnc.h</label>
        <link refid="lnc_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="69">
        <label>sys/kern_sysctl.h</label>
        <link refid="kern__sysctl_8h"/>
        <childnode refid="12" relation="include">
        </childnode>
        <childnode refid="14" relation="include">
        </childnode>
      </node>
      <node id="4">
        <label>sys/types.h</label>
        <link refid="include_2sys_2types_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
        <childnode refid="6" relation="include">
        </childnode>
      </node>
      <node id="18">
        <label>vfs/file.h</label>
        <link refid="include_2vfs_2file_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="19" relation="include">
        </childnode>
        <childnode refid="14" relation="include">
        </childnode>
        <childnode refid="20" relation="include">
        </childnode>
        <childnode refid="26" relation="include">
        </childnode>
        <childnode refid="24" relation="include">
        </childnode>
      </node>
      <node id="62">
        <label>pci/pci.h</label>
        <link refid="pci_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="77">
        <label>ubixos/exec.h</label>
        <link refid="exec_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="54" relation="include">
        </childnode>
      </node>
      <node id="42">
        <label>net/def.h</label>
        <link refid="def_8h"/>
        <childnode refid="33" relation="include">
        </childnode>
        <childnode refid="30" relation="include">
        </childnode>
      </node>
      <node id="29">
        <label>net/netif.h</label>
        <link refid="netif_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="40" relation="include">
        </childnode>
        <childnode refid="41" relation="include">
        </childnode>
        <childnode refid="42" relation="include">
        </childnode>
        <childnode refid="45" relation="include">
        </childnode>
        <childnode refid="46" relation="include">
        </childnode>
      </node>
      <node id="33">
        <label>net/arch.h</label>
        <link refid="arch_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="34" relation="include">
        </childnode>
        <childnode refid="37" relation="include">
        </childnode>
        <childnode refid="39" relation="include">
        </childnode>
      </node>
      <node id="23">
        <label>fs/msdos_fs.h</label>
        <link refid="msdos__fs_8h"/>
      </node>
      <node id="13">
        <label>sys/signal.h</label>
        <link refid="sys_2signal_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="22">
        <label>fs/pipe_fs.h</label>
        <link refid="pipe__fs_8h"/>
      </node>
      <node id="21">
        <label>ubixos/wait.h</label>
        <link refid="wait_8h"/>
      </node>
      <node id="44">
        <label>net/ip6_addr.h</label>
        <link refid="ip6__addr_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="42" relation="include">
        </childnode>
      </node>
      <node id="30">
        <label>net/opt.h</label>
        <link refid="opt_8h"/>
        <childnode refid="31" relation="include">
        </childnode>
        <childnode refid="32" relation="include">
        </childnode>
      </node>
      <node id="37">
        <label>lib/kprintf.h</label>
        <link refid="kprintf_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="38" relation="include">
        </childnode>
      </node>
      <node id="32">
        <label>net/debug.h</label>
        <link refid="debug_8h"/>
        <childnode refid="33" relation="include">
        </childnode>
        <childnode refid="30" relation="include">
        </childnode>
      </node>
      <node id="43">
        <label>net/ip4_addr.h</label>
        <link refid="ip4__addr_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="42" relation="include">
        </childnode>
      </node>
      <node id="41">
        <label>net/ip_addr.h</label>
        <link refid="ip__addr_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="42" relation="include">
        </childnode>
        <childnode refid="43" relation="include">
        </childnode>
        <childnode refid="44" relation="include">
        </childnode>
      </node>
      <node id="80">
        <label>sde/sde.h</label>
        <link refid="sde_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="81" relation="include">
        </childnode>
      </node>
      <node id="14">
        <label>sys/thread.h</label>
        <link refid="thread_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="15" relation="include">
        </childnode>
        <childnode refid="13" relation="include">
        </childnode>
        <childnode refid="17" relation="include">
        </childnode>
      </node>
      <node id="49">
        <label>net/priv/memp_std.h</label>
        <link refid="memp__std_8h"/>
      </node>
      <node id="7">
        <label>sys/cdefs.h</label>
        <link refid="cdefs_8h"/>
      </node>
      <node id="35">
        <label>ubixos/time.h</label>
        <link refid="time_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="8" relation="include">
        </childnode>
        <childnode refid="36" relation="include">
        </childnode>
      </node>
      <node id="54">
        <label>ubixos/sched.h</label>
        <link refid="sched_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="18" relation="include">
        </childnode>
        <childnode refid="55" relation="include">
        </childnode>
        <childnode refid="56" relation="include">
        </childnode>
        <childnode refid="14" relation="include">
        </childnode>
      </node>
      <node id="5">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="40">
        <label>net/err.h</label>
        <link refid="err_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="33" relation="include">
        </childnode>
      </node>
      <node id="8">
        <label>sys/_timespec.h</label>
        <link refid="__timespec_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
      <node id="25">
        <label>sys/device.h</label>
        <link refid="include_2sys_2device_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="68">
        <label>pci/hd.h</label>
        <link refid="hd_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="63" relation="include">
        </childnode>
      </node>
      <node id="2">
        <label>ubixos/init.h</label>
        <link refid="ubixos_2init_8h"/>
        <childnode refid="3" relation="include">
        </childnode>
        <childnode refid="27" relation="include">
        </childnode>
        <childnode refid="51" relation="include">
        </childnode>
        <childnode refid="52" relation="include">
        </childnode>
        <childnode refid="54" relation="include">
        </childnode>
        <childnode refid="57" relation="include">
        </childnode>
        <childnode refid="58" relation="include">
        </childnode>
        <childnode refid="35" relation="include">
        </childnode>
        <childnode refid="28" relation="include">
        </childnode>
        <childnode refid="59" relation="include">
        </childnode>
        <childnode refid="61" relation="include">
        </childnode>
        <childnode refid="62" relation="include">
        </childnode>
        <childnode refid="63" relation="include">
        </childnode>
        <childnode refid="65" relation="include">
        </childnode>
        <childnode refid="55" relation="include">
        </childnode>
        <childnode refid="24" relation="include">
        </childnode>
        <childnode refid="66" relation="include">
        </childnode>
        <childnode refid="67" relation="include">
        </childnode>
        <childnode refid="68" relation="include">
        </childnode>
        <childnode refid="69" relation="include">
        </childnode>
        <childnode refid="70" relation="include">
        </childnode>
        <childnode refid="72" relation="include">
        </childnode>
        <childnode refid="74" relation="include">
        </childnode>
      </node>
      <node id="58">
        <label>isa/atkbd.h</label>
        <link refid="isa_2atkbd_8h"/>
      </node>
      <node id="12">
        <label>sys/sysproto_posix.h</label>
        <link refid="sysproto__posix_8h"/>
        <childnode refid="13" relation="include">
        </childnode>
        <childnode refid="14" relation="include">
        </childnode>
        <childnode refid="18" relation="include">
        </childnode>
      </node>
      <node id="19">
        <label>ubixfs/dirCache.h</label>
        <link refid="dirCache_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="9">
        <label>sys/_timeval.h</label>
        <link refid="__timeval_8h"/>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
      <node id="61">
        <label>devfs/devfs.h</label>
        <link refid="devfs_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="18" relation="include">
        </childnode>
      </node>
      <node id="48">
        <label>net/memp.h</label>
        <link refid="memp_8h"/>
        <childnode refid="30" relation="include">
        </childnode>
        <childnode refid="49" relation="include">
        </childnode>
        <childnode refid="50" relation="include">
        </childnode>
        <childnode refid="46" relation="include">
        </childnode>
      </node>
    </incdepgraph>
      <sectiondef kind="define">
      <memberdef kind="define" id="main_8c_1ab92c162a9080b9c4112514027886c9aa" prot="public" static="no">
        <name>B_ADAPTOR</name>
        <param><defname>val</defname></param>
        <initializer>(((val) &gt;&gt; <ref refid="main_8c_1a51559a670a393f5106970bd330e35e55" kindref="member">B_ADAPTORSHIFT</ref>) &amp; <ref refid="main_8c_1af921ea6d044d9c201c0e226ea326aad5" kindref="member">B_ADAPTORMASK</ref>)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="44" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="44" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1af921ea6d044d9c201c0e226ea326aad5" prot="public" static="no">
        <name>B_ADAPTORMASK</name>
        <initializer>0x0f</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="43" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="43" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a51559a670a393f5106970bd330e35e55" prot="public" static="no">
        <name>B_ADAPTORSHIFT</name>
        <initializer>24</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="42" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="42" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1aed28ca8a4cbb1afd0efb24acc27c637c" prot="public" static="no">
        <name>B_CONTROLLER</name>
        <param><defname>val</defname></param>
        <initializer>(((val)&gt;&gt;<ref refid="main_8c_1a6eb2af607543a4b165ec24683128ba63" kindref="member">B_CONTROLLERSHIFT</ref>) &amp; <ref refid="main_8c_1a8904a61fb70a4e415a9079e66b2a1c6b" kindref="member">B_CONTROLLERMASK</ref>)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="47" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="47" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a8904a61fb70a4e415a9079e66b2a1c6b" prot="public" static="no">
        <name>B_CONTROLLERMASK</name>
        <initializer>0xf</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="46" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="46" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a6eb2af607543a4b165ec24683128ba63" prot="public" static="no">
        <name>B_CONTROLLERSHIFT</name>
        <initializer>20</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="45" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="45" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a130cc4d8d831b007dff151a64bce5946" prot="public" static="no">
        <name>B_PARTITION</name>
        <param><defname>val</defname></param>
        <initializer>(((val) &gt;&gt; <ref refid="main_8c_1a8b92fffbfc22d7e499986a428fa0ab55" kindref="member">B_PARTITIONSHIFT</ref>) &amp; <ref refid="main_8c_1a4ec3b9af2fec01cc27e811dc8c27c82d" kindref="member">B_PARTITIONMASK</ref>)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="68" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="68" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a4ec3b9af2fec01cc27e811dc8c27c82d" prot="public" static="no">
        <name>B_PARTITIONMASK</name>
        <initializer>0xff</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="67" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="67" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a8b92fffbfc22d7e499986a428fa0ab55" prot="public" static="no">
        <name>B_PARTITIONSHIFT</name>
        <initializer>8</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="66" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="66" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1abb3e38e306d89ebc417f8cede85671ab" prot="public" static="no">
        <name>B_SLICE</name>
        <param><defname>val</defname></param>
        <initializer>(((val)&gt;&gt;<ref refid="main_8c_1a481ca7ef4223d24ad4d9d1a6758b43e8" kindref="member">B_SLICESHIFT</ref>) &amp; <ref refid="main_8c_1a90967877afc3807bbe1b82219b88337d" kindref="member">B_SLICEMASK</ref>)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="62" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="62" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a90967877afc3807bbe1b82219b88337d" prot="public" static="no">
        <name>B_SLICEMASK</name>
        <initializer>0xff</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="61" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="61" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a481ca7ef4223d24ad4d9d1a6758b43e8" prot="public" static="no">
        <name>B_SLICESHIFT</name>
        <initializer>20</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="60" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="60" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a001a03933a758f0930b5c26b0c00e50a" prot="public" static="no">
        <name>B_TYPE</name>
        <param><defname>val</defname></param>
        <initializer>(((val) &gt;&gt; <ref refid="main_8c_1a4bcb437e907c24b07dbc1d94bb0d6954" kindref="member">B_TYPESHIFT</ref>) &amp; <ref refid="main_8c_1a43c1ba15038b0ac4bc7e0d521ffa57f5" kindref="member">B_TYPEMASK</ref>)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="71" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="71" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a43c1ba15038b0ac4bc7e0d521ffa57f5" prot="public" static="no">
        <name>B_TYPEMASK</name>
        <initializer>0xff</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="70" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="70" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a4bcb437e907c24b07dbc1d94bb0d6954" prot="public" static="no">
        <name>B_TYPESHIFT</name>
        <initializer>0</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="69" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="69" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1ae7b63278ee65b6dfd6b5e2bc89d3945e" prot="public" static="no">
        <name>B_UNIT</name>
        <param><defname>val</defname></param>
        <initializer>(((val) &gt;&gt; <ref refid="main_8c_1a6b58a68c1e36e9f1efa48516f618cbf0" kindref="member">B_UNITSHIFT</ref>) &amp; <ref refid="main_8c_1aa62f6a41c4e9aaa8441e129c13e6153b" kindref="member">B_UNITMASK</ref>)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="65" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="65" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1aa62f6a41c4e9aaa8441e129c13e6153b" prot="public" static="no">
        <name>B_UNITMASK</name>
        <initializer>0xf</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="64" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="64" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="main_8c_1a6b58a68c1e36e9f1efa48516f618cbf0" prot="public" static="no">
        <name>B_UNITSHIFT</name>
        <initializer>16</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="63" column="9" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="63" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="var">
      <memberdef kind="variable" id="main_8c_1a029818fb6446c94f7489dbd41311d9c7" prot="public" static="no" mutable="no">
        <type><ref refid="include_2sys_2types_8h_1a8f25a50daf29ce2cee1ec038a4d744ea" kindref="member">u_long</ref></type>
        <definition>u_long _bootdev</definition>
        <argsstring></argsstring>
        <name>_bootdev</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="125" column="8" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="125" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="main_8c_1a56439ea4c54004978999e22fc66d5503" prot="public" static="no" mutable="no">
        <type><ref refid="include_2sys_2types_8h_1a8f25a50daf29ce2cee1ec038a4d744ea" kindref="member">u_long</ref></type>
        <definition>u_long _boothowto</definition>
        <argsstring></argsstring>
        <name>_boothowto</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="126" column="8" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="126" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="main_8c_1a24135c663136e43e47f3495979ac13c0" prot="public" static="no" mutable="no">
        <type>struct <ref refid="structbootinfo" kindref="compound">bootinfo</ref></type>
        <definition>struct bootinfo _bootinfo</definition>
        <argsstring></argsstring>
        <name>_bootinfo</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="115" column="13" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="123" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="main_8c_1a719450a0cda18a8f4de2289fad2874ab" prot="public" static="no" mutable="no">
        <type>char</type>
        <definition>char _kernelname[512]</definition>
        <argsstring>[512]</argsstring>
        <name>_kernelname</name>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="124" column="6" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="124" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="main_8c_1ab410479edee1bed8c978b2e29108995d" prot="public" static="yes" mutable="no">
        <type>char *</type>
        <definition>char* argv_init[2]</definition>
        <argsstring>[2]</argsstring>
        <name>argv_init</name>
        <initializer>= {
    &quot;init&quot;,
    0x0, }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="111" column="13" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="111" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="main_8c_1afedb239ffb392cedae965d628f258dff" prot="public" static="yes" mutable="no">
        <type>char *</type>
        <definition>char* envp_init[6]</definition>
        <argsstring>[6]</argsstring>
        <name>envp_init</name>
        <initializer>= {
    &quot;HOME=/&quot;,
    &quot;PWD=/&quot;,
    &quot;PATH=/bin:/sbin:/usr/bin:/usr/sbin&quot;,
    &quot;USER=root&quot;,
    &quot;GROUP=admin&quot;,
    0x0, }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="115" column="13" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="115" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="main_8c_1ae4f50dfd2c7dbea17907b127370553c8" prot="public" static="no" mutable="no">
        <type>struct @24</type>
        <definition>struct @24  loadGDT</definition>
        <argsstring></argsstring>
        <name>loadGDT</name>
        <initializer>= { (11 * sizeof(union <ref refid="uniondescriptorTableUnion" kindref="compound">descriptorTableUnion</ref>) - 1), <ref refid="gdt_8h_1a7061e97a5e93568027196f9ab7a47b04" kindref="member">ubixGDT</ref> }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="109" column="10"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="main_8c_1a2cc1878e2668c30b456c6d2e8ba5d0fa" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int kmain</definition>
        <argsstring>(uint32_t rootdev)</argsstring>
        <name>kmain</name>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref></type>
          <declname>rootdev</declname>
        </param>
        <briefdescription>
<para>This is the entry point into the os where all of the kernels sub systems are started up. </para>
        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>rootdev</parametername>
</parameternamelist>
<parameterdescription>
<para>address of root device structure </para>
</parameterdescription>
</parameteritem>
</parameterlist>
</para>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="133" column="5" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="133" bodyend="204"/>
      </memberdef>
      <memberdef kind="function" id="main_8c_1a15a066919d0efda40947361e519aa433" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type></type>
        <definition>ubixDescriptorTable</definition>
        <argsstring>(ubixGDT, 11)</argsstring>
        <name>ubixDescriptorTable</name>
        <param>
          <type><ref refid="gdt_8h_1a7061e97a5e93568027196f9ab7a47b04" kindref="member">ubixGDT</ref></type>
        </param>
        <param>
          <type>11</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/init/main.c" line="92" column="1" bodyfile="C:/Dev/git/UbixOS/sys/init/main.c" bodystart="92" bodyend="104"/>
        <references refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" compoundref="gdt_8h" startline="62">dBig</references>
        <references refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" compoundref="gdt_8h" startline="63">dBiglim</references>
        <references refid="gdt_8h_1af37890c8c59b0fd3d83cea8d6034a035" compoundref="gdt_8h" startline="41">dCode</references>
        <references refid="gdt_8h_1afcbb50cc521f6214eda9bca84aaee513" compoundref="gdt_8h" startline="42">dData</references>
        <references refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" compoundref="gdt_8h" startline="53">dDpl0</references>
        <references refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" compoundref="gdt_8h" startline="50">dDpl3</references>
        <references refid="gdt_8h_1a5ebc94affcfbf066336ac0910680345e" compoundref="gdt_8h" startline="44">dLdt</references>
        <references refid="gdt_8h_1a4427d6b09e5682b1c554a5a61e9bee55" compoundref="gdt_8h" startline="58">dRead</references>
        <references refid="gdt_8h_1a4d5c962ea8bc3d8422e6c3b92ce4b74f" compoundref="gdt_8h" startline="47">dTss</references>
        <references refid="gdt_8h_1a9785c919d49cacd1b0fa92590a7562c8" compoundref="gdt_8h" startline="57">dWrite</references>
        <references refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" compoundref="gdt_8h" startline="90">ubixStandardDescriptor</references>
        <references refid="vmm_8h_1ab73be2fd1f1c93794618941747db46c6" compoundref="vmm_8h" startline="56">VMM_USER_LDT</references>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*-</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2002-2018<sp/>The<sp/>UbixOS<sp/>Project.</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>This<sp/>was<sp/>developed<sp/>by<sp/>Christopher<sp/>W.<sp/>Olsen<sp/>for<sp/>the<sp/>UbixOS<sp/>Project.</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,<sp/>are<sp/>permitted</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/>1)<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/>2)<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>3)<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its<sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>permission.</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>AND<sp/>CONTRIBUTORS<sp/>&quot;AS<sp/>IS&quot;<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>*<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline>
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT</highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline>
<codeline lineno="27"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="ubixos_2init_8h" kindref="compound">ubixos/init.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="gdt_8h" kindref="compound">sys/gdt.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="video_8h" kindref="compound">sys/video.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="tss_8h" kindref="compound">sys/tss.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="bootinfo_8h" kindref="compound">sys/bootinfo.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="exec_8h" kindref="compound">ubixos/exec.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="kpanic_8h" kindref="compound">ubixos/kpanic.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="36"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="systemtask_8h" kindref="compound">ubixos/systemtask.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="mount_8h" kindref="compound">vfs/mount.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="kprintf_8h" kindref="compound">lib/kprintf.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="kmalloc_8h" kindref="compound">lib/kmalloc.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="sde_8h" kindref="compound">sde/sde.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
<codeline lineno="42" refid="main_8c_1a51559a670a393f5106970bd330e35e55" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_ADAPTORSHIFT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>24</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="43" refid="main_8c_1af921ea6d044d9c201c0e226ea326aad5" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_ADAPTORMASK<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0x0f</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="44" refid="main_8c_1ab92c162a9080b9c4112514027886c9aa" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_ADAPTOR(val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((val)<sp/>&gt;&gt;<sp/>B_ADAPTORSHIFT)<sp/>&amp;<sp/>B_ADAPTORMASK)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="45" refid="main_8c_1a6eb2af607543a4b165ec24683128ba63" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_CONTROLLERSHIFT<sp/><sp/><sp/><sp/><sp/><sp/><sp/>20</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="46" refid="main_8c_1a8904a61fb70a4e415a9079e66b2a1c6b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_CONTROLLERMASK<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0xf</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="47" refid="main_8c_1aed28ca8a4cbb1afd0efb24acc27c637c" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_CONTROLLER(val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((val)&gt;&gt;B_CONTROLLERSHIFT)<sp/>&amp;<sp/>B_CONTROLLERMASK)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="49"><highlight class="comment"><sp/>*<sp/>Constants<sp/>for<sp/>converting<sp/>boot-style<sp/>device<sp/>number<sp/>to<sp/>type,</highlight></codeline>
<codeline lineno="50"><highlight class="comment"><sp/>*<sp/>adaptor<sp/>(uba,<sp/>mba,<sp/>etc),<sp/>unit<sp/>number<sp/>and<sp/>partition<sp/>number.</highlight></codeline>
<codeline lineno="51"><highlight class="comment"><sp/>*<sp/>Type<sp/>(==<sp/>major<sp/>device<sp/>number)<sp/>is<sp/>in<sp/>the<sp/>low<sp/>byte</highlight></codeline>
<codeline lineno="52"><highlight class="comment"><sp/>*<sp/>for<sp/>backward<sp/>compatibility.<sp/><sp/>Except<sp/>for<sp/>that<sp/>of<sp/>the<sp/>&quot;magic</highlight></codeline>
<codeline lineno="53"><highlight class="comment"><sp/>*<sp/>number&quot;,<sp/>each<sp/>mask<sp/>applies<sp/>to<sp/>the<sp/>shifted<sp/>value.</highlight></codeline>
<codeline lineno="54"><highlight class="comment"><sp/>*<sp/>Format:</highlight></codeline>
<codeline lineno="55"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/><sp/><sp/>(4)<sp/><sp/><sp/>(8)<sp/><sp/><sp/>(4)<sp/><sp/>(8)<sp/><sp/><sp/><sp/><sp/>(8)</highlight></codeline>
<codeline lineno="56"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/><sp/>--------------------------------</highlight></codeline>
<codeline lineno="57"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/><sp/>|MA<sp/>|<sp/>SLICE<sp/>|<sp/>UN|<sp/>PART<sp/><sp/>|<sp/>TYPE<sp/>|</highlight></codeline>
<codeline lineno="58"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/><sp/><sp/>--------------------------------</highlight></codeline>
<codeline lineno="59"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="60" refid="main_8c_1a481ca7ef4223d24ad4d9d1a6758b43e8" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_SLICESHIFT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>20</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="61" refid="main_8c_1a90967877afc3807bbe1b82219b88337d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_SLICEMASK<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0xff</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="62" refid="main_8c_1abb3e38e306d89ebc417f8cede85671ab" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_SLICE(val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((val)&gt;&gt;B_SLICESHIFT)<sp/>&amp;<sp/>B_SLICEMASK)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="63" refid="main_8c_1a6b58a68c1e36e9f1efa48516f618cbf0" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_UNITSHIFT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>16</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="64" refid="main_8c_1aa62f6a41c4e9aaa8441e129c13e6153b" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_UNITMASK<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0xf</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="65" refid="main_8c_1ae7b63278ee65b6dfd6b5e2bc89d3945e" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_UNIT(val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((val)<sp/>&gt;&gt;<sp/>B_UNITSHIFT)<sp/>&amp;<sp/>B_UNITMASK)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="66" refid="main_8c_1a8b92fffbfc22d7e499986a428fa0ab55" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_PARTITIONSHIFT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>8</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="67" refid="main_8c_1a4ec3b9af2fec01cc27e811dc8c27c82d" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_PARTITIONMASK<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0xff</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="68" refid="main_8c_1a130cc4d8d831b007dff151a64bce5946" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_PARTITION(val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((val)<sp/>&gt;&gt;<sp/>B_PARTITIONSHIFT)<sp/>&amp;<sp/>B_PARTITIONMASK)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="69" refid="main_8c_1a4bcb437e907c24b07dbc1d94bb0d6954" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_TYPESHIFT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="70" refid="main_8c_1a43c1ba15038b0ac4bc7e0d521ffa57f5" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_TYPEMASK<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>0xff</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="71" refid="main_8c_1a001a03933a758f0930b5c26b0c00e50a" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>B_TYPE(val)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>(((val)<sp/>&gt;&gt;<sp/>B_TYPESHIFT)<sp/>&amp;<sp/>B_TYPEMASK)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
<codeline lineno="73"><highlight class="normal"></highlight></codeline>
<codeline lineno="74"><highlight class="normal"></highlight><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="75"><highlight class="comment"><sp/>Desc:<sp/>The<sp/>Kernels<sp/>Descriptor<sp/>table:</highlight></codeline>
<codeline lineno="76"><highlight class="comment"><sp/>0<sp/>-<sp/>0x00<sp/>-<sp/>Dummy<sp/>Entry</highlight></codeline>
<codeline lineno="77"><highlight class="comment"><sp/>1<sp/>-<sp/>0x08<sp/>-<sp/>Ring<sp/>0<sp/>CS</highlight></codeline>
<codeline lineno="78"><highlight class="comment"><sp/>2<sp/>-<sp/>0x10<sp/>-<sp/>Ring<sp/>0<sp/>DS</highlight></codeline>
<codeline lineno="79"><highlight class="comment"><sp/>3<sp/>-<sp/>0x18<sp/>-<sp/>LDT</highlight></codeline>
<codeline lineno="80"><highlight class="comment"><sp/>4<sp/>-<sp/>0x20<sp/>-<sp/>Scheduler<sp/>TSS</highlight></codeline>
<codeline lineno="81"><highlight class="comment"><sp/>5<sp/>-<sp/>0x28<sp/>-<sp/>Ring<sp/>3<sp/>CS</highlight></codeline>
<codeline lineno="82"><highlight class="comment"><sp/>6<sp/>-<sp/>0x30<sp/>-<sp/>Ring<sp/>3<sp/>DS</highlight></codeline>
<codeline lineno="83"><highlight class="comment"><sp/>7<sp/>-<sp/>0x38<sp/>-<sp/>GPF<sp/>TSS</highlight></codeline>
<codeline lineno="84"><highlight class="comment"><sp/>8<sp/>-<sp/>0x40<sp/>-<sp/>Stack<sp/>Fault<sp/>TSS</highlight></codeline>
<codeline lineno="85"><highlight class="comment"><sp/>9<sp/>-<sp/>0x48<sp/>-<sp/>SMP<sp/>Private<sp/>Data</highlight></codeline>
<codeline lineno="86"><highlight class="comment"><sp/>10<sp/>-<sp/>0x50<sp/>-<sp/>USER<sp/>%GS<sp/>(Stack!)</highlight></codeline>
<codeline lineno="87"><highlight class="comment"></highlight></codeline>
<codeline lineno="88"><highlight class="comment"><sp/>Notes:</highlight></codeline>
<codeline lineno="89"><highlight class="comment"></highlight></codeline>
<codeline lineno="90"><highlight class="comment"><sp/>MrOlsen:<sp/>test</highlight></codeline>
<codeline lineno="91"><highlight class="comment"></highlight></codeline>
<codeline lineno="92" refid="main_8c_1a15a066919d0efda40947361e519aa433" refkind="member"><highlight class="comment"><sp/>*****************************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal"><ref refid="main_8c_1a15a066919d0efda40947361e519aa433" kindref="member">ubixDescriptorTable</ref>(<ref refid="gdt_8h_1a7061e97a5e93568027196f9ab7a47b04" kindref="member">ubixGDT</ref>,<sp/>11)<sp/>{</highlight></codeline>
<codeline lineno="94"><highlight class="normal">{<sp/>.dummy<sp/>=<sp/>0},</highlight></codeline>
<codeline lineno="95"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x0000,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1af37890c8c59b0fd3d83cea8d6034a035" kindref="member">dCode</ref><sp/>+<sp/><ref refid="gdt_8h_1a4427d6b09e5682b1c554a5a61e9bee55" kindref="member">dRead</ref><sp/>+<sp/><ref refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" kindref="member">dBig</ref><sp/>+<sp/><ref refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" kindref="member">dBiglim</ref>)),</highlight></codeline>
<codeline lineno="96"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x0000,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1afcbb50cc521f6214eda9bca84aaee513" kindref="member">dData</ref><sp/>+<sp/><ref refid="gdt_8h_1a9785c919d49cacd1b0fa92590a7562c8" kindref="member">dWrite</ref><sp/>+<sp/><ref refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" kindref="member">dBig</ref><sp/>+<sp/><ref refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" kindref="member">dBiglim</ref>)),</highlight></codeline>
<codeline lineno="97"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(<ref refid="vmm_8h_1ab73be2fd1f1c93794618941747db46c6" kindref="member">VMM_USER_LDT</ref>,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1a5ebc94affcfbf066336ac0910680345e" kindref="member">dLdt</ref>)),</highlight></codeline>
<codeline lineno="98"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x4200,<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtssStruct" kindref="compound">tssStruct</ref>)),<sp/>(<ref refid="gdt_8h_1a4d5c962ea8bc3d8422e6c3b92ce4b74f" kindref="member">dTss</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>)),</highlight></codeline>
<codeline lineno="99"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x0000,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1af37890c8c59b0fd3d83cea8d6034a035" kindref="member">dCode</ref><sp/>+<sp/><ref refid="gdt_8h_1a4427d6b09e5682b1c554a5a61e9bee55" kindref="member">dRead</ref><sp/>+<sp/><ref refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" kindref="member">dBig</ref><sp/>+<sp/><ref refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" kindref="member">dBiglim</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>)),</highlight></codeline>
<codeline lineno="100"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x0000,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1afcbb50cc521f6214eda9bca84aaee513" kindref="member">dData</ref><sp/>+<sp/><ref refid="gdt_8h_1a9785c919d49cacd1b0fa92590a7562c8" kindref="member">dWrite</ref><sp/>+<sp/><ref refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" kindref="member">dBig</ref><sp/>+<sp/><ref refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" kindref="member">dBiglim</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>)),</highlight></codeline>
<codeline lineno="101"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x5200,<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtssStruct" kindref="compound">tssStruct</ref>)),<sp/>(<ref refid="gdt_8h_1a4d5c962ea8bc3d8422e6c3b92ce4b74f" kindref="member">dTss</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>)),</highlight></codeline>
<codeline lineno="102"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x6200,<sp/>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtssStruct" kindref="compound">tssStruct</ref>)),<sp/>(<ref refid="gdt_8h_1a4d5c962ea8bc3d8422e6c3b92ce4b74f" kindref="member">dTss</ref>)),</highlight></codeline>
<codeline lineno="103"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0x0000,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1afcbb50cc521f6214eda9bca84aaee513" kindref="member">dData</ref><sp/>+<sp/><ref refid="gdt_8h_1a9785c919d49cacd1b0fa92590a7562c8" kindref="member">dWrite</ref><sp/>+<sp/><ref refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" kindref="member">dBig</ref><sp/>+<sp/><ref refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" kindref="member">dBiglim</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>)),</highlight></codeline>
<codeline lineno="104"><highlight class="normal"><ref refid="gdt_8h_1ac84a835fad3118c457254bf67013ad5b" kindref="member">ubixStandardDescriptor</ref>(0xBFC00000,<sp/>0xFFFFF,<sp/>(<ref refid="gdt_8h_1afcbb50cc521f6214eda9bca84aaee513" kindref="member">dData</ref><sp/>+<sp/><ref refid="gdt_8h_1a9785c919d49cacd1b0fa92590a7562c8" kindref="member">dWrite</ref><sp/>+<sp/><ref refid="gdt_8h_1a6b595357c10a17c620edcbeeb1c7f6a1" kindref="member">dBig</ref><sp/>+<sp/><ref refid="gdt_8h_1abc269d96e027bb39b828cadb2fc8660f" kindref="member">dBiglim</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>)),</highlight></codeline>
<codeline lineno="105"><highlight class="normal">};</highlight></codeline>
<codeline lineno="106"><highlight class="normal"></highlight></codeline>
<codeline lineno="107"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">{</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>limit<sp/><ref refid="gdt_8h_1ae2d16a801307e5bad8d30e90601a107b" kindref="member">__attribute__</ref><sp/>((packed));</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">union<sp/></highlight><highlight class="normal"><ref refid="uniondescriptorTableUnion" kindref="compound">descriptorTableUnion</ref><sp/>*gdt<sp/><ref refid="gdt_8h_1ae2d16a801307e5bad8d30e90601a107b" kindref="member">__attribute__</ref><sp/>((packed));</highlight></codeline>
<codeline lineno="110"><highlight class="normal">}<sp/><ref refid="main_8c_1ae4f50dfd2c7dbea17907b127370553c8" kindref="member">loadGDT</ref><sp/>=<sp/>{<sp/>(11<sp/>*<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">union<sp/></highlight><highlight class="normal"><ref refid="uniondescriptorTableUnion" kindref="compound">descriptorTableUnion</ref>)<sp/>-<sp/>1),<sp/><ref refid="gdt_8h_1a7061e97a5e93568027196f9ab7a47b04" kindref="member">ubixGDT</ref><sp/>};</highlight></codeline>
<codeline lineno="111"><highlight class="normal"></highlight></codeline>
<codeline lineno="112"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*argv_init[2]<sp/>=<sp/>{</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;init&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/>0x0,<sp/>};<sp/></highlight><highlight class="comment">/*<sp/>ARGV<sp/>For<sp/>Initial<sp/>Process<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="115"><highlight class="normal"></highlight></codeline>
<codeline lineno="116"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*envp_init[6]<sp/>=<sp/>{</highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;HOME=/&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;PWD=/&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;PATH=/bin:/sbin:/usr/bin:/usr/sbin&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;USER=root&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;GROUP=admin&quot;</highlight><highlight class="normal">,</highlight></codeline>
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/>0x0,<sp/>};<sp/></highlight><highlight class="comment">/*<sp/>ENVP<sp/>For<sp/>Initial<sp/>Process<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="123" refid="main_8c_1a24135c663136e43e47f3495979ac13c0" refkind="member"><highlight class="normal"></highlight></codeline>
<codeline lineno="124" refid="main_8c_1a719450a0cda18a8f4de2289fad2874ab" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structbootinfo" kindref="compound">bootinfo</ref><sp/><ref refid="main_8c_1a24135c663136e43e47f3495979ac13c0" kindref="member">_bootinfo</ref>;</highlight></codeline>
<codeline lineno="125" refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/><ref refid="main_8c_1a719450a0cda18a8f4de2289fad2874ab" kindref="member">_kernelname</ref>[512];</highlight></codeline>
<codeline lineno="126" refid="main_8c_1a56439ea4c54004978999e22fc66d5503" refkind="member"><highlight class="normal"><ref refid="include_2sys_2types_8h_1a8f25a50daf29ce2cee1ec038a4d744ea" kindref="member">u_long</ref><sp/><ref refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" kindref="member">_bootdev</ref>;</highlight></codeline>
<codeline lineno="127"><highlight class="normal"><ref refid="include_2sys_2types_8h_1a8f25a50daf29ce2cee1ec038a4d744ea" kindref="member">u_long</ref><sp/><ref refid="main_8c_1a56439ea4c54004978999e22fc66d5503" kindref="member">_boothowto</ref>;</highlight></codeline>
<codeline lineno="128"><highlight class="normal"></highlight></codeline>
<codeline lineno="134"><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="main_8c_1a2cc1878e2668c30b456c6d2e8ba5d0fa" kindref="member">kmain</ref>(<ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref><sp/>rootdev)<sp/>{</highlight></codeline>
<codeline lineno="135"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Set<sp/>up<sp/>counter<sp/>for<sp/>startup<sp/>routine<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="136"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0x0;</highlight></codeline>
<codeline lineno="137"><highlight class="normal"></highlight></codeline>
<codeline lineno="138"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Do<sp/>A<sp/>Clear<sp/>Screen<sp/>Just<sp/>To<sp/>Make<sp/>The<sp/>TEXT<sp/>Buffer<sp/>Nice<sp/>And<sp/>Empty<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/><ref refid="video_8h_1a9d7e8af417b6d543da691e9c0e2f6f9f" kindref="member">clearScreen</ref>();</highlight></codeline>
<codeline lineno="140"><highlight class="normal"></highlight></codeline>
<codeline lineno="141"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Modify<sp/>src/sys/include/ubixos/init.h<sp/>to<sp/>add<sp/>a<sp/>startup<sp/>routine<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="142"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0x0;<sp/>i<sp/>&lt;<sp/><ref refid="ubixos_2init_8h_1a21f47c950626424757538f3419d77fa9" kindref="member">init_tasksTotal</ref>;<sp/>i++)<sp/>{</highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="ubixos_2init_8h_1ac2942ccd2cc88a56391dd2b836b38150" kindref="member">init_tasks</ref>[i]()<sp/>!=<sp/>0x0)</highlight></codeline>
<codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">&quot;Error:<sp/>Initializing<sp/>System<sp/>Task[%i].\n&quot;</highlight><highlight class="normal">,<sp/>i);</highlight></codeline>
<codeline lineno="145"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="146"><highlight class="normal"></highlight></codeline>
<codeline lineno="147"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>New<sp/>Root<sp/>Mount<sp/>Point<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="148"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Old<sp/>2<sp/>new<sp/>10<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="149"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;[0x%X][0x%X:0x%X:0x%X:0x%X:0x%X:0x%X]\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="main_8c_1ab92c162a9080b9c4112514027886c9aa" kindref="member">B_ADAPTOR</ref>(rootdev),<sp/><ref refid="main_8c_1aed28ca8a4cbb1afd0efb24acc27c637c" kindref="member">B_CONTROLLER</ref>(rootdev),<sp/><ref refid="main_8c_1abb3e38e306d89ebc417f8cede85671ab" kindref="member">B_SLICE</ref>(rootdev),<sp/><ref refid="main_8c_1ae7b63278ee65b6dfd6b5e2bc89d3945e" kindref="member">B_UNIT</ref>(rootdev),<sp/><ref refid="main_8c_1a130cc4d8d831b007dff151a64bce5946" kindref="member">B_PARTITION</ref>(rootdev),<sp/><ref refid="main_8c_1a001a03933a758f0930b5c26b0c00e50a" kindref="member">B_TYPE</ref>(rootdev));</highlight></codeline>
<codeline lineno="150"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>if<sp/>(<sp/>vfs_mount(<sp/>B_UNIT(_bootdev),<sp/>B_PARTITION(_bootdev),<sp/>0x0,<sp/>0xAA,<sp/>&quot;sys&quot;,<sp/>&quot;rw&quot;<sp/>)<sp/>!=<sp/>0x0<sp/>)<sp/>{<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="151"><highlight class="normal"></highlight></codeline>
<codeline lineno="152"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="mount_8c_1a8379310fce9e1a500f602059516e25f0" kindref="member">vfs_mount</ref>(0x1,<sp/>0x2,<sp/>0x0,<sp/>0xAA,<sp/></highlight><highlight class="stringliteral">&quot;sys2&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;rw&quot;</highlight><highlight class="normal">)<sp/>!=<sp/>0x0)<sp/>{<sp/></highlight><highlight class="comment">//UFS<sp/>FS</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Problem<sp/>Mounting<sp/>sys2<sp/>Mount<sp/>Point\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="154"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="155"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Mounted<sp/>sys2\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="157"><highlight class="normal"></highlight></codeline>
<codeline lineno="158"><highlight class="normal"></highlight></codeline>
<codeline lineno="159"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="mount_8c_1a8379310fce9e1a500f602059516e25f0" kindref="member">vfs_mount</ref>(0x2,<sp/>0x1,<sp/>0x1,<sp/>0xFA,<sp/></highlight><highlight class="stringliteral">&quot;sys&quot;</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">&quot;rw&quot;</highlight><highlight class="normal">)<sp/>!=<sp/>0x0)<sp/>{<sp/></highlight><highlight class="comment">//FAT<sp/>FS</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Problem<sp/>Mounting<sp/>sys<sp/>Mount<sp/>Point\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="161"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="162"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Mounted<sp/>sys\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="164"><highlight class="normal"></highlight></codeline>
<codeline lineno="165"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Do<sp/>our<sp/>mounting<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="166"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline>
<codeline lineno="167"><highlight class="comment"><sp/><sp/><sp/>if<sp/>(vfs_mount(0x0,0x0,0x0,0x0,&quot;sys&quot;,&quot;rw&quot;)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="168"><highlight class="comment"><sp/><sp/><sp/>kprintf(&quot;Problem<sp/>Mounting<sp/>sys<sp/>Mount<sp/>Point\n&quot;);</highlight></codeline>
<codeline lineno="169"><highlight class="comment"><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="170"><highlight class="comment"><sp/><sp/><sp/>if<sp/>(vfs_mount(0x0,0x0,0x1,0x0,&quot;tmp&quot;,&quot;rw&quot;)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline>
<codeline lineno="171"><highlight class="comment"><sp/><sp/><sp/>kprintf(&quot;Problem<sp/>Mounting<sp/>tmp<sp/>Mount<sp/>Point\n&quot;);</highlight></codeline>
<codeline lineno="172"><highlight class="comment"><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="173"><highlight class="comment"><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="174"><highlight class="normal"></highlight></codeline>
<codeline lineno="175"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Initialize<sp/>the<sp/>system<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Free<sp/>Pages:<sp/>[%i]\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="vitals_8h_1a67aae71be472453526fc1a0bfbf80280" kindref="member">systemVitals</ref>-&gt;<ref refid="structvitalsStruct_1a53cac06836c76cd2aa0724d90b3672da" kindref="member">freePages</ref>);</highlight></codeline>
<codeline lineno="177"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;MemoryMap:<sp/><sp/>[0x%X]\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="vmm_8h_1a89e87741958ee81f1811075b25af058a" kindref="member">vmmMemoryMap</ref>);</highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Starting<sp/>OS\n&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="179"><highlight class="normal"></highlight></codeline>
<codeline lineno="180"><highlight class="normal"></highlight></codeline>
<codeline lineno="181"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>kprintf(&quot;SDE<sp/>Thread<sp/>Start!<sp/>[0x%X]\n&quot;,<sp/>&amp;sdeThread);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="182"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>execThread(&amp;sdeThread,<sp/>0x2000,0x0);<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="183"><highlight class="normal"></highlight></codeline>
<codeline lineno="184"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;Kernel<sp/>Name:<sp/>[%s],<sp/>Boot<sp/>How<sp/>To<sp/>[0x%X],<sp/>Boot<sp/>Dev:<sp/>[0x%X]\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="main_8c_1a719450a0cda18a8f4de2289fad2874ab" kindref="member">_kernelname</ref>,<sp/><ref refid="main_8c_1a56439ea4c54004978999e22fc66d5503" kindref="member">_boothowto</ref>,<sp/><ref refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" kindref="member">_bootdev</ref>);</highlight></codeline>
<codeline lineno="185"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;B_TYPE(0x%X),<sp/>B_SLICE(0x%X),<sp/>B_UNIT(0x%X),<sp/>B_PARTITION(0x%X)\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="main_8c_1a001a03933a758f0930b5c26b0c00e50a" kindref="member">B_TYPE</ref>(<ref refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" kindref="member">_bootdev</ref>),<sp/><ref refid="main_8c_1abb3e38e306d89ebc417f8cede85671ab" kindref="member">B_SLICE</ref>(<ref refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" kindref="member">_bootdev</ref>),<sp/><ref refid="main_8c_1ae7b63278ee65b6dfd6b5e2bc89d3945e" kindref="member">B_UNIT</ref>(<ref refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" kindref="member">_bootdev</ref>),<sp/><ref refid="main_8c_1a130cc4d8d831b007dff151a64bce5946" kindref="member">B_PARTITION</ref>(<ref refid="main_8c_1a029818fb6446c94f7489dbd41311d9c7" kindref="member">_bootdev</ref>));</highlight></codeline>
<codeline lineno="186"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;_bootinfo.bi_version:<sp/>0x%X\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="main_8c_1a24135c663136e43e47f3495979ac13c0" kindref="member">_bootinfo</ref>.<ref refid="structbootinfo_1a53bf5cac412e5d0a2837e391cc0419a9" kindref="member">bi_version</ref>);</highlight></codeline>
<codeline lineno="187"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;_bootinfo.bi_size:<sp/>0x%X\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="main_8c_1a24135c663136e43e47f3495979ac13c0" kindref="member">_bootinfo</ref>.<ref refid="structbootinfo_1a07551b66b66d8f45bc40f1a70098d2e5" kindref="member">bi_size</ref>);</highlight></codeline>
<codeline lineno="188"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">&quot;_bootinfo.bi_bios_dev:<sp/>0x%X\n&quot;</highlight><highlight class="normal">,<sp/><ref refid="main_8c_1a24135c663136e43e47f3495979ac13c0" kindref="member">_bootinfo</ref>.<ref refid="structbootinfo_1a4570abd481d8371076fbb6609754786c" kindref="member">bi_bios_dev</ref>);</highlight></codeline>
<codeline lineno="189"><highlight class="normal"></highlight></codeline>
<codeline lineno="190"><highlight class="normal"><sp/><sp/><ref refid="exec_8c_1a4b86d28d8fd56197042aef174de2fd58" kindref="member">execThread</ref>(<ref refid="armv6_2systemtask_8c_1ac7cc6a806237f8657fcdce169319fd7f" kindref="member">systemTask</ref>,<sp/>0x2000,<sp/>0x0);</highlight></codeline>
<codeline lineno="191"><highlight class="normal"></highlight></codeline>
<codeline lineno="192"><highlight class="normal"><sp/><sp/><ref refid="exec_8c_1af80d4412d42ed1b5bf9a1b9774230f33" kindref="member">execFile</ref>(</highlight><highlight class="stringliteral">&quot;sys:/bin/init&quot;</highlight><highlight class="normal">,<sp/>argv_init,<sp/>envp_init,<sp/>0x0);<sp/></highlight><highlight class="comment">/*<sp/>OS<sp/>Initializer<sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="193"><highlight class="normal"></highlight></codeline>
<codeline lineno="194"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//execFile(&quot;fat:/bin/init&quot;,<sp/>argv_init,<sp/>envp_init,<sp/>0x0);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="195"><highlight class="normal"></highlight></codeline>
<codeline lineno="196"><highlight class="normal"><sp/><sp/><ref refid="8259_8h_1a0ac079c4d770f02e505f4d8569a6960a" kindref="member">irqEnable</ref>(0x0);</highlight></codeline>
<codeline lineno="197"><highlight class="normal"></highlight></codeline>
<codeline lineno="198"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(0x1)</highlight></codeline>
<codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight><highlight class="stringliteral">&quot;hlt&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="200"><highlight class="normal"></highlight></codeline>
<codeline lineno="201"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Keep<sp/>haulting<sp/>until<sp/>the<sp/>scheduler<sp/>reacts<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="202"><highlight class="normal"></highlight></codeline>
<codeline lineno="203"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>to<sp/>start<sp/>however<sp/>we<sp/>should<sp/>never<sp/>get<sp/>this<sp/>far<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="204"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline>
<codeline lineno="205"><highlight class="normal">}</highlight></codeline>
    </programlisting>
    <location file="C:/Dev/git/UbixOS/sys/init/main.c"/>
  </compounddef>
</doxygen>
