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
baa06775
Commit
baa06775
authored
Apr 19, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Email 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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/sparc/kernel/unaligned_64.c
arch/sparc/kernel/unaligned_64.c
+3
-3
No files found.
arch/sparc/kernel/unaligned_64.c
View file @
baa06775
...
@@ -50,7 +50,7 @@ static inline enum direction decode_direction(unsigned int insn)
...
@@ -50,7 +50,7 @@ static inline enum direction decode_direction(unsigned int insn)
}
}
/* 16 = double-word, 8 = extra-word, 4 = word, 2 = half-word */
/* 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
;
unsigned
int
tmp
;
...
@@ -66,7 +66,7 @@ static inline int decode_access_size(unsigned int insn)
...
@@ -66,7 +66,7 @@ static inline int decode_access_size(unsigned int insn)
return
2
;
return
2
;
else
{
else
{
printk
(
"Impossible unaligned trap. insn=%08x
\n
"
,
insn
);
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
/* GCC should never warn that control reaches the end
* of this function without returning a value because
* of this function without returning a value because
...
@@ -286,7 +286,7 @@ static void log_unaligned(struct pt_regs *regs)
...
@@ -286,7 +286,7 @@ static void log_unaligned(struct pt_regs *regs)
asmlinkage
void
kernel_unaligned_trap
(
struct
pt_regs
*
regs
,
unsigned
int
insn
)
asmlinkage
void
kernel_unaligned_trap
(
struct
pt_regs
*
regs
,
unsigned
int
insn
)
{
{
enum
direction
dir
=
decode_direction
(
insn
);
enum
direction
dir
=
decode_direction
(
insn
);
int
size
=
decode_access_size
(
insn
);
int
size
=
decode_access_size
(
regs
,
insn
);
int
orig_asi
,
asi
;
int
orig_asi
,
asi
;
current_thread_info
()
->
kern_una_regs
=
regs
;
current_thread_info
()
->
kern_una_regs
=
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