Rev 22 | Rev 73 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 22 | Rev 68 | ||
---|---|---|---|
Line 141... | Line 141... | ||
141 | tss_p = &tss; |
141 | tss_p = &tss; |
142 | } |
142 | } |
143 | else { |
143 | else { |
144 | tss_p = (struct tss *) malloc(sizeof(struct tss)); |
144 | tss_p = (struct tss *) malloc(sizeof(struct tss)); |
145 | if (!tss_p) |
145 | if (!tss_p) |
146 | panic(PANIC "could not allocate TSS\n"); |
146 | panic("could not allocate TSS\n"); |
147 | } |
147 | } |
148 | 148 | ||
149 | tss_initialize(tss_p); |
149 | tss_initialize(tss_p); |
150 | 150 | ||
151 | gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL; |
151 | gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL; |