Commit 36a3528c authored by David Mosberger's avatar David Mosberger

ia64: Some formatting cleanups.

parent 58ab0016
...@@ -233,11 +233,11 @@ save_ia32_fpstate_live (struct _fpstate_ia32 *save) ...@@ -233,11 +233,11 @@ save_ia32_fpstate_live (struct _fpstate_ia32 *save)
asm volatile ( "mov %0=ar.fir;" : "=r"(fir)); asm volatile ( "mov %0=ar.fir;" : "=r"(fir));
asm volatile ( "mov %0=ar.fdr;" : "=r"(fdr)); asm volatile ( "mov %0=ar.fdr;" : "=r"(fdr));
/* /*
* We need to clear the exception state before calling the signal * We need to clear the exception state before calling the signal handler. Clear
* handler. Clear the bits 15, bits 0-7 in fp status word. Similar * the bits 15, bits 0-7 in fp status word. Similar to the functionality of fnclex
* to the functionality of fnclex instruction. * instruction.
*/ */
new_fsr = fsr & (~0x80ff) ; new_fsr = fsr & ~0x80ff;
asm volatile ( "mov ar.fsr=%0;" :: "r"(new_fsr)); asm volatile ( "mov ar.fsr=%0;" :: "r"(new_fsr));
__put_user(fcr & 0xffff, &save->cw); __put_user(fcr & 0xffff, &save->cw);
...@@ -258,9 +258,9 @@ save_ia32_fpstate_live (struct _fpstate_ia32 *save) ...@@ -258,9 +258,9 @@ save_ia32_fpstate_live (struct _fpstate_ia32 *save)
* save f10..f15 from live register set * save f10..f15 from live register set
*/ */
/* /*
* Find the location where f8 has to go in fp reg stack * Find the location where f8 has to go in fp reg stack. This depends on
* This depends on TOP(11:13) field of sw. Other f reg continue * TOP(11:13) field of sw. Other f reg continue sequentially from where f8 maps
* sequentially from where f8 maps to. * to.
*/ */
fp_tos = (fsr>>11)&0x7; fp_tos = (fsr>>11)&0x7;
fr8_st_map = (8-fp_tos)&0x7; fr8_st_map = (8-fp_tos)&0x7;
...@@ -368,9 +368,9 @@ restore_ia32_fpstate_live (struct _fpstate_ia32 *save) ...@@ -368,9 +368,9 @@ restore_ia32_fpstate_live (struct _fpstate_ia32 *save)
* restore f10..f15 onto live registers * restore f10..f15 onto live registers
*/ */
/* /*
* Find the location where f8 has to go in fp reg stack * Find the location where f8 has to go in fp reg stack. This depends on
* This depends on TOP(11:13) field of sw. Other f reg continue * TOP(11:13) field of sw. Other f reg continue sequentially from where f8 maps
* sequentially from where f8 maps to. * to.
*/ */
fp_tos = (fsr>>11)&0x7; fp_tos = (fsr>>11)&0x7;
fr8_st_map = (8-fp_tos)&0x7; fr8_st_map = (8-fp_tos)&0x7;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment