Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 821 → Rev 822

/kernel/trunk/arch/ia32/src/pm.c
190,7 → 190,7
tss_p = &tss;
}
else {
tss_p = (struct tss *) malloc(sizeof(struct tss));
tss_p = (struct tss *) malloc(sizeof(struct tss),FRAME_ATOMIC);
if (!tss_p)
panic("could not allocate TSS\n");
}
/kernel/trunk/arch/ia32/src/smp/smp.c
138,7 → 138,7
/*
* Prepare new GDT for CPU in question.
*/
if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor))))
if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor), FRAME_ATOMIC)))
panic("couldn't allocate memory for GDT\n");
 
memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor));
/kernel/trunk/arch/ia32/src/mm/frame.c
131,5 → 131,7
frame_mark_unavailable(0xd000 >> FRAME_WIDTH,3);
#endif
#endif
/* Merge all zones to 1 big zone */
zone_merge_all();
}
}