README.md 1.7 KB
Newer Older
R
rain 已提交
1 2 3
Cunix kernel
============

4
# Versions
R
rain 已提交
5
`0.362s-boot`:  
R
rain 已提交
6 7 8 9
&nbsp;&nbsp;&nbsp;&nbsp;`Boot` read `loader` from `boot-device`, then it jumps to it. <br/>
&nbsp;&nbsp;&nbsp;&nbsp;Loader doesn't load anything, it just enable long-mode and paging. <br/> 
&nbsp;&nbsp;&nbsp;&nbsp;Loader defines temporary page table at `0x70000` (0x0000:0x7000), <br/>
&nbsp;&nbsp;&nbsp;&nbsp;it uses `2MB` page to make 0-12 MB memory to `0x0000 - 0xc0000`. <br/>
R
rain 已提交
10

11

R
rain 已提交
12 13
`0.385s-boot`: 
&nbsp;&nbsp;&nbsp;&nbsp;rebuild `boot` and `loader`. <br/>
R
rain 已提交
14

15

R
rain 已提交
16
`0.391s-boot`:  
R
rain 已提交
17 18
&nbsp;&nbsp;&nbsp;&nbsp;`loader` forgot open A20 line, so `0.385` and `0.362` just can <br/>
&nbsp;&nbsp;&nbsp;&nbsp;use 1MB memory like real-mode. <br/>
R
rain 已提交
19

20

R
rain 已提交
21
`0.432s-boot`:  
R
rain 已提交
22
&nbsp;&nbsp;&nbsp;&nbsp;make directory `include/`, and add segment.inc, but it doesn't work. :-)  <br/>
R
rain 已提交
23

24

R
rain 已提交
25
`0.451s-boot`:  
R
rain 已提交
26
&nbsp;&nbsp;&nbsp;&nbsp;`boot` can load 8 sectors (4KB) of loader (not 1 sector).  <br/>
27

28

29
`0.466s-boot`:  
R
rain 已提交
30
&nbsp;&nbsp;&nbsp;&nbsp;rebuild `boot` <br/>
彭睿扬 已提交
31
    
32

33
`0.487s-boot`:  
R
rain 已提交
34 35 36
&nbsp;&nbsp;&nbsp;&nbsp;`loader` let FS can access 4GB memory in real-mode. because <br/>
&nbsp;&nbsp;&nbsp;&nbsp;`loader` loaded GDT and load a data-segment to fs, then disable <br/>
&nbsp;&nbsp;&nbsp;&nbsp;protect-mode. <br/>
37

38 39

`0.484s-boot`:
R
rain 已提交
40
&nbsp;&nbsp;&nbsp;&nbsp;let `readdisk.inc` smaller, but we just can use CHS or LBA, not both. <br/>
41

42

43
`0.509s-kernel`: 
R
rain 已提交
44
&nbsp;&nbsp;&nbsp;&nbsp;load kernel to 0x8200-0x9200 for 4KB, kernel.asm display 'K' to screen. <br/>
45

R
rain 已提交
46
`0.556s-int`: 
R
rain 已提交
47
&nbsp;&nbsp;&nbsp;&nbsp;init IDT at 0x0000-0x1000, and set all handler at `ignore_int`, but it do nothing. <br/>
48

R
rain 已提交
49
`0.619s-boot`: 
R
rain 已提交
50
&nbsp;&nbsp;&nbsp;&nbsp;load 180KB of disk, not 4KB <br/>
51

R
rain 已提交
52 53
`0.540s-kernel`:
&nbsp;&nbsp;&nbsp;&nbsp;write in C. <br/>