/SPARTAN/trunk/arch/ia32/src/smp/mps.c |
---|
312,7 → 312,7 |
{ |
#ifdef MPSCT_VERBOSE |
char buf[7]; |
memcopy((void *) buf, (void *) bus->bus_type, 6); |
memcpy((void *) buf, (void *) bus->bus_type, 6); |
buf[6] = 0; |
printf("bus%d: %s\n", bus->bus_id, buf); |
#endif |
/SPARTAN/trunk/arch/ia32/src/smp/smp.c |
---|
139,7 → 139,7 |
if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor)))) |
panic("couldn't allocate memory for GDT\n"); |
memcopy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); // swaped |
memcpy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); |
memsetb((__address)(&gdt_new[TSS_DES]), sizeof(struct descriptor), 0); |
gdtr.base = KA2PA((__address) gdt_new); |