Rev 3153 | Rev 4346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3153 | Rev 4339 | ||
---|---|---|---|
Line 207... | Line 207... | ||
207 | * ahead of page_init */ |
207 | * ahead of page_init */ |
208 | write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); |
208 | write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); |
209 | 209 | ||
210 | tss_p = (struct tss *) malloc(sizeof(tss_t), FRAME_ATOMIC); |
210 | tss_p = (struct tss *) malloc(sizeof(tss_t), FRAME_ATOMIC); |
211 | if (!tss_p) |
211 | if (!tss_p) |
212 | panic("could not allocate TSS\n"); |
212 | panic("Cannot allocate TSS."); |
213 | } |
213 | } |
214 | 214 | ||
215 | tss_initialize(tss_p); |
215 | tss_initialize(tss_p); |
216 | 216 | ||
217 | tss_desc = (tss_descriptor_t *) (&gdt_p[TSS_DES]); |
217 | tss_desc = (tss_descriptor_t *) (&gdt_p[TSS_DES]); |