FPU: fix field names, compiler warning, long lines

This commit is contained in:
David van Moolenbroek
2009-12-02 23:12:46 +00:00
parent 38fecc5de1
commit fe982ca684
7 changed files with 28 additions and 19 deletions

View File

@@ -159,17 +159,19 @@ PUBLIC void arch_init(void)
osfxsr_feature = 1;
for (rp = BEG_PROC_ADDR; rp < END_PROC_ADDR; ++rp) {
/* FXSR requires 16-byte alignment of memory image,
* but unfortunately some old tools (probably linker)
* ignores ".balign 16" applied to our memory image.
/* FXSR requires 16-byte alignment of memory
* image, but unfortunately some old tools
* (probably linker) ignores ".balign 16"
* applied to our memory image.
* Thus we have to do manual alignment.
*/
aligned_fp_area = (phys_bytes) &rp->fpu_state.fpu_image;
aligned_fp_area =
(phys_bytes) &rp->p_fpu_state.fpu_image;
if(aligned_fp_area % FPUALIGN) {
aligned_fp_area += FPUALIGN -
(aligned_fp_area % FPUALIGN);
}
rp->fpu_state.fpu_save_area_p =
rp->p_fpu_state.fpu_save_area_p =
(void *) aligned_fp_area;
}
} else {