mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-30 17:26:31 +00:00
1b75d91002
Add arg to SATARep to specify drive types to show. Add checks in AHCIPortInit to verify port signatures, add helper method to get signatures from port.
88 lines
10 KiB
HTML
Executable file
88 lines
10 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V0.13">
|
|
<style type="text/css">
|
|
body {background-color:#fef1f0;}
|
|
.cF0{color:#000000;background-color:#fef1f0;}
|
|
.cF1{color:#0148a4;background-color:#fef1f0;}
|
|
.cF2{color:#3b7901;background-color:#fef1f0;}
|
|
.cF3{color:#057c7e;background-color:#fef1f0;}
|
|
.cF4{color:#bb2020;background-color:#fef1f0;}
|
|
.cF5{color:#9e42ae;background-color:#fef1f0;}
|
|
.cF6{color:#b57901;background-color:#fef1f0;}
|
|
.cF7{color:#b2b6af;background-color:#fef1f0;}
|
|
.cF8{color:#555753;background-color:#fef1f0;}
|
|
.cF9{color:#678fbb;background-color:#fef1f0;}
|
|
.cFA{color:#82bc49;background-color:#fef1f0;}
|
|
.cFB{color:#0097a2;background-color:#fef1f0;}
|
|
.cFC{color:#e26a6a;background-color:#fef1f0;}
|
|
.cFD{color:#c671bc;background-color:#fef1f0;}
|
|
.cFE{color:#c7ab00;background-color:#fef1f0;}
|
|
.cFF{color:#fef1f0;background-color:#fef1f0;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"Call"</span><span class=cF0>
|
|
<a name="l2"></a></span><span class=cF1>asm</span><span class=cF0> {
|
|
<a name="l3"></a></span><span class=cFD>_HI_CALL</span><span class=cF0>::
|
|
<a name="l4"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>
|
|
<a name="l5"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>, </span><span class=cFC>RSP</span><span class=cF0>
|
|
<a name="l6"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>, </span><span class=cF9>U64</span><span class=cF0> </span><span class=cFE>16</span><span class=cF0>[</span><span class=cFC>RBP</span><span class=cF0>]
|
|
<a name="l7"></a> </span><span class=cF1>TEST</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>, </span><span class=cFC>RAX</span><span class=cF0>
|
|
<a name="l8"></a> </span><span class=cF1>JZ</span><span class=cF0> @@05
|
|
<a name="l9"></a> </span><span class=cF1>CALL</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>
|
|
<a name="l10"></a>@@05: </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>
|
|
<a name="l11"></a> </span><span class=cF1>RET1</span><span class=cF0> </span><span class=cFE>8</span><span class=cF0>
|
|
<a name="l12"></a></span><span class=cF2>//************************************</span><span class=cF0>
|
|
<a name="l13"></a></span><span class=cFD>_HI_MEMCOPY</span><span class=cF0>::
|
|
<a name="l14"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>
|
|
<a name="l15"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>, </span><span class=cFC>RSP</span><span class=cF0>
|
|
<a name="l16"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cFC>RSI</span><span class=cF0>
|
|
<a name="l17"></a> </span><span class=cF1>PUSH</span><span class=cF0> </span><span class=cFC>RDI</span><span class=cF0>
|
|
<a name="l18"></a> </span><span class=cF1>CLD</span><span class=cF0>
|
|
<a name="l19"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RDI</span><span class=cF0>, </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF3>SF_ARG1</span><span class=cF0>[</span><span class=cFC>RBP</span><span class=cF0>]
|
|
<a name="l20"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RSI</span><span class=cF0>, </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF3>SF_ARG2</span><span class=cF0>[</span><span class=cFC>RBP</span><span class=cF0>]
|
|
<a name="l21"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RCX</span><span class=cF0>, </span><span class=cF9>U64</span><span class=cF0> </span><span class=cF3>SF_ARG3</span><span class=cF0>[</span><span class=cFC>RBP</span><span class=cF0>]
|
|
<a name="l22"></a> </span><span class=cF1>REP_MOVSB</span><span class=cF0>
|
|
<a name="l23"></a> </span><span class=cF1>MOV</span><span class=cF0> </span><span class=cFC>RAX</span><span class=cF0>, </span><span class=cFC>RDI</span><span class=cF0>
|
|
<a name="l24"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>RDI</span><span class=cF0>
|
|
<a name="l25"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>RSI</span><span class=cF0>
|
|
<a name="l26"></a> </span><span class=cF1>POP</span><span class=cF0> </span><span class=cFC>RBP</span><span class=cF0>
|
|
<a name="l27"></a> </span><span class=cF1>RET1</span><span class=cF0> </span><span class=cFE>24</span><span class=cF0>
|
|
<a name="l28"></a>}
|
|
<a name="l29"></a></span><span class=cF1>_extern</span><span class=cF0> </span><span class=cFD>_HI_CALL</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>HiCall</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *machine_code);
|
|
<a name="l30"></a></span><span class=cF1>_extern</span><span class=cF0> </span><span class=cFD>_HI_MEMCOPY</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>HiMemCopy</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *dst, </span><span class=cF1>U8</span><span class=cF0> *src, </span><span class=cF9>I64</span><span class=cF0> count);
|
|
<a name="l31"></a>
|
|
<a name="l32"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"Boot"</span><span class=cF0>
|
|
<a name="l33"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>BootRAM</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *filename=</span><span class=cF6>"::"</span><span class=cF0> </span><span class=cF3>BOOT_DIR_KERNEL_BIN_C</span><span class=cF0>)
|
|
<a name="l34"></a>{</span><span class=cF2>//Softboot Kernel.BIN file. No hardware reset.</span><span class=cF0>
|
|
<a name="l35"></a> </span><span class=cF9>I64</span><span class=cF0> size;
|
|
<a name="l36"></a> </span><span class=cF9>CKernel</span><span class=cF0> *hi_image, *lo_image = </span><span class=cFB>mem_boot_base</span><span class=cF0> - </span><span class=cF1>sizeof</span><span class=cF0>(</span><span class=cF9>CBinFile</span><span class=cF0>), </span><span class=cF1>reg</span><span class=cF0> *sys_ram_reboot;
|
|
<a name="l37"></a> </span><span class=cF1>do</span><span class=cF0>
|
|
<a name="l38"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>hi_image = </span><span class=cF5>FileRead</span><span class=cF0>(filename, &size)</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l39"></a> </span><span class=cF1>return</span><span class=cF0>;
|
|
<a name="l40"></a> </span><span class=cF1>while</span><span class=cF0> (hi_image < </span><span class=cFE>0x100000</span><span class=cF0>); </span><span class=cF2>//If alloc from low 640K, just get another copy.</span><span class=cF0>
|
|
<a name="l41"></a>
|
|
<a name="l42"></a> </span><span class=cF1>do</span><span class=cF0>
|
|
<a name="l43"></a> sys_ram_reboot = </span><span class=cF5>MAlloc</span><span class=cF0>(</span><span class=cFD>SYS_RAM_REBOOT_END</span><span class=cF0> - </span><span class=cFD>SYS_RAM_REBOOT</span><span class=cF0>, </span><span class=cF5>Fs</span><span class=cF0>->code_heap);
|
|
<a name="l44"></a> </span><span class=cF1>while</span><span class=cF0> (sys_ram_reboot < </span><span class=cFE>0x100000</span><span class=cF0>);
|
|
<a name="l45"></a>
|
|
<a name="l46"></a> hi_image->boot_src = </span><span class=cF3>BOOT_SRC_RAM</span><span class=cF0>;
|
|
<a name="l47"></a> hi_image->boot_blk = </span><span class=cFE>0</span><span class=cF0>;
|
|
<a name="l48"></a> hi_image->boot_patch_table_base = lo_image(</span><span class=cF1>U8</span><span class=cF0> *) + hi_image->h.patch_table_offset;
|
|
<a name="l49"></a> hi_image-></span><span class=cFB>sys_run_level</span><span class=cF0> = lo_image-></span><span class=cFB>sys_run_level</span><span class=cF0> & (</span><span class=cF3>RLF_VESA</span><span class=cF0> | </span><span class=cF3>RLF_16BIT</span><span class=cF0>);
|
|
<a name="l50"></a> </span><span class=cF5>MemCopy</span><span class=cF0>(&hi_image-></span><span class=cF1>start</span><span class=cF0>, &lo_image-></span><span class=cF1>start</span><span class=cF0>, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CKernel</span><span class=cF7>)</span><span class=cF0> - </span><span class=cF1>offset</span><span class=cF7>(</span><span class=cF9>CKernel</span><span class=cF0>.</span><span class=cF1>start</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l51"></a>
|
|
<a name="l52"></a> </span><span class=cF1>CLI</span><span class=cF0>
|
|
<a name="l53"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>mp_count</span><span class=cF0> > </span><span class=cFE>1</span><span class=cF0>)
|
|
<a name="l54"></a> </span><span class=cF5>MPHalt</span><span class=cF0>;
|
|
<a name="l55"></a>
|
|
<a name="l56"></a> </span><span class=cF5>HiMemCopy</span><span class=cF0>(sys_ram_reboot, </span><span class=cFD>SYS_RAM_REBOOT</span><span class=cF0>, </span><span class=cFD>SYS_RAM_REBOOT_END</span><span class=cF0> - </span><span class=cFD>SYS_RAM_REBOOT</span><span class=cF0>);
|
|
<a name="l57"></a> </span><span class=cF5>HiMemCopy</span><span class=cF0>(lo_image, hi_image, size);
|
|
<a name="l58"></a> </span><span class=cF5>HiCall</span><span class=cF0>(sys_ram_reboot);
|
|
<a name="l59"></a>}
|
|
</span></pre></body>
|
|
</html>
|