<?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="idt_8c" kind="file" language="C++"> <compoundname>idt.c</compoundname> <includes refid="syscall_8h" local="no">ubixos/syscall.h</includes> <includes refid="syscall__posix_8h" local="no">ubixos/syscall_posix.h</includes> <includes refid="idt_8h" local="no">sys/idt.h</includes> <includes refid="gdt_8h" local="no">sys/gdt.h</includes> <includes refid="io_8h" local="no">sys/io.h</includes> <includes refid="sched_8h" local="no">ubixos/sched.h</includes> <includes refid="8259_8h" local="no">isa/8259.h</includes> <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes> <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes> <includes refid="vmm_8h" local="no">vmm/vmm.h</includes> <includes refid="kpanic_8h" local="no">ubixos/kpanic.h</includes> <includes refid="endtask_8h" local="no">ubixos/endtask.h</includes> <includes refid="string_8h" local="no">string.h</includes> <includes refid="trap_8h" local="no">sys/trap.h</includes> <incdepgraph> <node id="26"> <label>ufs/ufs.h</label> <link refid="ufs_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> </node> <node id="33"> <label>stdarg.h</label> <link refid="stdarg_8h"/> </node> <node id="38"> <label>ubixos/kpanic.h</label> <link refid="kpanic_8h"/> </node> <node id="30"> <label>sys/tss.h</label> <link refid="tss_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="15"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="39"> <label>ubixos/endtask.h</label> <link refid="endtask_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> </node> <node id="14"> <label>sys/gdt.h</label> <link refid="gdt_8h"/> </node> <node id="29"> <label>ubixos/tty.h</label> <link refid="tty_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/sys/idt.c</label> <link refid="idt_8c"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> <childnode refid="13" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="31" relation="include"> </childnode> <childnode refid="32" relation="include"> </childnode> <childnode refid="34" relation="include"> </childnode> <childnode refid="35" relation="include"> </childnode> <childnode refid="38" relation="include"> </childnode> <childnode refid="39" relation="include"> </childnode> <childnode refid="40" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> </node> <node id="41"> <label>strings.h</label> <link refid="strings_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="4"> <label>i386/cpu.h</label> <link refid="i386_2cpu_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="36"> <label>vmm/paging.h</label> <link refid="paging_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="37" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> </node> <node id="13"> <label>sys/idt.h</label> <link refid="idt_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> </node> <node id="7"> <label>sys/select.h</label> <link refid="select_8h"/> <childnode refid="8" relation="include"> </childnode> <childnode refid="6" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> </node> <node id="22"> <label>vfs/inode.h</label> <link refid="inode_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="23" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> </node> <node id="11"> <label>sys/_sigset.h</label> <link refid="__sigset_8h"/> <childnode refid="6" relation="include"> </childnode> </node> <node id="35"> <label>vmm/vmm.h</label> <link refid="vmm_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="36" relation="include"> </childnode> </node> <node id="34"> <label>lib/kmalloc.h</label> <link refid="kmalloc_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="2"> <label>ubixos/syscall.h</label> <link refid="syscall_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="31"> <label>isa/8259.h</label> <link refid="8259_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="28"> <label>vfs/mount.h</label> <link refid="mount_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="21"> <label>sys/resource.h</label> <link refid="resource_8h"/> <childnode refid="6" relation="include"> </childnode> </node> <node id="3"> <label>sys/trap.h</label> <link refid="trap_8h"/> <childnode refid="4" relation="include"> </childnode> </node> <node id="40"> <label>string.h</label> <link refid="string_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="41" relation="include"> </childnode> </node> <node id="12"> <label>ubixos/syscall_posix.h</label> <link refid="syscall__posix_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="5"> <label>sys/types.h</label> <link refid="include_2sys_2types_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> </node> <node id="17"> <label>vfs/file.h</label> <link refid="include_2vfs_2file_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> </node> <node id="25"> <label>fs/msdos_fs.h</label> <link refid="msdos__fs_8h"/> </node> <node id="20"> <label>sys/signal.h</label> <link refid="sys_2signal_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="24"> <label>fs/pipe_fs.h</label> <link refid="pipe__fs_8h"/> </node> <node id="23"> <label>ubixos/wait.h</label> <link refid="wait_8h"/> </node> <node id="32"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="33" relation="include"> </childnode> </node> <node id="19"> <label>sys/thread.h</label> <link refid="thread_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="3" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> <childnode refid="21" relation="include"> </childnode> </node> <node id="8"> <label>sys/cdefs.h</label> <link refid="cdefs_8h"/> </node> <node id="16"> <label>ubixos/sched.h</label> <link refid="sched_8h"/> <childnode refid="5" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> <childnode refid="30" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> </node> <node id="6"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="9"> <label>sys/_timespec.h</label> <link refid="__timespec_8h"/> <childnode refid="6" relation="include"> </childnode> </node> <node id="27"> <label>sys/device.h</label> <link refid="include_2sys_2device_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="37"> <label>sys/sysproto_posix.h</label> <link refid="sysproto__posix_8h"/> <childnode refid="20" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="17" relation="include"> </childnode> </node> <node id="18"> <label>ubixfs/dirCache.h</label> <link refid="dirCache_8h"/> <childnode refid="5" relation="include"> </childnode> </node> <node id="10"> <label>sys/_timeval.h</label> <link refid="__timeval_8h"/> <childnode refid="6" relation="include"> </childnode> </node> </incdepgraph> <sectiondef kind="define"> <memberdef kind="define" id="idt_8c_1a814ba9bc4c42bb79af5cde78c8bbfaa3" prot="public" static="no"> <name>FP_TO_LINEAR</name> <param><defname>seg</defname></param> <param><defname>off</defname></param> <initializer>((void*) ((((<ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref>) (seg)) << 4) + ((<ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref>) (off))))</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="44" column="9" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="44" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="var"> <memberdef kind="variable" id="idt_8c_1ada2209088ea4230afb97c00a1f18a899" prot="public" static="yes" mutable="no"> <type><ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref></type> <definition>uint32_t gpfStack</definition> <argsstring></argsstring> <name>gpfStack</name> <initializer>= 0x0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="46" column="17" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="46" bodyend="-1"/> </memberdef> <memberdef kind="variable" id="idt_8c_1aceb98ee341a6dca0fd4fc8456376ab4c" prot="public" static="yes" mutable="no"> <type>struct @30</type> <definition>struct @30 loadidt</definition> <argsstring></argsstring> <name>loadidt</name> <initializer>= { (256 * sizeof(union <ref refid="uniondescriptorTableUnion" kindref="compound">descriptorTableUnion</ref>) - 1), ubixIDT }</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="99" column="10"/> </memberdef> </sectiondef> <sectiondef kind="func"> <memberdef kind="function" id="idt_8c_1a8a3ea6df190181b987577b14c99c6f9b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __alignmentCheck</definition> <argsstring>(struct trapframe *)</argsstring> <name>__alignmentCheck</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="633" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="633" bodyend="637" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="80" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1a93a791c71216d3dd3550e193c805102f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __debug</definition> <argsstring>(struct trapframe *)</argsstring> <name>__debug</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="285" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="285" bodyend="289" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="54" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1adccd9730ac2b0fa6ef3b41cec9af2162" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __divideError</definition> <argsstring>(struct trapframe *)</argsstring> <name>__divideError</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="259" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="259" bodyend="263" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="51" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1a0f0ee5dbd5337bac161bd2490ad21397" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __doubleFault</definition> <argsstring>(struct trapframe *)</argsstring> <name>__doubleFault</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="382" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="382" bodyend="386" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="66" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1a867bddfec4bbeb769465d958bcbda312" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __floatingPoint</definition> <argsstring>(struct trapframe *)</argsstring> <name>__floatingPoint</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="607" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="607" bodyend="611" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="77" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1a2f2b32cc2c49cc727df979c1ecea8f8b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __gpf</definition> <argsstring>(struct trapframe *)</argsstring> <name>__gpf</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="431" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="431" bodyend="581" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="74" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1ae60120c5abe4b631e5c4c760e6ea892e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __int6</definition> <argsstring>(struct trapframe *frame)</argsstring> <name>__int6</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <declname>frame</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="356" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="356" bodyend="360"/> </memberdef> <memberdef kind="function" id="idt_8c_1ac51d829134fa5beed7f8fb62e8c297b3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __machineCheck</definition> <argsstring>(struct trapframe *)</argsstring> <name>__machineCheck</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="658" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="658" bodyend="662" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="83" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1ae45963ae287b44ec905a7924207657e4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __nmi</definition> <argsstring>(struct trapframe *)</argsstring> <name>__nmi</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="311" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="311" bodyend="315" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="57" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1ad3beb87208d6cbc992574f9e04f6f2be" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __security</definition> <argsstring>(struct trapframe *)</argsstring> <name>__security</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="737" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="737" bodyend="741" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="92" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1a8ec618b934fbea05a071a13c8f338d7e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __simd</definition> <argsstring>(struct trapframe *)</argsstring> <name>__simd</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="684" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="684" bodyend="688" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="86" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1a848a9f54eb3ac3c0046824e1a0b97eb2" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void __virtualization</definition> <argsstring>(struct trapframe *)</argsstring> <name>__virtualization</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <defname>frame</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="711" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="711" bodyend="715" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="89" declcolumn="6"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> <references refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" compoundref="endtask_8c" startline="44" endline="50">endTask</references> <references refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" compoundref="sched_8h" startline="63">taskStruct::id</references> <references refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" compoundref="armv6_2sched_8c" startline="244" endline="246">sched_yield</references> </memberdef> <memberdef kind="function" id="idt_8c_1ab8e76e5a902f5918ea476f3193766d0e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _alignmentCheck</definition> <argsstring>()</argsstring> <name>_alignmentCheck</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="79" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="79" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a12b0010d0a585c8b009686d9a8a314d9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _debug</definition> <argsstring>()</argsstring> <name>_debug</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="53" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="53" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a9b2745cbfe99db27482bad8ebb34fba9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _divideError</definition> <argsstring>()</argsstring> <name>_divideError</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="50" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="50" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a806abfd1db0469173ad7861838b645dc" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _doubleFault</definition> <argsstring>()</argsstring> <name>_doubleFault</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="65" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="65" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a59372dcde625a8918ab65197ecc7eed7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _floatingPoint</definition> <argsstring>()</argsstring> <name>_floatingPoint</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="76" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="76" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1af40f8b0e793378c4c5eb4d18246043b4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _gpf</definition> <argsstring>()</argsstring> <name>_gpf</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="73" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="73" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a19bc3a247ce11ea49202bbd89b62cd7a" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int10</definition> <argsstring>()</argsstring> <name>_int10</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="413" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="413" bodyend="417" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="69" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1a53d32771ba29a475a7dbee98612e5020" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int11</definition> <argsstring>()</argsstring> <name>_int11</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="419" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="419" bodyend="423" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="70" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1aca78ebe67e405a82879ca2f4229ccf2b" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int12</definition> <argsstring>()</argsstring> <name>_int12</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="425" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="425" bodyend="429" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="71" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1af4eee85f5bc7922445a8ec7eb74cf8aa" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int3</definition> <argsstring>()</argsstring> <name>_int3</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="338" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="338" bodyend="342" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="59" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1ac4073042907da954fe2d4f1d4794ba9f" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int4</definition> <argsstring>()</argsstring> <name>_int4</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="344" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="344" bodyend="348" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="60" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1a687627e6c19a951d5f09b2b794f633b1" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int5</definition> <argsstring>()</argsstring> <name>_int5</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="350" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="350" bodyend="354" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="61" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1acd4f96910ec544033294dec42525e682" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int6</definition> <argsstring>()</argsstring> <name>_int6</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="62" column="13" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="62" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1aa84fc490e78d439cfca95612ea1d4ceb" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int7</definition> <argsstring>()</argsstring> <name>_int7</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="63" column="13" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="63" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1a873921d8a011fab2f4cc81752b49039f" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void _int9</definition> <argsstring>()</argsstring> <name>_int9</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="407" column="13" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="407" bodyend="411" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="68" declcolumn="13"/> </memberdef> <memberdef kind="function" id="idt_8c_1a621ff589621ca8eceeffc570bb732b1a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _intNull</definition> <argsstring>(struct trapframe *frame)</argsstring> <name>_intNull</name> <param> <type>struct <ref refid="structtrapframe" kindref="compound">trapframe</ref> *</type> <declname>frame</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="235" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="235" bodyend="237"/> <references refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" compoundref="trap_8c" startline="59" endline="99">die_if_kernel</references> </memberdef> <memberdef kind="function" id="idt_8c_1ac53ffa9c075e4736ed69fe3b11803fc7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _machineCheck</definition> <argsstring>()</argsstring> <name>_machineCheck</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="82" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="82" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a520aa1d0c75df3948bdc6f8a3c5b1ab8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _nmi</definition> <argsstring>()</argsstring> <name>_nmi</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="56" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="56" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a6267395bf077339d165447d0f23729b9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _security</definition> <argsstring>()</argsstring> <name>_security</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="91" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="91" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a0969bbb29fac08b012aa3d7f3708ead7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _simd</definition> <argsstring>()</argsstring> <name>_simd</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="85" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="85" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a17de21f5807a8f70b9b9ea74232ec976" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void _virtualization</definition> <argsstring>()</argsstring> <name>_virtualization</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="88" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="88" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a4edbce705699c08b98d7a4578de2662f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _alignmentCheck \n" "_alignmentCheck: \n" " pushl $0x11 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __alignmentCheck \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1ab8e76e5a902f5918ea476f3193766d0e" kindref="member">_alignmentCheck</ref> \n" "_alignmentCheck: \n" " pushl $0x11 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a8a3ea6df190181b987577b14c99c6f9b" kindref="member">__alignmentCheck</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="639" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="639" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1aba551f7cbba795825767af11f8eb3491" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _debug \n" "_debug: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call _debug \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a12b0010d0a585c8b009686d9a8a314d9" kindref="member">_debug</ref> \n" "_debug: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a12b0010d0a585c8b009686d9a8a314d9" kindref="member">_debug</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="291" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="291" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1ac69eadcb4bd2ac86c4f630b094d306d6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _divideError \n" "_divideError: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call _divideError \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a9b2745cbfe99db27482bad8ebb34fba9" kindref="member">_divideError</ref> \n" "_divideError: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a9b2745cbfe99db27482bad8ebb34fba9" kindref="member">_divideError</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="265" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="265" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1aa61ad688120462d1ea67f3e7bf3b1195" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _doubleFault \n" "_doubleFault: \n" " pushl $0x8 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __doubleFault \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a806abfd1db0469173ad7861838b645dc" kindref="member">_doubleFault</ref> \n" "_doubleFault: \n" " pushl $0x8 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a0f0ee5dbd5337bac161bd2490ad21397" kindref="member">__doubleFault</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="388" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="388" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1ae92489bc5d3aaafa371b354bf7f4a8dc" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _floatingPoint \n" "_floatingPoint: \n" " pushl $0x0 \n" " pushl $0x10 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __floatingPoint \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a59372dcde625a8918ab65197ecc7eed7" kindref="member">_floatingPoint</ref> \n" "_floatingPoint: \n" " pushl $0x0 \n" " pushl $0x10 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a867bddfec4bbeb769465d958bcbda312" kindref="member">__floatingPoint</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="613" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="613" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1a67a988120967803682439569c8953f9d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _gpf \n" "_gpf: \n" " cli \n" " pushl $0x13 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __gpf \n" " add $0x4,%esp \n" " mov %esp,%eax \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " sti \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1af40f8b0e793378c4c5eb4d18246043b4" kindref="member">_gpf</ref> \n" "_gpf: \n" " <ref refid="wait_8h_1a68c330e94fe121eba993e5a5973c3162" kindref="member">cli</ref> \n" " pushl $0x13 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a2f2b32cc2c49cc727df979c1ecea8f8b" kindref="member">__gpf</ref> \n" " add</type> <declname>$0x4</declname> </param> <param> <type>%esp \n" " mov %</type> <declname>esp</declname> </param> <param> <type>%eax \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " <ref refid="wait_8h_1ac5d15f274bc9b1e96230f3d3c60fd1f8" kindref="member">sti</ref> \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="583" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="583" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1ac193553d6a892046fc3dd023025cfe17" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _int6 \n" "_int6: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __int6 \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl _int6 \n" "_int6: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1ae60120c5abe4b631e5c4c760e6ea892e" kindref="member">__int6</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="362" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="362" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1af03c996a639f5610a8514c6e6f8d15e6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _int7 \n" "_int7: \n" " pushl %eax \n" " clts \n" " movl _current,%eax \n" " cmpl _usedMath,%eax \n" " je mathDone \n" " call mathStateRestore \n" "mathDone: \n" " popl %eax \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl _int7 \n" "_int7: \n" " pushl %eax \n" " clts \n" " movl</type> <declname>_current</declname> </param> <param> <type>%eax \n" " cmpl</type> <declname>_usedMath</declname> </param> <param> <type>%eax \n" " je mathDone \n" " call <ref refid="idt_8c_1a6423394f8797bc3cf7ec6a079b8d593f" kindref="member">mathStateRestore</ref> \n" "mathDone:\n" " popl %eax \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="789" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="789" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1a22f88ed92fb21d8a35ae0ec80597dbb9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _machineCheck \n" "_machineCheck: \n" " pushl $0x0\n" " pushl $0x12 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __machineCheck \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1ac53ffa9c075e4736ed69fe3b11803fc7" kindref="member">_machineCheck</ref> \n" "_machineCheck: \n" " pushl $0x0\n" " pushl $0x12 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1ac51d829134fa5beed7f8fb62e8c297b3" kindref="member">__machineCheck</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="664" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="664" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1a3fe5c47a578592b8b60016c24b9d387f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _nmi \n" "_nmi: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call _nmi \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a520aa1d0c75df3948bdc6f8a3c5b1ab8" kindref="member">_nmi</ref> \n" "_nmi: \n" " pushl $0x0 \n" " pushl $0x6 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a520aa1d0c75df3948bdc6f8a3c5b1ab8" kindref="member">_nmi</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="317" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="317" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1a070f7b2efc7ffb5c3b71d9e0a8e7fa9b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _security \n" "_security: \n" " pushl $0x1E \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __security\n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a6267395bf077339d165447d0f23729b9" kindref="member">_security</ref> \n" "_security: \n" " pushl $0x1E \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call __security\n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="743" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="743" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1ae057739e88afdbfe045c0fc93512e002" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _simd \n" "_simd: \n" " iret\n" " pushl $0x0\n" " pushl $0x13 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __simd \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a0969bbb29fac08b012aa3d7f3708ead7" kindref="member">_simd</ref> \n" "_simd: \n" " iret\n" " pushl $0x0\n" " pushl $0x13 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a8ec618b934fbea05a071a13c8f338d7e" kindref="member">__simd</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="690" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="690" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1a1a1125ebda04502b292c4c9504e865e0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl _virtualization \n" "_virtualization: \n" " pushl $0x0 \n" " pushl $0x14 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call __virtualization \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1a17de21f5807a8f70b9b9ea74232ec976" kindref="member">_virtualization</ref> \n" "_virtualization: \n" " pushl $0x0 \n" " pushl $0x14 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a848a9f54eb3ac3c0046824e1a0b97eb2" kindref="member">__virtualization</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="717" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="717" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1a993be869f587a21737c0b6caf2f1dd1c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl intNull \n" "intNull: \n" " pushl $0x0 \n" " pushl $0x0 \n" " pushal \n" " push %ds \n" " push %es \n" " push %fs \n" " push %gs \n" " push %esp \n" " call _intNull \n" " pop %gs \n" " pop %fs \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="idt_8c_1adbf451ce0d6ecb3c485382616bee1de4" kindref="member">intNull</ref> \n" "intNull: \n" " pushl $0x0 \n" " pushl $0x0 \n" " pushal \n" " push %ds \n" " push %es \n" " push %<ref refid="structfs" kindref="compound">fs</ref> \n" " push %gs \n" " push %esp \n" " call <ref refid="idt_8c_1a621ff589621ca8eceeffc570bb732b1a" kindref="member">_intNull</ref> \n" " pop %gs \n" " pop %<ref refid="structfs" kindref="compound">fs</ref> \n" " pop %es \n" " pop %ds \n" " popal \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="239" column="1" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="239" declcolumn="1"/> </memberdef> <memberdef kind="function" id="idt_8c_1ad2968ba244dc6df20e94c32861314906" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int idt_init</definition> <argsstring>()</argsstring> <name>idt_init</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="109" column="5" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="109" bodyend="205"/> </memberdef> <memberdef kind="function" id="idt_8c_1adbf451ce0d6ecb3c485382616bee1de4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void intNull</definition> <argsstring>()</argsstring> <name>intNull</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="48" column="6" declfile="C:/Dev/git/UbixOS/sys/sys/idt.c" declline="48" declcolumn="6"/> </memberdef> <memberdef kind="function" id="idt_8c_1a6423394f8797bc3cf7ec6a079b8d593f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void mathStateRestore</definition> <argsstring>()</argsstring> <name>mathStateRestore</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="763" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="763" bodyend="786"/> <references refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" compoundref="armv6_2sched_8c" startline="50">_current</references> <references refid="armv6_2sched_8c_1a93c7d4c40424b17a73f34f6fd89b2804" compoundref="armv6_2sched_8c" startline="51">_usedMath</references> <references refid="structtaskStruct_1add14a764ee7ba0830bd837b54a8cb003" compoundref="sched_8h" startline="68">taskStruct::i387</references> <references refid="structtaskStruct_1afe3af11009b07961be7296b360827669" compoundref="sched_8h" startline="76">taskStruct::usedMath</references> </memberdef> <memberdef kind="function" id="idt_8c_1aee676dc504a8f6498927c2d5fb5e4c88" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void setTaskVector</definition> <argsstring>(uInt8 interrupt, uInt16 controlMajor, uInt8 selector)</argsstring> <name>setTaskVector</name> <param> <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type> <declname>interrupt</declname> </param> <param> <type><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref></type> <declname>controlMajor</declname> </param> <param> <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type> <declname>selector</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="224" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="224" bodyend="232"/> <references refid="gdt_8h_1a6dfbfc549c0fa420ccc893f30419419d" compoundref="gdt_8h" startline="81">selector</references> </memberdef> <memberdef kind="function" id="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void setVector</definition> <argsstring>(void *handler, unsigned char interrupt, unsigned short controlMajor)</argsstring> <name>setVector</name> <param> <type>void *</type> <declname>handler</declname> </param> <param> <type>unsigned char</type> <declname>interrupt</declname> </param> <param> <type>unsigned short</type> <declname>controlMajor</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="208" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="208" bodyend="216"/> <referencedby refid="atkbd_8c_1ad67d988f6347d52a6dc9f28992521e37" compoundref="atkbd_8c" startline="153" endline="172">atkbd_init</referencedby> <referencedby refid="fdc_8c_1a2fad92b12d9ff56bf300b7e53875c75d" compoundref="fdc_8c" startline="61" endline="75">fdc_init</referencedby> <referencedby refid="lnc_8c_1a0c06be8c0c0c046c5073f4cfae3eed7c" compoundref="lnc_8c" startline="94" endline="189">initLNC</referencedby> </memberdef> <memberdef kind="function" id="idt_8c_1a1df124b58bebf401a9d9d6336e19e417" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>static</type> <definition>static ubixDescriptorTable</definition> <argsstring>(ubixIDT, 256)</argsstring> <name>ubixDescriptorTable</name> <param> <type>ubixIDT</type> </param> <param> <type>256</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c" line="94" column="8" bodyfile="C:/Dev/git/UbixOS/sys/sys/idt.c" bodystart="94" bodyend="94"/> </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/>"AS<sp/>IS"<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/><<ref refid="syscall_8h" kindref="compound">ubixos/syscall.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="syscall__posix_8h" kindref="compound">ubixos/syscall_posix.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="idt_8h" kindref="compound">sys/idt.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="gdt_8h" kindref="compound">sys/gdt.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="io_8h" kindref="compound">sys/io.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="sched_8h" kindref="compound">ubixos/sched.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="35"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="8259_8h" kindref="compound">isa/8259.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="36"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kprintf_8h" kindref="compound">lib/kprintf.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kmalloc_8h" kindref="compound">lib/kmalloc.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="vmm_8h" kindref="compound">vmm/vmm.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kpanic_8h" kindref="compound">ubixos/kpanic.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="40"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="endtask_8h" kindref="compound">ubixos/endtask.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="41"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="string_8h" kindref="compound">string.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="trap_8h" kindref="compound">sys/trap.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="43"><highlight class="normal"></highlight></codeline> <codeline lineno="44" refid="idt_8c_1a814ba9bc4c42bb79af5cde78c8bbfaa3" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>FP_TO_LINEAR(seg,<sp/>off)<sp/>((void*)<sp/>((((uint16_t)<sp/>(seg))<sp/><<<sp/>4)<sp/>+<sp/>((uint16_t)<sp/>(off))))</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight></codeline> <codeline lineno="46"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref><sp/>gpfStack<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="47"><highlight class="normal"></highlight></codeline> <codeline lineno="48"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1adbf451ce0d6ecb3c485382616bee1de4" kindref="member">intNull</ref>();</highlight></codeline> <codeline lineno="49"><highlight class="normal"></highlight></codeline> <codeline lineno="50"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a9b2745cbfe99db27482bad8ebb34fba9" kindref="member">_divideError</ref>();</highlight></codeline> <codeline lineno="51"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1adccd9730ac2b0fa6ef3b41cec9af2162" kindref="member">__divideError</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="52"><highlight class="normal"></highlight></codeline> <codeline lineno="53"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a12b0010d0a585c8b009686d9a8a314d9" kindref="member">_debug</ref>();</highlight></codeline> <codeline lineno="54"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a93a791c71216d3dd3550e193c805102f" kindref="member">__debug</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="55"><highlight class="normal"></highlight></codeline> <codeline lineno="56"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a520aa1d0c75df3948bdc6f8a3c5b1ab8" kindref="member">_nmi</ref>();</highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ae45963ae287b44ec905a7924207657e4" kindref="member">__nmi</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="58"><highlight class="normal"></highlight></codeline> <codeline lineno="59"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int3();</highlight></codeline> <codeline lineno="60"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int4();</highlight></codeline> <codeline lineno="61"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int5();</highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int6();</highlight></codeline> <codeline lineno="63"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int7();</highlight></codeline> <codeline lineno="64"><highlight class="normal"></highlight></codeline> <codeline lineno="65"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a806abfd1db0469173ad7861838b645dc" kindref="member">_doubleFault</ref>();</highlight></codeline> <codeline lineno="66"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a0f0ee5dbd5337bac161bd2490ad21397" kindref="member">__doubleFault</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="67"><highlight class="normal"></highlight></codeline> <codeline lineno="68"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int9();</highlight></codeline> <codeline lineno="69"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int10();</highlight></codeline> <codeline lineno="70"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int11();</highlight></codeline> <codeline lineno="71"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int12();</highlight></codeline> <codeline lineno="72"><highlight class="normal"></highlight></codeline> <codeline lineno="73"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1af40f8b0e793378c4c5eb4d18246043b4" kindref="member">_gpf</ref>();</highlight></codeline> <codeline lineno="74"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a2f2b32cc2c49cc727df979c1ecea8f8b" kindref="member">__gpf</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="75"><highlight class="normal"></highlight></codeline> <codeline lineno="76"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a59372dcde625a8918ab65197ecc7eed7" kindref="member">_floatingPoint</ref>();</highlight></codeline> <codeline lineno="77"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a867bddfec4bbeb769465d958bcbda312" kindref="member">__floatingPoint</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="78"><highlight class="normal"></highlight></codeline> <codeline lineno="79"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ab8e76e5a902f5918ea476f3193766d0e" kindref="member">_alignmentCheck</ref>();</highlight></codeline> <codeline lineno="80"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a8a3ea6df190181b987577b14c99c6f9b" kindref="member">__alignmentCheck</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="81"><highlight class="normal"></highlight></codeline> <codeline lineno="82"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ac53ffa9c075e4736ed69fe3b11803fc7" kindref="member">_machineCheck</ref>();</highlight></codeline> <codeline lineno="83"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ac51d829134fa5beed7f8fb62e8c297b3" kindref="member">__machineCheck</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="84"><highlight class="normal"></highlight></codeline> <codeline lineno="85"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a0969bbb29fac08b012aa3d7f3708ead7" kindref="member">_simd</ref>();</highlight></codeline> <codeline lineno="86"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a8ec618b934fbea05a071a13c8f338d7e" kindref="member">__simd</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="87"><highlight class="normal"></highlight></codeline> <codeline lineno="88"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a17de21f5807a8f70b9b9ea74232ec976" kindref="member">_virtualization</ref>();</highlight></codeline> <codeline lineno="89"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a848a9f54eb3ac3c0046824e1a0b97eb2" kindref="member">__virtualization</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="90"><highlight class="normal"></highlight></codeline> <codeline lineno="91"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a6267395bf077339d165447d0f23729b9" kindref="member">_security</ref>();</highlight></codeline> <codeline lineno="92"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ad3beb87208d6cbc992574f9e04f6f2be" kindref="member">__security</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*);</highlight></codeline> <codeline lineno="93"><highlight class="normal"></highlight></codeline> <codeline lineno="94"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="main_8c_1a15a066919d0efda40947361e519aa433" kindref="member">ubixDescriptorTable</ref>(ubixIDT,<sp/>256)<sp/>{};</highlight></codeline> <codeline lineno="95"><highlight class="normal"></highlight></codeline> <codeline lineno="96"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">{</highlight></codeline> <codeline lineno="97"><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>((packed));</highlight></codeline> <codeline lineno="98"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">union<sp/></highlight><highlight class="normal"><ref refid="uniondescriptorTableUnion" kindref="compound">descriptorTableUnion</ref><sp/>*idt<sp/><ref refid="gdt_8h_1ae2d16a801307e5bad8d30e90601a107b" kindref="member">__attribute__</ref>((packed));</highlight></codeline> <codeline lineno="99"><highlight class="normal">}<sp/>loadidt<sp/>=<sp/>{<sp/>(256<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/>ubixIDT<sp/>};</highlight></codeline> <codeline lineno="100"><highlight class="normal"></highlight></codeline> <codeline lineno="101"><highlight class="normal"></highlight><highlight class="comment">/************************************************************************</highlight></codeline> <codeline lineno="102"><highlight class="comment"></highlight></codeline> <codeline lineno="103"><highlight class="comment"><sp/>Function:<sp/>int<sp/>idtInit()</highlight></codeline> <codeline lineno="104"><highlight class="comment"><sp/>Description:<sp/>This<sp/>function<sp/>is<sp/>used<sp/>to<sp/>enable<sp/>our<sp/>IDT<sp/>subsystem</highlight></codeline> <codeline lineno="105"><highlight class="comment"><sp/>Notes:</highlight></codeline> <codeline lineno="106"><highlight class="comment"></highlight></codeline> <codeline lineno="107"><highlight class="comment"><sp/>02/20/2004<sp/>-<sp/>Approved<sp/>for<sp/>quality</highlight></codeline> <codeline lineno="108"><highlight class="comment"></highlight></codeline> <codeline lineno="109" refid="idt_8c_1ad2968ba244dc6df20e94c32861314906" refkind="member"><highlight class="comment"><sp/>************************************************************************/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="110"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ad2968ba244dc6df20e94c32861314906" kindref="member">idt_init</ref>()<sp/>{</highlight></codeline> <codeline lineno="111"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtssStruct" kindref="compound">tssStruct</ref><sp/>*sfTSS<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtssStruct" kindref="compound">tssStruct</ref><sp/>*)<sp/>0x6200;</highlight></codeline> <codeline lineno="112"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtssStruct" kindref="compound">tssStruct</ref><sp/>*gpfTSS<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtssStruct" kindref="compound">tssStruct</ref><sp/>*)<sp/>0x5200;</highlight></codeline> <codeline lineno="113"><highlight class="normal"></highlight></codeline> <codeline lineno="114"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Load<sp/>the<sp/>IDT<sp/>into<sp/>the<sp/>system<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="115"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"cli<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"lidt<sp/>(%0)<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Load<sp/>the<sp/>IDT<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"pushfl<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Clear<sp/>the<sp/>NT<sp/>flag<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"andl<sp/>$0xffffbfff,(%%esp)<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"popfl<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"sti<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/>:</highlight></codeline> <codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/>:<sp/></highlight><highlight class="stringliteral">"r"</highlight><highlight class="normal"><sp/>((</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)&loadidt)</highlight></codeline> <codeline lineno="124"><highlight class="normal"><sp/><sp/>);</highlight></codeline> <codeline lineno="125"><highlight class="normal"></highlight></codeline> <codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0;i<sp/><<sp/>256;i++)</highlight></codeline> <codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1adbf451ce0d6ecb3c485382616bee1de4" kindref="member">intNull</ref>,<sp/>i,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1ab566353a8383ed84a5d0328677dc05dd" kindref="member">dTrap</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>);</highlight></codeline> <codeline lineno="128"><highlight class="normal"></highlight></codeline> <codeline lineno="129"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Set<sp/>up<sp/>the<sp/>basic<sp/>vectors<sp/>for<sp/>the<sp/>reserved<sp/>ints<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="130"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a9b2745cbfe99db27482bad8ebb34fba9" kindref="member">_divideError</ref>,<sp/>0,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="131"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a12b0010d0a585c8b009686d9a8a314d9" kindref="member">_debug</ref>,<sp/>1,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="132"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a520aa1d0c75df3948bdc6f8a3c5b1ab8" kindref="member">_nmi</ref>,<sp/>2,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="133"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int3,<sp/>3,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="134"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int4,<sp/>4,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="135"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int5,<sp/>5,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="136"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int6,<sp/>6,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1ab566353a8383ed84a5d0328677dc05dd" kindref="member">dTrap</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="137"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int7,<sp/>7,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="138"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a806abfd1db0469173ad7861838b645dc" kindref="member">_doubleFault</ref>,<sp/>8,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="139"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//setTaskVector(8,<sp/>dPresent<sp/>+<sp/>dTask<sp/>+<sp/>dDpl0,<sp/>0x40);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="140"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int9,<sp/>9,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="141"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int10,<sp/>10,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="142"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int11,<sp/>11,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="143"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(_int12,<sp/>12,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="144"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//setVector(_gpf,<sp/>13,<sp/>dPresent<sp/>+<sp/>dInt<sp/>+<sp/>dDpl0);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="145"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1aee676dc504a8f6498927c2d5fb5e4c88" kindref="member">setTaskVector</ref>(13,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a1521354f2c1fc307021a9a75dfc805f8" kindref="member">dTask</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>,<sp/>0x38);</highlight></codeline> <codeline lineno="146"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="paging_8h_1a15b43ccb21abdb9e0a41acb82b260a99" kindref="member">_vmm_pageFault</ref>,<sp/>14,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="147"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a59372dcde625a8918ab65197ecc7eed7" kindref="member">_floatingPoint</ref>,<sp/>16,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="148"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1ab8e76e5a902f5918ea476f3193766d0e" kindref="member">_alignmentCheck</ref>,<sp/>17,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="149"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1ac53ffa9c075e4736ed69fe3b11803fc7" kindref="member">_machineCheck</ref>,<sp/>18,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="150"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a0969bbb29fac08b012aa3d7f3708ead7" kindref="member">_simd</ref>,<sp/>19,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="151"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a17de21f5807a8f70b9b9ea74232ec976" kindref="member">_virtualization</ref>,<sp/>20,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="152"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8c_1a6267395bf077339d165447d0f23729b9" kindref="member">_security</ref>,<sp/>30,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="153"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="syscall__posix_8h_1a0d6f7783e534a2cc8f34d66509bd22d4" kindref="member">_sys_call_posix</ref>,<sp/>0x80,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1ab566353a8383ed84a5d0328677dc05dd" kindref="member">dTrap</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>);</highlight></codeline> <codeline lineno="154"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="syscall_8h_1ab362b8583848ea7d1366846621de9d7c" kindref="member">_sys_call</ref>,<sp/>0x81,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1ab566353a8383ed84a5d0328677dc05dd" kindref="member">dTrap</ref><sp/>+<sp/><ref refid="gdt_8h_1a2e29d1e158d5e81dc70dfae75f17d7f4" kindref="member">dDpl3</ref>);</highlight></codeline> <codeline lineno="155"><highlight class="normal"><sp/><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="idt_8h_1acd14f4ee7d1a7b3676988812aef0cc57" kindref="member">timerInt</ref>,<sp/>0x68,<sp/>(<ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>));</highlight></codeline> <codeline lineno="156"><highlight class="normal"></highlight></codeline> <codeline lineno="157"><highlight class="normal"><sp/><sp/><ref refid="string_8h_1ace4b911463887af5e748326323e99a23" kindref="member">memset</ref>(gpfTSS,<sp/>0x0,<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>));</highlight></codeline> <codeline lineno="158"><highlight class="normal"></highlight></codeline> <codeline lineno="159"><highlight class="normal"><sp/><sp/>gpfStack<sp/>=<sp/>0x1D000;</highlight><highlight class="comment">//(uint32_t)vmm_getFreeKernelPage(sysID,<sp/>1)<sp/>+<sp/>(PAGE_SIZE<sp/>-<sp/>0x4);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="160"><highlight class="normal"></highlight></codeline> <codeline lineno="161"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1afecbe8ea2cfebfb4d1a0aa7b6ebcac2c" kindref="member">back_link</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="162"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a1017372aed82d7305586c330fa222b3b" kindref="member">esp0</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="163"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a26d03018de8c122451661bfe9d030541" kindref="member">ss0</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="164"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1ad5ef8867200562fd8262f70312beff4d" kindref="member">esp1</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="165"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a6abf05d9a8f6356860a5606ffbadc989" kindref="member">ss1</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="166"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a60c88f3cd3f2110cb24be62444f42cfb" kindref="member">esp2</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="167"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a5a79ace5652b01cc25fc5ba7ff45bfa8" kindref="member">ss2</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="168"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a8d312ed3dd0ea7a0f801c08a8cc4afd0" kindref="member">cr3</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int)<sp/><ref refid="paging_8h_1a7c58070dedac2ee9e1c73d8c8206b923" kindref="member">kernelPageDirectory</ref>;</highlight></codeline> <codeline lineno="169"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>int)<sp/>&<ref refid="idt_8c_1af40f8b0e793378c4c5eb4d18246043b4" kindref="member">_gpf</ref>;</highlight></codeline> <codeline lineno="170"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>=<sp/>0x206;</highlight></codeline> <codeline lineno="171"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>gpfStack;<sp/></highlight><highlight class="comment">//0x1D000;</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="172"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1ac2d32620149e07c40ee87696ef2509c2" kindref="member">ebp</ref><sp/>=<sp/>0x0;<sp/></highlight><highlight class="comment">//<sp/>0x1D000;</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="173"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a8beab5808aad776957d4544f6b139d4e" kindref="member">esi</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="174"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1aa52b515706cd37e166c8eba348d5e68b" kindref="member">edi</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="175"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1acd97dd6f6eabd83c0b819b6058b7041d" kindref="member">es</ref><sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="176"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a6d9085ec5af0fa1fe1de7015ad99c9e3" kindref="member">cs</ref><sp/>=<sp/>0x08;</highlight></codeline> <codeline lineno="177"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a340a29782d3306ba84176c543725d70a" kindref="member">ss</ref><sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="178"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a01ee01c7f45c9b9ee2ad8338c21e6d33" kindref="member">ds</ref><sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="179"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a8114a585123181ec835f8db3e029d390" kindref="member">fs</ref><sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="180"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a8dfa44423504293405785371d0e7b076" kindref="member">gs</ref><sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="181"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1ad7b6a367e1c2a38e1ee6c8e5dad955f7" kindref="member">ldt</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="182"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a52ac0b54c6b2c71450c62d7fc911f2e2" kindref="member">trace_bitmap</ref><sp/>=<sp/>0x0000;</highlight></codeline> <codeline lineno="183"><highlight class="normal"><sp/><sp/>gpfTSS-><ref refid="structtssStruct_1a611a0a044f99f092ace469ce2381bb33" kindref="member">io_map</ref><sp/>=<sp/>0x8000;</highlight></codeline> <codeline lineno="184"><highlight class="normal"></highlight></codeline> <codeline lineno="185"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*</highlight></codeline> <codeline lineno="186"><highlight class="comment"><sp/><sp/>memset(sfTSS,<sp/>0x0,<sp/>sizeof(struct<sp/>tssStruct));</highlight></codeline> <codeline lineno="187"><highlight class="comment"><sp/><sp/>sfTSS->cr3<sp/>=<sp/>(unsigned<sp/>int)<sp/>kernelPageDirectory;</highlight></codeline> <codeline lineno="188"><highlight class="comment"><sp/><sp/>sfTSS->eip<sp/>=<sp/>(unsigned<sp/>int)<sp/>&__int8;</highlight></codeline> <codeline lineno="189"><highlight class="comment"><sp/><sp/>sfTSS->eflags<sp/>=<sp/>0x206;</highlight></codeline> <codeline lineno="190"><highlight class="comment"><sp/><sp/>sfTSS->esp<sp/>=<sp/>0x1C000;</highlight></codeline> <codeline lineno="191"><highlight class="comment"><sp/><sp/>sfTSS->ebp<sp/>=<sp/>0x1C000;</highlight></codeline> <codeline lineno="192"><highlight class="comment"><sp/><sp/>sfTSS->es<sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="193"><highlight class="comment"><sp/><sp/>sfTSS->cs<sp/>=<sp/>0x08;</highlight></codeline> <codeline lineno="194"><highlight class="comment"><sp/><sp/>sfTSS->ss<sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="195"><highlight class="comment"><sp/><sp/>sfTSS->ds<sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="196"><highlight class="comment"><sp/><sp/>sfTSS->fs<sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="197"><highlight class="comment"><sp/><sp/>sfTSS->gs<sp/>=<sp/>0x10;</highlight></codeline> <codeline lineno="198"><highlight class="comment"><sp/><sp/>sfTSS->io_map<sp/>=<sp/>0x8000;</highlight></codeline> <codeline lineno="199"><highlight class="comment"><sp/><sp/>*/</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/>Print<sp/>out<sp/>information<sp/>for<sp/>the<sp/>IDT<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="202"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"idt0<sp/>-<sp/>Address:<sp/>[0x%X]\n"</highlight><highlight class="normal">,<sp/>&ubixIDT);</highlight></codeline> <codeline lineno="203"><highlight class="normal"></highlight></codeline> <codeline lineno="204"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>so<sp/>we<sp/>know<sp/>all<sp/>went<sp/>well<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="205"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline> <codeline lineno="206"><highlight class="normal">}</highlight></codeline> <codeline lineno="207"><highlight class="normal"></highlight></codeline> <codeline lineno="208" refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" refkind="member"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Sets<sp/>Up<sp/>IDT<sp/>Vector<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="209"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*handler,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>interrupt,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>controlMajor)<sp/>{</highlight></codeline> <codeline lineno="210"><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/>codesegment<sp/>=<sp/>0x08;</highlight></codeline> <codeline lineno="211"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/>(</highlight><highlight class="stringliteral">"movw<sp/>%%cs,%0"</highlight><highlight class="normal">:</highlight><highlight class="stringliteral">"=g"</highlight><highlight class="normal"><sp/>(codesegment));</highlight></codeline> <codeline lineno="212"><highlight class="normal"></highlight></codeline> <codeline lineno="213"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.offsetLow<sp/>=<sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>short)<sp/>(((</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal">)<sp/>handler)<sp/>&<sp/>0xffff);</highlight></codeline> <codeline lineno="214"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.selector<sp/>=<sp/>codesegment;</highlight></codeline> <codeline lineno="215"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.access<sp/>=<sp/>controlMajor;</highlight></codeline> <codeline lineno="216"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.offsetHigh<sp/>=<sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/>short)<sp/>(((</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal">)<sp/>handler)<sp/>>><sp/>16);</highlight></codeline> <codeline lineno="217"><highlight class="normal">}</highlight></codeline> <codeline lineno="218"><highlight class="normal"></highlight></codeline> <codeline lineno="219"><highlight class="normal"></highlight><highlight class="comment">/************************************************************************</highlight></codeline> <codeline lineno="220"><highlight class="comment"></highlight></codeline> <codeline lineno="221"><highlight class="comment"><sp/>Function:<sp/>void<sp/>setTaskVector(uInt8,uInt16,uInt8);</highlight></codeline> <codeline lineno="222"><highlight class="comment"><sp/>Description:<sp/>This<sp/>Function<sp/>Sets<sp/>Up<sp/>An<sp/>IDT<sp/>Task<sp/>Vector</highlight></codeline> <codeline lineno="223"><highlight class="comment"><sp/>Notes:</highlight></codeline> <codeline lineno="224" refid="idt_8c_1aee676dc504a8f6498927c2d5fb5e4c88" refkind="member"><highlight class="comment"></highlight></codeline> <codeline lineno="225"><highlight class="comment"><sp/>************************************************************************/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="226"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1aee676dc504a8f6498927c2d5fb5e4c88" kindref="member">setTaskVector</ref>(<ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>interrupt,<sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>controlMajor,<sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="gdt_8h_1a6dfbfc549c0fa420ccc893f30419419d" kindref="member">selector</ref>)<sp/>{</highlight></codeline> <codeline lineno="227"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>codesegment<sp/>=<sp/>0x08;</highlight></codeline> <codeline lineno="228"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/>(</highlight><highlight class="stringliteral">"movw<sp/>%%cs,%0"</highlight><highlight class="normal">:</highlight><highlight class="stringliteral">"=g"</highlight><highlight class="normal"><sp/>(codesegment));</highlight></codeline> <codeline lineno="229"><highlight class="normal"></highlight></codeline> <codeline lineno="230"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.offsetLow<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="231"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.selector<sp/>=<sp/><ref refid="gdt_8h_1a6dfbfc549c0fa420ccc893f30419419d" kindref="member">selector</ref>;</highlight></codeline> <codeline lineno="232"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.access<sp/>=<sp/>controlMajor;</highlight></codeline> <codeline lineno="233"><highlight class="normal"><sp/><sp/>ubixIDT[interrupt].gate.offsetHigh<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="234"><highlight class="normal">}</highlight></codeline> <codeline lineno="235" refid="idt_8c_1a621ff589621ca8eceeffc570bb732b1a" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="236"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Null<sp/>Intterupt<sp/>Descriptor<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="237"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a621ff589621ca8eceeffc570bb732b1a" kindref="member">_intNull</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="238"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"invalid<sp/>exception"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x0);</highlight></codeline> <codeline lineno="239"><highlight class="normal">}</highlight></codeline> <codeline lineno="240"><highlight class="normal"></highlight></codeline> <codeline lineno="241"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="242"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>intNull<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="243"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"intNull:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="244"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="245"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="246"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="247"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="248"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="249"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="250"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="251"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="252"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>_intNull<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="253"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="254"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="255"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="256"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="257"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="258"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="259" refid="idt_8c_1adccd9730ac2b0fa6ef3b41cec9af2162" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="260"><highlight class="normal"></highlight></codeline> <codeline lineno="261"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1adccd9730ac2b0fa6ef3b41cec9af2162" kindref="member">__divideError</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="262"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"Divid-by-Zero"</highlight><highlight class="normal">,<sp/>frame,<sp/>0);</highlight></codeline> <codeline lineno="263"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="265"><highlight class="normal">}</highlight></codeline> <codeline lineno="266"><highlight class="normal"></highlight></codeline> <codeline lineno="267"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="268"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_divideError<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="269"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_divideError:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="270"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="271"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x6<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="272"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="273"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="274"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="275"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="276"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="277"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="278"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>_divideError<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="279"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="280"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="281"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="282"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="283"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="284"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight></codeline> <codeline lineno="285" refid="idt_8c_1a93a791c71216d3dd3550e193c805102f" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="286"><highlight class="normal"></highlight></codeline> <codeline lineno="287"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a93a791c71216d3dd3550e193c805102f" kindref="member">__debug</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="288"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"debug"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x2);</highlight></codeline> <codeline lineno="289"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="290"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="291"><highlight class="normal">}</highlight></codeline> <codeline lineno="292"><highlight class="normal"></highlight></codeline> <codeline lineno="293"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="294"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_debug<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="295"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_debug:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="296"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="297"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x6<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="298"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="299"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="300"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="301"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="302"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="303"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="304"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>_debug<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="305"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="306"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="307"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="308"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="309"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="310"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="311" refid="idt_8c_1ae45963ae287b44ec905a7924207657e4" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="312"><highlight class="normal"></highlight></codeline> <codeline lineno="313"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ae45963ae287b44ec905a7924207657e4" kindref="member">__nmi</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="314"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"nmi"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x2);</highlight></codeline> <codeline lineno="315"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="316"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="317"><highlight class="normal">}</highlight></codeline> <codeline lineno="318"><highlight class="normal"></highlight></codeline> <codeline lineno="319"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="320"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_nmi<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="321"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_nmi:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="322"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="323"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x6<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="324"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="325"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="326"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="327"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="328"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="329"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="330"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>_nmi<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="331"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="332"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="333"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="334"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="335"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="336"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="337"><highlight class="normal">);</highlight></codeline> <codeline lineno="338"><highlight class="normal"></highlight></codeline> <codeline lineno="339"><highlight class="normal"></highlight></codeline> <codeline lineno="340"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int3()<sp/>{</highlight></codeline> <codeline lineno="341"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int3:<sp/>Breakpoint<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="342"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="343"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="344"><highlight class="normal">}</highlight></codeline> <codeline lineno="345"><highlight class="normal"></highlight></codeline> <codeline lineno="346"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int4()<sp/>{</highlight></codeline> <codeline lineno="347"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int4:<sp/>Overflow<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="348"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="349"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="350"><highlight class="normal">}</highlight></codeline> <codeline lineno="351"><highlight class="normal"></highlight></codeline> <codeline lineno="352"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int5()<sp/>{</highlight></codeline> <codeline lineno="353"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int5:<sp/>Bounds<sp/>check<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="354"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="355"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="356" refid="idt_8c_1ae60120c5abe4b631e5c4c760e6ea892e" refkind="member"><highlight class="normal">}</highlight></codeline> <codeline lineno="357"><highlight class="normal"></highlight></codeline> <codeline lineno="358"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ae60120c5abe4b631e5c4c760e6ea892e" kindref="member">__int6</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="359"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"invalid_opcode"</highlight><highlight class="normal">,<sp/>frame,<sp/>6);</highlight></codeline> <codeline lineno="360"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="361"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="362"><highlight class="normal">}</highlight></codeline> <codeline lineno="363"><highlight class="normal"></highlight></codeline> <codeline lineno="364"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="365"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_int6<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="366"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_int6:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="367"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="368"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x6<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="369"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="370"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="371"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="372"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="373"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="374"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="375"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__int6<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="376"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="377"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="378"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="379"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="380"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="381"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Exit<sp/>interrupt<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="382" refid="idt_8c_1a0f0ee5dbd5337bac161bd2490ad21397" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="383"><highlight class="normal"></highlight></codeline> <codeline lineno="384"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a0f0ee5dbd5337bac161bd2490ad21397" kindref="member">__doubleFault</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="385"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"double<sp/>fault"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x8);</highlight></codeline> <codeline lineno="386"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="387"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="388"><highlight class="normal">}</highlight></codeline> <codeline lineno="389"><highlight class="normal"></highlight></codeline> <codeline lineno="390"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="391"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_doubleFault<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="392"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_doubleFault:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="393"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x8<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="394"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="395"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="396"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="397"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="398"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="399"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="400"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__doubleFault<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="401"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="402"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="403"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="404"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="405"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="406"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Exit<sp/>interrupt<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="407"><highlight class="normal">);</highlight></codeline> <codeline lineno="408"><highlight class="normal"></highlight></codeline> <codeline lineno="409"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int9()<sp/>{</highlight></codeline> <codeline lineno="410"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int9:<sp/>Coprocessor<sp/>Segment<sp/>Overrun!<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="411"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="412"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="413"><highlight class="normal">}</highlight></codeline> <codeline lineno="414"><highlight class="normal"></highlight></codeline> <codeline lineno="415"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int10()<sp/>{</highlight></codeline> <codeline lineno="416"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int10:<sp/>Invalid<sp/>TSS!<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="417"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="418"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="419"><highlight class="normal">}</highlight></codeline> <codeline lineno="420"><highlight class="normal"></highlight></codeline> <codeline lineno="421"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int11()<sp/>{</highlight></codeline> <codeline lineno="422"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int11:<sp/>Segment<sp/>Not<sp/>Present!<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="423"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="424"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="425"><highlight class="normal">}</highlight></codeline> <codeline lineno="426"><highlight class="normal"></highlight></codeline> <codeline lineno="427"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>_int12()<sp/>{</highlight></codeline> <codeline lineno="428"><highlight class="normal"><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"int12:<sp/>Stack-Segment<sp/>Fault!<sp/>[%i]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="429"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="430"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="431" refid="idt_8c_1a2f2b32cc2c49cc727df979c1ecea8f8b" refkind="member"><highlight class="normal">}</highlight></codeline> <codeline lineno="432"><highlight class="normal"></highlight></codeline> <codeline lineno="433"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a2f2b32cc2c49cc727df979c1ecea8f8b" kindref="member">__gpf</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="434"><highlight class="normal"><sp/><sp/><ref refid="include_2sys_2types_8h_1a2aff71146ab4942b2b38860c749c4074" kindref="member">uint8_t</ref><sp/>*ip<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="435"><highlight class="normal"><sp/><sp/><ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref><sp/>*stack<sp/>=<sp/>0x0,<sp/>*ivt<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="436"><highlight class="normal"><sp/><sp/><ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref><sp/>*stack32<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="437"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>isOperand32<sp/>=<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>,<sp/>isAddress32<sp/>=<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="438"><highlight class="normal"></highlight></codeline> <codeline lineno="439"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtssStruct" kindref="compound">tssStruct</ref><sp/>*gpfTSS<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structtssStruct" kindref="compound">tssStruct</ref><sp/>*)<sp/>0x5200;</highlight></codeline> <codeline lineno="440"><highlight class="normal"></highlight></codeline> <codeline lineno="441"><highlight class="normal"><sp/><sp/>gpfEnter:</highlight></codeline> <codeline lineno="442"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"DF"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="443"><highlight class="normal"><sp/><sp/>ip<sp/>=<sp/><ref refid="idt_8c_1a814ba9bc4c42bb79af5cde78c8bbfaa3" kindref="member">FP_TO_LINEAR</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6d9085ec5af0fa1fe1de7015ad99c9e3" kindref="member">cs</ref>,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref>);</highlight></codeline> <codeline lineno="444"><highlight class="normal"></highlight></codeline> <codeline lineno="445"><highlight class="normal"><sp/><sp/>ivt<sp/>=<sp/>(<ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref><sp/>*)<sp/>0x0;</highlight></codeline> <codeline lineno="446"><highlight class="normal"></highlight></codeline> <codeline lineno="447"><highlight class="normal"><sp/><sp/>stack<sp/>=<sp/>(<ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref><sp/>*)<sp/><ref refid="idt_8c_1a814ba9bc4c42bb79af5cde78c8bbfaa3" kindref="member">FP_TO_LINEAR</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a340a29782d3306ba84176c543725d70a" kindref="member">ss</ref>,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref>);</highlight></codeline> <codeline lineno="448"><highlight class="normal"><sp/><sp/>stack32<sp/>=<sp/>(<ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref><sp/>*)<sp/>stack;</highlight></codeline> <codeline lineno="449"><highlight class="normal"></highlight></codeline> <codeline lineno="450"><highlight class="normal"><sp/><sp/>gpfStart:<sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(ip[0])<sp/>{</highlight></codeline> <codeline lineno="451"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xCD:<sp/></highlight><highlight class="comment">/*<sp/>INT<sp/>n<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="452"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(ip[1])<sp/>{</highlight></codeline> <codeline lineno="453"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x69:</highlight></codeline> <codeline lineno="454"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Exit<sp/>Bios<sp/>[0x%X]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="455"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//while<sp/>(1)<sp/>asm("hlt");</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="456"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1ab085a40e09975d9ebf55b393f9549710" kindref="member">state</ref><sp/>=<sp/><ref refid="sched_8h_1a3fb333b67375561d327e9b5a8ffa03b9a11fd9ca455f92c69c084484d5cd803c2" kindref="member">DEAD</ref>;</highlight></codeline> <codeline lineno="457"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="458"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x20:</highlight></codeline> <codeline lineno="459"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x21:</highlight></codeline> <codeline lineno="460"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"GPF<sp/>OP<sp/>0x20/0x21\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="461"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="462"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline> <codeline lineno="463"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack<sp/>-=<sp/>3;</highlight></codeline> <codeline lineno="464"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>((<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>&<sp/>0xffff)<sp/>-<sp/>6)<sp/>&<sp/>0xffff;</highlight></codeline> <codeline lineno="465"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[0]<sp/>=<sp/>(<ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>2);</highlight></codeline> <codeline lineno="466"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[1]<sp/>=<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6d9085ec5af0fa1fe1de7015ad99c9e3" kindref="member">cs</ref>;</highlight></codeline> <codeline lineno="467"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[2]<sp/>=<sp/>(<ref refid="include_2sys_2types_8h_1a281b4b5562236420969a830503b0ba19" kindref="member">uint16_t</ref>)<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref>;</highlight></codeline> <codeline lineno="468"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref>)</highlight></codeline> <codeline lineno="469"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[2]<sp/>|=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="470"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="471"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[2]<sp/>&=<sp/>~<ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="472"><highlight class="normal"></highlight></codeline> <codeline lineno="473"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6d9085ec5af0fa1fe1de7015ad99c9e3" kindref="member">cs</ref><sp/>=<sp/>ivt[ip[1]<sp/>*<sp/>2<sp/>+<sp/>1]<sp/>&<sp/>0xFFFF;</highlight></codeline> <codeline lineno="474"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>ivt[ip[1]<sp/>*<sp/>2]<sp/>&<sp/>0xFFFF;</highlight></codeline> <codeline lineno="475"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="476"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="477"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="478"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x66:</highlight></codeline> <codeline lineno="479"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>isOperand32<sp/>=<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="480"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>ip++;</highlight></codeline> <codeline lineno="481"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="482"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"0x66"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="483"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>gpfStart;</highlight></codeline> <codeline lineno="484"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="485"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x67:</highlight></codeline> <codeline lineno="486"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>isAddress32<sp/>=<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="487"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>ip++;</highlight></codeline> <codeline lineno="488"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="489"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"0x67"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="490"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>gpfStart;</highlight></codeline> <codeline lineno="491"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="492"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xF0:</highlight></codeline> <codeline lineno="493"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="494"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"GPF<sp/>OP<sp/>0xF0\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="495"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="496"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x9C:</highlight></codeline> <codeline lineno="497"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(isOperand32<sp/>==<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>)<sp/>{</highlight></codeline> <codeline lineno="498"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>((<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>&<sp/>0xffff)<sp/>-<sp/>4)<sp/>&<sp/>0xffff;</highlight></codeline> <codeline lineno="499"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack32--;</highlight></codeline> <codeline lineno="500"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack32[0]<sp/>=<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>&<sp/>0xDFF;</highlight></codeline> <codeline lineno="501"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>==<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>)</highlight></codeline> <codeline lineno="502"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack32[0]<sp/>|=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="503"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="504"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack32[0]<sp/>&=<sp/>~<ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="505"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="506"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="507"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>((<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>&<sp/>0xffff)<sp/>-<sp/>2)<sp/>&<sp/>0xffff;</highlight></codeline> <codeline lineno="508"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack--;</highlight></codeline> <codeline lineno="509"><highlight class="normal"></highlight></codeline> <codeline lineno="510"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[0]<sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref>;</highlight></codeline> <codeline lineno="511"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>==<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>)</highlight></codeline> <codeline lineno="512"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[0]<sp/>|=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="513"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="514"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stack[0]<sp/>&=<sp/>~<ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="515"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="516"><highlight class="normal"></highlight></codeline> <codeline lineno="517"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="518"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="519"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0x9D:</highlight></codeline> <codeline lineno="520"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(isOperand32<sp/>==<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>)<sp/>{</highlight></codeline> <codeline lineno="521"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref><sp/>|<sp/><ref refid="bioscall_8h_1ac853c10e3eb19188c6b3b8d3ff6914e2" kindref="member">EFLAG_VM</ref><sp/>|<sp/>(stack32[0]<sp/>&<sp/>0xDFF);</highlight></codeline> <codeline lineno="522"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>=<sp/>(stack32[0]<sp/>&<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>)<sp/>!=<sp/>0;</highlight></codeline> <codeline lineno="523"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>((<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>&<sp/>0xffff)<sp/>+<sp/>4)<sp/>&<sp/>0xffff;</highlight></codeline> <codeline lineno="524"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="525"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="526"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref><sp/>|<sp/><ref refid="bioscall_8h_1ac853c10e3eb19188c6b3b8d3ff6914e2" kindref="member">EFLAG_VM</ref><sp/>|<sp/>stack[0];</highlight></codeline> <codeline lineno="527"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>=<sp/>(stack[0]<sp/>&<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>)<sp/>!=<sp/>0;</highlight></codeline> <codeline lineno="528"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>((<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>&<sp/>0xffff)<sp/>+<sp/>2)<sp/>&<sp/>0xffff;</highlight></codeline> <codeline lineno="529"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="530"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="531"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>kprintf("popf<sp/>[0x%X]\n",_current->id);<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="532"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="533"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xFA:</highlight></codeline> <codeline lineno="534"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>=<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="535"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>&=<sp/>~<ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="536"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="537"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a50f6d9f964aa8bcd88c5ff3bf693cec2" kindref="member">timer</ref><sp/>=<sp/>0x1;</highlight></codeline> <codeline lineno="538"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="539"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xFB:</highlight></codeline> <codeline lineno="540"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>=<sp/><ref refid="include_2sys_2types_8h_1af6a258d8f3ee5206d682d799316314b1aa82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="541"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>|=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>;</highlight></codeline> <codeline lineno="542"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="543"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a50f6d9f964aa8bcd88c5ff3bf693cec2" kindref="member">timer</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="544"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>kprintf("sti<sp/>[0x%X]\n",_current->id);<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="545"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="546"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xCF:</highlight></codeline> <codeline lineno="547"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>stack[0];</highlight></codeline> <codeline lineno="548"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6d9085ec5af0fa1fe1de7015ad99c9e3" kindref="member">cs</ref><sp/>=<sp/>stack[1];</highlight></codeline> <codeline lineno="549"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1aa85f1fbaf622e0c6a39963da27de0194" kindref="member">eflags</ref><sp/>=<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref><sp/>|<sp/><ref refid="bioscall_8h_1ac853c10e3eb19188c6b3b8d3ff6914e2" kindref="member">EFLAG_VM</ref><sp/>|<sp/>stack[2];</highlight></codeline> <codeline lineno="550"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a0933c70230d4ac8bc9953640c979f8d7" kindref="member">oInfo</ref>.<ref refid="structosInfo_1a58c4ea3c7eed801f6ab84f701b5684f1" kindref="member">v86If</ref><sp/>=<sp/>(stack[2]<sp/>&<sp/><ref refid="bioscall_8h_1a9e06d707701fc3d835d8d0d366476d77" kindref="member">EFLAG_IF</ref>)<sp/>!=<sp/>0;</highlight></codeline> <codeline lineno="551"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>=<sp/>((<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a85412a87dbdb8eda612c77bce8055a2c" kindref="member">esp</ref><sp/>&<sp/>0xffff)<sp/>+<sp/>6)<sp/>&<sp/>0xffff;</highlight></codeline> <codeline lineno="552"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"iret<sp/>[0x%X]\n"</highlight><highlight class="normal">,<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="553"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="554"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xEC:<sp/></highlight><highlight class="comment">/*<sp/>IN<sp/>AL,DX<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="555"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6f6c9fdd54cd0da7f2331dc35f7d8fc7" kindref="member">eax</ref><sp/>=<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6f6c9fdd54cd0da7f2331dc35f7d8fc7" kindref="member">eax</ref><sp/>&<sp/>~0xFF)<sp/>|<sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a75825d1693047c99df1911b3af4d613f" kindref="member">edx</ref>);</highlight></codeline> <codeline lineno="556"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="557"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="558"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xED:<sp/></highlight><highlight class="comment">/*<sp/>IN<sp/>AX,DX<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="559"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6f6c9fdd54cd0da7f2331dc35f7d8fc7" kindref="member">eax</ref><sp/>=<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6f6c9fdd54cd0da7f2331dc35f7d8fc7" kindref="member">eax</ref><sp/>&<sp/>~0xFFFF)<sp/>|<sp/><ref refid="io_8h_1afb703b187feb4b92444454df6c3dd9e6" kindref="member">inportWord</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a75825d1693047c99df1911b3af4d613f" kindref="member">edx</ref>);</highlight></codeline> <codeline lineno="560"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="561"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="562"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xEE:<sp/></highlight><highlight class="comment">/*<sp/>OUT<sp/>DX,AL<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="563"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a75825d1693047c99df1911b3af4d613f" kindref="member">edx</ref>,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6f6c9fdd54cd0da7f2331dc35f7d8fc7" kindref="member">eax</ref><sp/>&<sp/>0xFF);</highlight></codeline> <codeline lineno="564"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="565"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="566"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xEF:</highlight></codeline> <codeline lineno="567"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1a243f6b6d22cc5948908b764d58efc2b0" kindref="member">outportWord</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a75825d1693047c99df1911b3af4d613f" kindref="member">edx</ref>,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a6f6c9fdd54cd0da7f2331dc35f7d8fc7" kindref="member">eax</ref>);</highlight></codeline> <codeline lineno="568"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="569"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="570"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0xF4:</highlight></codeline> <codeline lineno="571"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref>)<sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a4c8accd7c0d5bb5ce426dc982bfc8519" kindref="member">tss</ref>.<ref refid="structtssStruct_1a3e758f2138799d63fc803f7e4db4f5b4" kindref="member">eip</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="572"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="573"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:<sp/></highlight><highlight class="comment">/*<sp/>something<sp/>wrong<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="574"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"NonHandled<sp/>OpCode<sp/>[0x%X:0x%X]\n"</highlight><highlight class="normal">,<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>,<sp/>ip[0]);</highlight></codeline> <codeline lineno="575"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//_current->state<sp/>=<sp/>DEAD;</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="576"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="577"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="578"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"RET1"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="579"><highlight class="normal"><sp/><sp/><ref refid="8259_8h_1a0ac079c4d770f02e505f4d8569a6960a" kindref="member">irqEnable</ref>(0);</highlight></codeline> <codeline lineno="580"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="581"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"RET2"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="582"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>gpfEnter;</highlight></codeline> <codeline lineno="583"><highlight class="normal">}</highlight></codeline> <codeline lineno="584"><highlight class="normal"></highlight></codeline> <codeline lineno="585"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="586"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_gpf<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="587"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_gpf:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="588"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>cli<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="589"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x13<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="590"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="591"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="592"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="593"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="594"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="595"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="596"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__gpf<sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="597"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>add<sp/>$0x4,%esp<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="598"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>mov<sp/>%esp,%eax<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="599"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="600"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="601"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="602"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="603"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="604"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>sti<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="605"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Exit<sp/>interrupt<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="606"><highlight class="normal">);</highlight></codeline> <codeline lineno="607" refid="idt_8c_1a867bddfec4bbeb769465d958bcbda312" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="608"><highlight class="normal"></highlight></codeline> <codeline lineno="609"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a867bddfec4bbeb769465d958bcbda312" kindref="member">__floatingPoint</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="610"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"floating<sp/>point"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x10);</highlight></codeline> <codeline lineno="611"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="612"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="613"><highlight class="normal">}</highlight></codeline> <codeline lineno="614"><highlight class="normal"></highlight></codeline> <codeline lineno="615"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="616"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_floatingPoint<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="617"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_floatingPoint:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="618"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="619"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x10<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="620"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="621"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="622"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="623"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="624"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="625"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="626"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__floatingPoint<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="627"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="628"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="629"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="630"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="631"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="632"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="633" refid="idt_8c_1a8a3ea6df190181b987577b14c99c6f9b" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="634"><highlight class="normal"></highlight></codeline> <codeline lineno="635"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a8a3ea6df190181b987577b14c99c6f9b" kindref="member">__alignmentCheck</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="636"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"alignment<sp/>check"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x11);</highlight></codeline> <codeline lineno="637"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="638"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="639"><highlight class="normal">}</highlight></codeline> <codeline lineno="640"><highlight class="normal"></highlight></codeline> <codeline lineno="641"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="642"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_alignmentCheck<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="643"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_alignmentCheck:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="644"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x11<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="645"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="646"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="647"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="648"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="649"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="650"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="651"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__alignmentCheck<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="652"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="653"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="654"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="655"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="656"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="657"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="658" refid="idt_8c_1ac51d829134fa5beed7f8fb62e8c297b3" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="659"><highlight class="normal"></highlight></codeline> <codeline lineno="660"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ac51d829134fa5beed7f8fb62e8c297b3" kindref="member">__machineCheck</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="661"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"machine<sp/>check"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x12);</highlight></codeline> <codeline lineno="662"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="663"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="664"><highlight class="normal">}</highlight></codeline> <codeline lineno="665"><highlight class="normal"></highlight></codeline> <codeline lineno="666"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="667"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_machineCheck<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="668"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_machineCheck:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="669"><highlight class="normal"><sp/><sp/><sp/></highlight><highlight class="stringliteral">"<sp/>pushl<sp/>$0x0\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="670"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x12<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="671"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="672"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="673"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="674"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="675"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="676"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="677"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__machineCheck<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="678"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="679"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="680"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="681"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="682"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="683"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="684" refid="idt_8c_1a8ec618b934fbea05a071a13c8f338d7e" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="685"><highlight class="normal"></highlight></codeline> <codeline lineno="686"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a8ec618b934fbea05a071a13c8f338d7e" kindref="member">__simd</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="687"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"simd"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x13);</highlight></codeline> <codeline lineno="688"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="689"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="690"><highlight class="normal">}</highlight></codeline> <codeline lineno="691"><highlight class="normal"></highlight></codeline> <codeline lineno="692"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="693"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_simd<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="694"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_simd:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="695"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="696"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="697"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x13<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="698"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="699"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="700"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="701"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="702"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="703"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="704"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__simd<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="705"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="706"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="707"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="708"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="709"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="710"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="711" refid="idt_8c_1a848a9f54eb3ac3c0046824e1a0b97eb2" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="712"><highlight class="normal"></highlight></codeline> <codeline lineno="713"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a848a9f54eb3ac3c0046824e1a0b97eb2" kindref="member">__virtualization</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="714"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"virtualization"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x14);</highlight></codeline> <codeline lineno="715"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="716"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="717"><highlight class="normal">}</highlight></codeline> <codeline lineno="718"><highlight class="normal"></highlight></codeline> <codeline lineno="719"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="720"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_virtualization<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="721"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_virtualization:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="722"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x0<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="723"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x14<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="724"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="725"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="726"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="727"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="728"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="729"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="730"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__virtualization<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="731"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="732"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="733"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="734"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="735"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="736"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="737" refid="idt_8c_1ad3beb87208d6cbc992574f9e04f6f2be" refkind="member"><highlight class="normal">);</highlight></codeline> <codeline lineno="738"><highlight class="normal"></highlight></codeline> <codeline lineno="739"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1ad3beb87208d6cbc992574f9e04f6f2be" kindref="member">__security</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtrapframe" kindref="compound">trapframe</ref><sp/>*frame)<sp/>{</highlight></codeline> <codeline lineno="740"><highlight class="normal"><sp/><sp/><ref refid="trap_8c_1a62b4617f9a2800b1e9baf8d6f93835bd" kindref="member">die_if_kernel</ref>(</highlight><highlight class="stringliteral">"security<sp/>exception"</highlight><highlight class="normal">,<sp/>frame,<sp/>0x1E);</highlight></codeline> <codeline lineno="741"><highlight class="normal"><sp/><sp/><ref refid="endtask_8h_1a152c1859ada097cc21071f471bfa2e67" kindref="member">endTask</ref>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1a30966587a60db6b40c8be6c387e11d81" kindref="member">id</ref>);</highlight></codeline> <codeline lineno="742"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a08933fe6d593a1c78b9080359f15a0b7" kindref="member">sched_yield</ref>();</highlight></codeline> <codeline lineno="743"><highlight class="normal">}</highlight></codeline> <codeline lineno="744"><highlight class="normal"></highlight></codeline> <codeline lineno="745"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="746"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_security<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="747"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_security:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="748"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>$0x1E<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="749"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushal<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="750"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="751"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="752"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="753"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="754"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%esp<sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="755"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>__security\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="756"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="757"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="758"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="759"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="760"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="761"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="762"><highlight class="normal">);</highlight></codeline> <codeline lineno="763" refid="idt_8c_1a6423394f8797bc3cf7ec6a079b8d593f" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="764"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Removed<sp/>static<sp/>however<sp/>this<sp/>is<sp/>the<sp/>only<sp/>place<sp/>it's<sp/>called<sp/>from<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="765"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="idt_8c_1a6423394f8797bc3cf7ec6a079b8d593f" kindref="member">mathStateRestore</ref>()<sp/>{</highlight></codeline> <codeline lineno="766"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="armv6_2sched_8c_1a93c7d4c40424b17a73f34f6fd89b2804" kindref="member">_usedMath</ref><sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="767"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="768"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"fnsave<sp/>%0"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="769"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:</highlight></codeline> <codeline lineno="770"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/></highlight><highlight class="stringliteral">"m"</highlight><highlight class="normal"><sp/>(<ref refid="armv6_2sched_8c_1a93c7d4c40424b17a73f34f6fd89b2804" kindref="member">_usedMath</ref>-><ref refid="structtaskStruct_1add14a764ee7ba0830bd837b54a8cb003" kindref="member">i387</ref>)</highlight></codeline> <codeline lineno="771"><highlight class="normal"><sp/><sp/><sp/><sp/>);</highlight></codeline> <codeline lineno="772"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="773"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1afe3af11009b07961be7296b360827669" kindref="member">usedMath</ref><sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="774"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="775"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">"frstor<sp/>%0"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="776"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:</highlight></codeline> <codeline lineno="777"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>:<sp/></highlight><highlight class="stringliteral">"m"</highlight><highlight class="normal"><sp/>(<ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1add14a764ee7ba0830bd837b54a8cb003" kindref="member">i387</ref>)</highlight></codeline> <codeline lineno="778"><highlight class="normal"><sp/><sp/><sp/><sp/>);</highlight></codeline> <codeline lineno="779"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="780"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="781"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight><highlight class="stringliteral">"fninit"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="782"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>-><ref refid="structtaskStruct_1afe3af11009b07961be7296b360827669" kindref="member">usedMath</ref><sp/>=<sp/>0x1;</highlight></codeline> <codeline lineno="783"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="784"><highlight class="normal"></highlight></codeline> <codeline lineno="785"><highlight class="normal"><sp/><sp/><ref refid="armv6_2sched_8c_1a93c7d4c40424b17a73f34f6fd89b2804" kindref="member">_usedMath</ref><sp/>=<sp/><ref refid="armv6_2sched_8c_1a54397bfe18d5da4d50ff03b15f540858" kindref="member">_current</ref>;</highlight></codeline> <codeline lineno="786"><highlight class="normal"></highlight></codeline> <codeline lineno="787"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//Return</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="788"><highlight class="normal">}</highlight></codeline> <codeline lineno="789"><highlight class="normal"></highlight></codeline> <codeline lineno="790"><highlight class="normal"></highlight></codeline> <codeline lineno="791"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="792"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>_int7<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="793"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"_int7:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="794"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pushl<sp/>%eax<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="795"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>clts<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="796"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>movl<sp/>_current,%eax<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="797"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>cmpl<sp/>_usedMath,%eax<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="798"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>je<sp/>mathDone<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="799"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>mathStateRestore<sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="800"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"mathDone:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="801"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popl<sp/>%eax<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="802"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="803"><highlight class="normal">);</highlight></codeline> </programlisting> <location file="C:/Dev/git/UbixOS/sys/sys/idt.c"/> </compounddef> </doxygen>