Rev 3104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3104 | Rev 3790 | ||
---|---|---|---|
Line 166... | Line 166... | ||
166 | */ |
166 | */ |
167 | tss_p = &tss; |
167 | tss_p = &tss; |
168 | } else { |
168 | } else { |
169 | tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC); |
169 | tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC); |
170 | if (!tss_p) |
170 | if (!tss_p) |
171 | panic("could not allocate TSS\n"); |
171 | panic("Cannot allocate TSS."); |
172 | } |
172 | } |
173 | 173 | ||
174 | // tss_initialize(tss_p); |
174 | // tss_initialize(tss_p); |
175 | 175 | ||
176 | gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL; |
176 | gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL; |