Rev 34 | Rev 72 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 34 | Rev 68 | ||
---|---|---|---|
Line 467... | Line 467... | ||
467 | 467 | ||
468 | /* |
468 | /* |
469 | * Prepare new GDT for CPU in question. |
469 | * Prepare new GDT for CPU in question. |
470 | */ |
470 | */ |
471 | if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor)))) |
471 | if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor)))) |
472 | panic(PANIC "couldn't allocate memory for GDT\n"); |
472 | panic("couldn't allocate memory for GDT\n"); |
473 | 473 | ||
474 | memcopy(gdt, gdt_new, GDT_ITEMS*sizeof(struct descriptor)); |
474 | memcopy(gdt, gdt_new, GDT_ITEMS*sizeof(struct descriptor)); |
475 | gdtr.base = (__address) gdt_new; |
475 | gdtr.base = (__address) gdt_new; |
476 | 476 | ||
477 | if (l_apic_send_init_ipi(pr[i].l_apic_id)) { |
477 | if (l_apic_send_init_ipi(pr[i].l_apic_id)) { |