Subversion Repositories HelenOS

Rev

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

Rev 332 Rev 406
Line 114... Line 114...
114
struct ptr_16_64 idtr = {.limit = sizeof(idt), .base= (__u64) idt };
114
struct ptr_16_64 idtr = {.limit = sizeof(idt), .base= (__u64) idt };
115
 
115
 
116
static struct tss tss;
116
static struct tss tss;
117
struct tss *tss_p = NULL;
117
struct tss *tss_p = NULL;
118
 
118
 
119
/* TODO: Does not compile correctly if it does not exist ???? */
-
 
120
int __attribute__ ((section ("K_DATA_START"))) __fake;
-
 
121
 
-
 
122
void gdt_tss_setbase(struct descriptor *d, __address base)
119
void gdt_tss_setbase(struct descriptor *d, __address base)
123
{
120
{
124
    struct tss_descriptor *td = (struct tss_descriptor *) d;
121
    struct tss_descriptor *td = (struct tss_descriptor *) d;
125
 
122
 
126
    td->base_0_15 = base & 0xffff;
123
    td->base_0_15 = base & 0xffff;