Changes in kernel/arch/ia32/src/pm.c [44a7ee5:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/pm.c
r44a7ee5 ra35b458 269 269 gdtr_load(&gdtr); 270 270 idtr_load(&idtr); 271 271 272 272 /* 273 273 * Each CPU has its private GDT and TSS. … … 289 289 290 290 tss_initialize(tss_p); 291 291 292 292 gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL; 293 293 gdt_p[TSS_DES].special = 1; 294 294 gdt_p[TSS_DES].granularity = 0; 295 295 296 296 gdt_setbase(&gdt_p[TSS_DES], (uintptr_t) tss_p); 297 297 gdt_setlimit(&gdt_p[TSS_DES], TSS_BASIC_SIZE - 1); … … 302 302 */ 303 303 tr_load(GDT_SELECTOR(TSS_DES)); 304 304 305 305 /* Disable I/O on nonprivileged levels and clear NT flag. */ 306 306 write_eflags(read_eflags() & ~(EFLAGS_IOPL | EFLAGS_NT));
Note:
See TracChangeset
for help on using the changeset viewer.