Skip to content

Commit

Permalink
msr: init and fin
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <[email protected]>
  • Loading branch information
smallkirby committed Nov 11, 2024
1 parent 4a5bbd7 commit f3b3b78
Show file tree
Hide file tree
Showing 5 changed files with 509 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
- [EPT](vmm/ept.md)
- [Linux Boot Protocol](vmm/linux_boot.md)
- [CPUID](vmm/cpuid.md)
- [MSR](vmm/msr.md)

[謝辞](acknowledgement.md)
[ライセンス](license.md)
Binary file added src/assets/sdm/msr_entry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/vmm/cpuid.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ Ymir では Subleaf 0 のみ呼び出しを許可(実際には未実装)し、
},
```

### 0x8000_0000: Extended Function CPUID Information
### 0x8000_0000: Extended Function Maximum Input

![Information Returned by CPUID Instruction: Leaf 0x8000_0000](../assets/sdm/cpuid_80000000.png)
*Information Returned by CPUID Instruction: Leaf 0x8000_0000. SDM Vol.2A Table 3-17.*
Expand Down
2 changes: 1 addition & 1 deletion src/vmm/linux_boot.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Setup Headers は `bzImage` の先頭から `0x1F1` バイトのオフセット

`getProtectedCodeOffset()` はカーネルの Protected Mode Code が配置されているオフセットを返します。
カーネルの Realmode Code はブートセクタ (1セクタ) と Setup Code (`setup_sects` セクタ) から成ります。
Protected Mode のコードは Realmode Code の直後に配置されるため、`bzImage` の先頭から `1 + setup_sects` セクタの位置に Realmode Code が配置されていることになります
Protected Mode のコードは Realmode Code の直後に配置されるため、`bzImage` の先頭から `1 + setup_sects` セクタの位置に配置されていることになります
このオフセットは後でカーネルをロードする際に使います。

### E820 Map
Expand Down
Loading

0 comments on commit f3b3b78

Please sign in to comment.