Changes in kernel/arch/ia32/src/asm.S [d6f9fff:8844e70] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/asm.S
rd6f9fff r8844e70 183 183 184 184 /* 185 * Save TLS. 186 */ 187 movl %gs, %edx 188 movl %edx, ISTATE_OFFSET_GS(%esp) 189 190 /* 185 191 * Switch to kernel selectors. 186 192 */ 187 movl $(GDT_SELECTOR(KDATA_DES)), %eax 188 movl %eax, %ds 189 movl %eax, %es 190 movl $(GDT_SELECTOR(VREG_DES)), %eax 191 movl %eax, %gs 193 movw $(GDT_SELECTOR(KDATA_DES)), %ax 194 movw %ax, %ds 195 movw %ax, %es 192 196 193 197 /* … … 209 213 210 214 /* 215 * Restore TLS. 216 */ 217 movl ISTATE_OFFSET_GS(%esp), %edx 218 movl %edx, %gs 219 220 /* 211 221 * Prepare return address and userspace stack for SYSEXIT. 212 222 */ … … 242 252 243 253 /* 244 * Save the se gmentregisters.254 * Save the selector registers. 245 255 */ 246 256 movl %gs, %ecx … … 262 272 movl %eax, %ds 263 273 movl %eax, %es 264 movl $(GDT_SELECTOR(VREG_DES)), %eax265 movl %eax, %gs266 274 267 275 movl $0, ISTATE_OFFSET_EBP_FRAME(%esp) … … 276 284 277 285 /* 278 * Restore the se gmentregisters.286 * Restore the selector registers. 279 287 */ 280 288 movl ISTATE_OFFSET_GS(%esp), %ecx … … 346 354 347 355 /* 348 * Save the se gmentregisters.356 * Save the selector registers. 349 357 */ 350 358 movl %gs, %ecx … … 366 374 movl %eax, %ds 367 375 movl %eax, %es 368 movl $(GDT_SELECTOR(VREG_DES)), %eax369 movl %eax, %gs370 376 371 377 /*
Note:
See TracChangeset
for help on using the changeset viewer.