Skip to content

Commit f3f65c8

Browse files
committed
chore: update boot-protocol.md with new MSR_MTRRdefType
Add MSR_MTRRdefType to the list Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent dd12568 commit f3f65c8

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/cpu_templates/boot-protocol.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ See also: [CPUID normalization](cpuid-normalization.md)
1010

1111
## Boot protocol MSRs (x86_64 only)
1212

13-
On x86_64, the following MSRs are set to `0`:
14-
15-
- MSR_IA32_SYSENTER_CS
16-
- MSR_IA32_SYSENTER_ESP
17-
- MSR_IA32_SYSENTER_EIP
18-
- MSR_STAR
19-
- MSR_CSTAR
20-
- MSR_KERNEL_GS_BASE
21-
- MSR_SYSCALL_MASK
22-
- MSR_LSTAR
23-
- MSR_IA32_TSC
24-
25-
and MSR_IA32_MISC_ENABLE is set to `1`.
13+
On x86_64, the following MSRs are set before boot:
14+
- MSR_IA32_SYSENTER_CS: 0x0
15+
- MSR_IA32_SYSENTER_ESP: 0x0
16+
- MSR_IA32_SYSENTER_EIP: 0x0
17+
- MSR_STAR: 0x0
18+
- MSR_CSTAR: 0x0
19+
- MSR_KERNEL_GS_BASE: 0x0
20+
- MSR_SYSCALL_MASK: 0x0
21+
- MSR_LSTAR: 0x0
22+
- MSR_IA32_TSC: 0x0
23+
- MSR_IA32_MISC_ENABLE: 0x1
24+
- MSR_MTRRdefType: 0x806 (enable MTRR and set default memory type to `write-back` (value 6))
2625

2726
## Boot protocol ARM registers (aarch64 only)
2827

0 commit comments

Comments
 (0)