Changeset 9161 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 27, 2008 1:56:46 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31299
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0A.asm
r9046 r9161 107 107 mov %2, ds 108 108 push %1 109 110 ; Special case for FS; Windows and Linux either don't use it or restore it when leaving kernel mode, Solaris OTOH doesn't and we must save it. 111 push rcx 112 mov ecx, MSR_K8_FS_BASE 113 rdmsr 114 pop rcx 115 push rdx 116 push rax 109 117 push fs 118 110 119 ; Special case for GS; OSes typically use swapgs to reset the hidden base register for GS on entry into the kernel. The same happens on exit 111 120 push rcx … … 127 136 wrmsr 128 137 pop rcx 138 139 pop fs 140 pop rax 141 pop rdx 142 push rcx 143 mov ecx, MSR_K8_FS_BASE 144 wrmsr 145 pop rcx 129 146 ; Now it's safe to step again 130 147 131 pop fs132 148 pop %1 133 149 mov ds, %2
Note:
See TracChangeset
for help on using the changeset viewer.