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
27cc64c7
Commit
27cc64c7
authored
Jun 21, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Rate limited kernel unaligned trap logging, ala IA64.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
20edac8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
arch/sparc64/kernel/unaligned.c
arch/sparc64/kernel/unaligned.c
+9
-0
No files found.
arch/sparc64/kernel/unaligned.c
View file @
27cc64c7
...
...
@@ -279,12 +279,21 @@ static void kernel_mna_trap_fault(void)
asmlinkage
void
kernel_unaligned_trap
(
struct
pt_regs
*
regs
,
unsigned
int
insn
)
{
static
unsigned
long
count
,
last_time
;
enum
direction
dir
=
decode_direction
(
insn
);
int
size
=
decode_access_size
(
insn
);
current_thread_info
()
->
kern_una_regs
=
regs
;
current_thread_info
()
->
kern_una_insn
=
insn
;
if
(
jiffies
-
last_time
>
5
*
HZ
)
count
=
0
;
if
(
count
<
5
)
{
last_time
=
jiffies
;
count
++
;
printk
(
"Kernel unaligned access at TPC[%lx]
\n
"
,
regs
->
tpc
);
}
if
(
!
ok_for_kernel
(
insn
)
||
dir
==
both
)
{
printk
(
"Unsupported unaligned load/store trap for kernel "
"at <%016lx>.
\n
"
,
regs
->
tpc
);
...
...
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