Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linaro
qcomlt
kernel
Commits
baa06775
Commit
baa06775
authored
14 years ago
by
David S. Miller
Browse files
Options
Downloads
Patches
Plain Diff
sparc64: Use correct pt_regs in decode_access_size() error paths.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
6c94b1ee
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/sparc/kernel/unaligned_64.c
+3
-3
3 additions, 3 deletions
arch/sparc/kernel/unaligned_64.c
with
3 additions
and
3 deletions
arch/sparc/kernel/unaligned_64.c
+
3
−
3
View file @
baa06775
...
...
@@ -50,7 +50,7 @@ static inline enum direction decode_direction(unsigned int insn)
}
/* 16 = double-word, 8 = extra-word, 4 = word, 2 = half-word */
static
inline
int
decode_access_size
(
unsigned
int
insn
)
static
inline
int
decode_access_size
(
struct
pt_regs
*
regs
,
unsigned
int
insn
)
{
unsigned
int
tmp
;
...
...
@@ -66,7 +66,7 @@ static inline int decode_access_size(unsigned int insn)
return
2
;
else
{
printk
(
"Impossible unaligned trap. insn=%08x
\n
"
,
insn
);
die_if_kernel
(
"Byte sized unaligned access?!?!"
,
current_thread_info
()
->
k
regs
);
die_if_kernel
(
"Byte sized unaligned access?!?!"
,
regs
);
/* GCC should never warn that control reaches the end
* of this function without returning a value because
...
...
@@ -286,7 +286,7 @@ static void log_unaligned(struct pt_regs *regs)
asmlinkage
void
kernel_unaligned_trap
(
struct
pt_regs
*
regs
,
unsigned
int
insn
)
{
enum
direction
dir
=
decode_direction
(
insn
);
int
size
=
decode_access_size
(
insn
);
int
size
=
decode_access_size
(
regs
,
insn
);
int
orig_asi
,
asi
;
current_thread_info
()
->
kern_una_regs
=
regs
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment