Subversion Repositories HelenOS

Rev

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

Rev 271 Rev 279
Line 68... Line 68...
68
static struct tss tss;
68
static struct tss tss;
69
 
69
 
70
struct tss *tss_p = NULL;
70
struct tss *tss_p = NULL;
71
 
71
 
72
/* gdtr is changed by kmp before next CPU is initialized */
72
/* gdtr is changed by kmp before next CPU is initialized */
73
struct ptr_16_32 bsp_bootstrap_gdtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt - BOOT_OFFSET) };
73
struct ptr_16_32 real_bootstrap_gdtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt - BOOT_OFFSET) };
74
struct ptr_16_32 ap_bootstrap_gdtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt) };
74
struct ptr_16_32 protected_bootstrap_gdtr = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt) };
75
struct ptr_16_32 gdtr = { .limit = sizeof(gdt), .base = (__address) gdt };
75
struct ptr_16_32 gdtr = { .limit = sizeof(gdt), .base = (__address) gdt };
76
 
76
 
77
void gdt_setbase(struct descriptor *d, __address base)
77
void gdt_setbase(struct descriptor *d, __address base)
78
{
78
{
79
    d->base_0_15 = base & 0xffff;
79
    d->base_0_15 = base & 0xffff;