Subversion Repositories HelenOS

Rev

Rev 3104 | Rev 4016 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3104 Rev 3790
Line 196... Line 196...
196
        tss_p = &tss;
196
        tss_p = &tss;
197
    }
197
    }
198
    else {
198
    else {
199
        tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC);
199
        tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC);
200
        if (!tss_p)
200
        if (!tss_p)
201
            panic("could not allocate TSS\n");
201
            panic("Cannot allocate TSS.");
202
    }
202
    }
203
 
203
 
204
    tss_initialize(tss_p);
204
    tss_initialize(tss_p);
205
   
205
   
206
    gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL;
206
    gdt_p[TSS_DES].access = AR_PRESENT | AR_TSS | DPL_KERNEL;