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
ae6eb6dc
Commit
ae6eb6dc
authored
Jul 24, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Pass correct args to data_access_exception() in unaligned.c
Spotted by Hal Duston <hduston@speedscript.com>
parent
52a77587
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
arch/sparc64/kernel/unaligned.c
arch/sparc64/kernel/unaligned.c
+9
-7
No files found.
arch/sparc64/kernel/unaligned.c
View file @
ae6eb6dc
...
...
@@ -484,7 +484,9 @@ int handle_popc(u32 insn, struct pt_regs *regs)
extern
void
do_fpother
(
struct
pt_regs
*
regs
);
extern
void
do_privact
(
struct
pt_regs
*
regs
);
extern
void
data_access_exception
(
struct
pt_regs
*
regs
);
extern
void
data_access_exception
(
struct
pt_regs
*
regs
,
unsigned
long
sfsr
,
unsigned
long
sfar
);
int
handle_ldf_stq
(
u32
insn
,
struct
pt_regs
*
regs
)
{
...
...
@@ -527,14 +529,14 @@ int handle_ldf_stq(u32 insn, struct pt_regs *regs)
break
;
}
default:
data_access_exception
(
regs
);
data_access_exception
(
regs
,
0
,
addr
);
return
1
;
}
if
(
put_user
(
first
>>
32
,
(
u32
*
)
addr
)
||
__put_user
((
u32
)
first
,
(
u32
*
)(
addr
+
4
))
||
__put_user
(
second
>>
32
,
(
u32
*
)(
addr
+
8
))
||
__put_user
((
u32
)
second
,
(
u32
*
)(
addr
+
12
)))
{
data_access_exception
(
regs
);
data_access_exception
(
regs
,
0
,
addr
);
return
1
;
}
}
else
{
...
...
@@ -547,7 +549,7 @@ int handle_ldf_stq(u32 insn, struct pt_regs *regs)
do_privact
(
regs
);
return
1
;
}
else
if
(
asi
>
ASI_SNFL
)
{
data_access_exception
(
regs
);
data_access_exception
(
regs
,
0
,
addr
);
return
1
;
}
switch
(
insn
&
0x180000
)
{
...
...
@@ -564,7 +566,7 @@ int handle_ldf_stq(u32 insn, struct pt_regs *regs)
err
|=
__get_user
(
data
[
i
],
(
u32
*
)(
addr
+
4
*
i
));
}
if
(
err
&&
!
(
asi
&
0x2
/* NF */
))
{
data_access_exception
(
regs
);
data_access_exception
(
regs
,
0
,
addr
);
return
1
;
}
if
(
asi
&
0x8
)
/* Little */
{
...
...
@@ -667,7 +669,7 @@ void handle_lddfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr
*
(
u64
*
)(
f
->
regs
+
freg
)
=
value
;
current_thread_info
()
->
fpsaved
[
0
]
|=
flag
;
}
else
{
daex:
data_access_exception
(
regs
);
daex:
data_access_exception
(
regs
,
sfsr
,
sfar
);
return
;
}
advance
(
regs
);
...
...
@@ -711,7 +713,7 @@ void handle_stdfmna(struct pt_regs *regs, unsigned long sfar, unsigned long sfsr
__put_user
((
u32
)
value
,
(
u32
*
)(
sfar
+
4
)))
goto
daex
;
}
else
{
daex:
data_access_exception
(
regs
);
daex:
data_access_exception
(
regs
,
sfsr
,
sfar
);
return
;
}
advance
(
regs
);
...
...
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