Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
36a3528c
Commit
36a3528c
authored
Oct 21, 2002
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Some formatting cleanups.
parent
58ab0016
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
38 deletions
+38
-38
arch/ia64/ia32/ia32_signal.c
arch/ia64/ia32/ia32_signal.c
+38
-38
No files found.
arch/ia64/ia32/ia32_signal.c
View file @
36a3528c
...
@@ -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
* T
his depends on TOP(11:13) field of sw. Other f reg continue
* T
OP(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
* T
his depends on TOP(11:13) field of sw. Other f reg continue
* T
OP(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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment