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
54b703ed
Commit
54b703ed
authored
Jan 05, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix typos in Rustys extable changes.
parent
66b9bcb8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
arch/sparc64/kernel/traps.c
arch/sparc64/kernel/traps.c
+6
-6
arch/sparc64/kernel/unaligned.c
arch/sparc64/kernel/unaligned.c
+1
-1
arch/sparc64/mm/extable.c
arch/sparc64/mm/extable.c
+2
-2
arch/sparc64/mm/fault.c
arch/sparc64/mm/fault.c
+1
-1
No files found.
arch/sparc64/kernel/traps.c
View file @
54b703ed
...
...
@@ -149,17 +149,17 @@ void data_access_exception (struct pt_regs *regs,
if
(
regs
->
tstate
&
TSTATE_PRIV
)
{
/* Test if this comes from uaccess places. */
const
struct
exception_table_entry
*
entry
;
unsigned
long
fixup
;
unsigned
long
g2
=
regs
->
u_regs
[
UREG_G2
];
if
((
entry
=
search_extables_range
(
regs
->
tpc
,
&
g2
)))
{
if
((
fixup
=
search_extables_range
(
regs
->
tpc
,
&
g2
)))
{
/* Ouch, somebody is trying ugly VM hole tricks on us... */
#ifdef DEBUG_EXCEPTIONS
printk
(
"Exception: PC<%016lx> faddr<UNKNOWN>
\n
"
,
regs
->
tpc
);
printk
(
"EX_TABLE: insn<%016lx> fixup<%016lx> "
"g2<%016lx>
\n
"
,
regs
->
tpc
,
entry
->
fixup
,
g2
);
"g2<%016lx>
\n
"
,
regs
->
tpc
,
fixup
,
g2
);
#endif
regs
->
tpc
=
entry
->
fixup
;
regs
->
tpc
=
fixup
;
regs
->
tnpc
=
regs
->
tpc
+
4
;
regs
->
u_regs
[
UREG_G2
]
=
g2
;
return
;
...
...
@@ -1390,8 +1390,8 @@ void cheetah_deferred_handler(struct pt_regs *regs, unsigned long afsr, unsigned
/* Only perform fixup if we still have a
* recoverable condition.
*/
if
(
entry
&&
recoverable
)
{
regs
->
tpc
=
entry
->
fixup
;
if
(
recoverable
)
{
regs
->
tpc
=
fixup
;
regs
->
tnpc
=
regs
->
tpc
+
4
;
regs
->
u_regs
[
UREG_G2
]
=
g2
;
}
...
...
arch/sparc64/kernel/unaligned.c
View file @
54b703ed
...
...
@@ -361,7 +361,7 @@ void kernel_mna_trap_fault(struct pt_regs *regs, unsigned int insn) __asm__ ("ke
void
kernel_mna_trap_fault
(
struct
pt_regs
*
regs
,
unsigned
int
insn
)
{
unsigned
long
g2
=
regs
->
u_regs
[
UREG_G2
];
unsigned
long
fixup
=
search_ex
ception_table
(
regs
->
tpc
,
&
g2
);
unsigned
long
fixup
=
search_ex
tables_range
(
regs
->
tpc
,
&
g2
);
if
(
!
fixup
)
{
unsigned
long
address
=
compute_effective_address
(
regs
,
insn
,
((
insn
>>
25
)
&
0x1f
));
...
...
arch/sparc64/mm/extable.c
View file @
54b703ed
...
...
@@ -31,7 +31,7 @@ search_extable(const struct exception_table_entry *start,
*/
/* 1. Try to find an exact match. */
for
(
walk
=
start
;
walk
<=
end
;
walk
++
)
{
for
(
walk
=
start
;
walk
<=
last
;
walk
++
)
{
if
(
walk
->
fixup
==
0
)
{
/* A range entry, skip both parts. */
walk
++
;
...
...
@@ -43,7 +43,7 @@ search_extable(const struct exception_table_entry *start,
}
/* 2. Try to find a range match. */
for
(
walk
=
start
;
walk
<=
(
end
-
1
);
walk
++
)
{
for
(
walk
=
start
;
walk
<=
(
last
-
1
);
walk
++
)
{
if
(
walk
->
fixup
)
continue
;
...
...
arch/sparc64/mm/fault.c
View file @
54b703ed
...
...
@@ -286,7 +286,7 @@ static void do_kernel_fault(struct pt_regs *regs, int si_code, int fault_code,
/* Look in asi.h: All _S asis have LS bit set */
if
((
asi
&
0x1
)
&&
(
fi
z
up
=
search_extables_range
(
regs
->
tpc
,
&
g2
)))
{
(
fi
x
up
=
search_extables_range
(
regs
->
tpc
,
&
g2
)))
{
regs
->
tpc
=
fixup
;
regs
->
tnpc
=
regs
->
tpc
+
4
;
regs
->
u_regs
[
UREG_G2
]
=
g2
;
...
...
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