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
3f80b96b
Commit
3f80b96b
authored
Apr 11, 2003
by
Keith M. Wesolowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sparc]: Attempt mul/div emulation handling on all cpus.
parent
296d26ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
arch/sparc/kernel/traps.c
arch/sparc/kernel/traps.c
+4
-5
No files found.
arch/sparc/kernel/traps.c
View file @
3f80b96b
...
...
@@ -153,6 +153,7 @@ void do_hw_interrupt(unsigned long type, unsigned long psr, unsigned long pc)
void
do_illegal_instruction
(
struct
pt_regs
*
regs
,
unsigned
long
pc
,
unsigned
long
npc
,
unsigned
long
psr
)
{
extern
int
do_user_muldiv
(
struct
pt_regs
*
,
unsigned
long
);
siginfo_t
info
;
if
(
psr
&
PSR_PS
)
...
...
@@ -161,11 +162,9 @@ void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned lon
printk
(
"Ill instr. at pc=%08lx instruction is %08lx
\n
"
,
regs
->
pc
,
*
(
unsigned
long
*
)
regs
->
pc
);
#endif
if
(
sparc_cpu_model
==
sun4c
||
sparc_cpu_model
==
sun4
)
{
extern
int
do_user_muldiv
(
struct
pt_regs
*
,
unsigned
long
);
if
(
!
do_user_muldiv
(
regs
,
pc
))
return
;
}
if
(
!
do_user_muldiv
(
regs
,
pc
))
return
;
info
.
si_signo
=
SIGILL
;
info
.
si_errno
=
0
;
info
.
si_code
=
ILL_ILLOPC
;
...
...
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