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