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

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

11

R
rain 已提交
12
`0.385s-boot`:  
R
rain 已提交
13
    rebuild `boot` and `loader`.  
R
rain 已提交
14

15

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

20

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

24

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

28

29
`0.466s-boot`:  
R
rain 已提交
30
    rebuild `boot`
彭睿扬 已提交
31
    
32

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

38 39

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

42

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

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

R
rain 已提交
49
`0.619s-boot`: 
R
rain 已提交
50
    load 180KB of disk, not 4KB
51