Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bd8b96df
Commit
bd8b96df
authored
Dec 26, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: clean up comment style in arch/x86/kernel/traps.c
Impact: cleanup Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
c656d9ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
arch/x86/kernel/traps.c
arch/x86/kernel/traps.c
+17
-9
No files found.
arch/x86/kernel/traps.c
View file @
bd8b96df
...
...
@@ -292,8 +292,10 @@ dotraplinkage void do_double_fault(struct pt_regs *regs, long error_code)
tsk
->
thread
.
error_code
=
error_code
;
tsk
->
thread
.
trap_no
=
8
;
/* This is always a kernel trap and never fixable (and thus must
never return). */
/*
* This is always a kernel trap and never fixable (and thus must
* never return).
*/
for
(;;)
die
(
str
,
regs
,
error_code
);
}
...
...
@@ -524,9 +526,11 @@ dotraplinkage void __kprobes do_int3(struct pt_regs *regs, long error_code)
}
#ifdef CONFIG_X86_64
/* Help handler running on IST stack to switch back to user stack
for scheduling or signal handling. The actual stack switch is done in
entry.S */
/*
* Help handler running on IST stack to switch back to user stack
* for scheduling or signal handling. The actual stack switch is done in
* entry.S
*/
asmlinkage
__kprobes
struct
pt_regs
*
sync_regs
(
struct
pt_regs
*
eregs
)
{
struct
pt_regs
*
regs
=
eregs
;
...
...
@@ -536,8 +540,10 @@ asmlinkage __kprobes struct pt_regs *sync_regs(struct pt_regs *eregs)
/* Exception from user space */
else
if
(
user_mode
(
eregs
))
regs
=
task_pt_regs
(
current
);
/* Exception from kernel and interrupts are enabled. Move to
kernel process stack. */
/*
* Exception from kernel and interrupts are enabled. Move to
* kernel process stack.
*/
else
if
(
eregs
->
flags
&
X86_EFLAGS_IF
)
regs
=
(
struct
pt_regs
*
)(
eregs
->
sp
-=
sizeof
(
struct
pt_regs
));
if
(
eregs
!=
regs
)
...
...
@@ -707,8 +713,10 @@ void math_error(void __user *ip)
}
else
if
(
err
&
0x020
)
{
/* Precision */
info
.
si_code
=
FPE_FLTRES
;
}
else
{
/* If we're using IRQ 13, or supposedly even some trap 16
implementations, it's possible we get a spurious trap... */
/*
* If we're using IRQ 13, or supposedly even some trap 16
* implementations, it's possible we get a spurious trap...
*/
return
;
/* Spurious trap, no error */
}
force_sig_info
(
SIGFPE
,
&
info
,
task
);
...
...
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