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
Kirill Smelkov
linux
Commits
fcdd204c
Commit
fcdd204c
authored
May 07, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up do_undefinstr - it only needs to take the pt_regs pointer
argument.
parent
f77fc1af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-armv.S
+2
-4
arch/arm/kernel/traps.c
arch/arm/kernel/traps.c
+2
-2
No files found.
arch/arm/kernel/entry-armv.S
View file @
fcdd204c
...
@@ -799,8 +799,7 @@ __und_svc: sub sp, sp, #S_FRAME_SIZE
...
@@ -799,8 +799,7 @@ __und_svc: sub sp, sp, #S_FRAME_SIZE
adrsvc
al
,
r9
,
1
f
@
r9
=
normal
FP
return
adrsvc
al
,
r9
,
1
f
@
r9
=
normal
FP
return
bl
call_fpe
@
lr
=
undefined
instr
return
bl
call_fpe
@
lr
=
undefined
instr
return
mov
r0
,
r5
@
unsigned
long
pc
mov
r0
,
sp
@
struct
pt_regs
*
regs
mov
r1
,
sp
@
struct
pt_regs
*
regs
bl
do_undefinstr
bl
do_undefinstr
1
:
set_cpsr_c
r0
,
#
PSR_I_BIT
|
MODE_SVC
1
:
set_cpsr_c
r0
,
#
PSR_I_BIT
|
MODE_SVC
...
@@ -926,8 +925,7 @@ call_fpe: get_thread_info r10 @ get current thread
...
@@ -926,8 +925,7 @@ call_fpe: get_thread_info r10 @ get current thread
ldr
pc
,
[
r4
]
@
Call
FP
module
USR
entry
point
ldr
pc
,
[
r4
]
@
Call
FP
module
USR
entry
point
fpundefinstr
:
set_cpsr_c
r0
,
#
MODE_SVC
@
Enable
interrupts
fpundefinstr
:
set_cpsr_c
r0
,
#
MODE_SVC
@
Enable
interrupts
mov
r0
,
lr
mov
r0
,
sp
mov
r1
,
sp
adrsvc
al
,
lr
,
ret_from_exception
adrsvc
al
,
lr
,
ret_from_exception
b
do_undefinstr
b
do_undefinstr
...
...
arch/arm/kernel/traps.c
View file @
fcdd204c
...
@@ -201,7 +201,7 @@ void die_if_kernel(const char *str, struct pt_regs *regs, int err)
...
@@ -201,7 +201,7 @@ void die_if_kernel(const char *str, struct pt_regs *regs, int err)
die
(
str
,
regs
,
err
);
die
(
str
,
regs
,
err
);
}
}
asmlinkage
void
do_undefinstr
(
int
address
,
struct
pt_regs
*
regs
,
int
mode
)
asmlinkage
void
do_undefinstr
(
struct
pt_regs
*
regs
)
{
{
unsigned
long
*
pc
;
unsigned
long
*
pc
;
siginfo_t
info
;
siginfo_t
info
;
...
@@ -229,7 +229,7 @@ asmlinkage void do_undefinstr(int address, struct pt_regs *regs, int mode)
...
@@ -229,7 +229,7 @@ asmlinkage void do_undefinstr(int address, struct pt_regs *regs, int mode)
force_sig_info
(
SIGILL
,
&
info
,
current
);
force_sig_info
(
SIGILL
,
&
info
,
current
);
die_if_kernel
(
"Oops - undefined instruction"
,
regs
,
mode
);
die_if_kernel
(
"Oops - undefined instruction"
,
regs
,
0
);
}
}
#ifdef CONFIG_CPU_26
#ifdef CONFIG_CPU_26
...
...
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