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
ed129746
Commit
ed129746
authored
Oct 30, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Replace __backtrace() with dump_stack().
parent
7eb4f12e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
22 deletions
+11
-22
arch/arm/kernel/fiq.c
arch/arm/kernel/fiq.c
+2
-3
arch/arm/kernel/irq.c
arch/arm/kernel/irq.c
+2
-6
arch/arm/kernel/traps.c
arch/arm/kernel/traps.c
+3
-1
arch/arm/mach-footbridge/mm.c
arch/arm/mach-footbridge/mm.c
+4
-12
No files found.
arch/arm/kernel/fiq.c
View file @
ed129746
...
...
@@ -37,6 +37,7 @@
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/init.h>
...
...
@@ -203,9 +204,7 @@ void release_fiq(struct fiq_handler *f)
if
(
current_fiq
!=
f
)
{
printk
(
KERN_ERR
"%s FIQ trying to release %s FIQ
\n
"
,
f
->
name
,
current_fiq
->
name
);
#ifdef CONFIG_DEBUG_ERRORS
__backtrace
();
#endif
dump_stack
();
return
;
}
...
...
arch/arm/kernel/irq.c
View file @
ed129746
...
...
@@ -578,9 +578,7 @@ void free_irq(unsigned int irq, void *dev_id)
if
(
irq
>=
NR_IRQS
||
!
irq_desc
[
irq
].
valid
)
{
printk
(
KERN_ERR
"Trying to free IRQ%d
\n
"
,
irq
);
#ifdef CONFIG_DEBUG_ERRORS
__backtrace
();
#endif
dump_stack
();
return
;
}
...
...
@@ -597,9 +595,7 @@ void free_irq(unsigned int irq, void *dev_id)
if
(
!
action
)
{
printk
(
KERN_ERR
"Trying to free free IRQ%d
\n
"
,
irq
);
#ifdef CONFIG_DEBUG_ERRORS
__backtrace
();
#endif
dump_stack
();
}
else
{
synchronize_irq
(
irq
);
kfree
(
action
);
...
...
arch/arm/kernel/traps.c
View file @
ed129746
...
...
@@ -170,7 +170,9 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
void
dump_stack
(
void
)
{
#ifdef CONFIG_DEBUG_ERRORS
__backtrace
();
#endif
}
/*
...
...
@@ -530,7 +532,7 @@ void __pgd_error(const char *file, int line, unsigned long val)
asmlinkage
void
__div0
(
void
)
{
printk
(
"Division by zero in kernel.
\n
"
);
__backtrace
();
dump_stack
();
}
void
abort
(
void
)
...
...
arch/arm/mach-footbridge/mm.c
View file @
ed129746
...
...
@@ -84,12 +84,8 @@ void __init footbridge_map_io(void)
*/
unsigned
long
__virt_to_bus
(
unsigned
long
res
)
{
#ifdef CONFIG_DEBUG_ERRORS
if
(
res
<
PAGE_OFFSET
||
res
>=
(
unsigned
long
)
high_memory
)
{
printk
(
"__virt_to_bus: invalid virtual address 0x%08lx
\n
"
,
res
);
__backtrace
();
}
#endif
WARN_ON
(
res
<
PAGE_OFFSET
||
res
>=
(
unsigned
long
)
high_memory
);
return
(
res
-
PAGE_OFFSET
)
+
(
*
CSR_PCISDRAMBASE
&
0xfffffff0
);
}
...
...
@@ -98,12 +94,8 @@ unsigned long __bus_to_virt(unsigned long res)
res
-=
(
*
CSR_PCISDRAMBASE
&
0xfffffff0
);
res
+=
PAGE_OFFSET
;
#ifdef CONFIG_DEBUG_ERRORS
if
(
res
<
PAGE_OFFSET
||
res
>=
(
unsigned
long
)
high_memory
)
{
printk
(
"__bus_to_virt: invalid virtual address 0x%08lx
\n
"
,
res
);
__backtrace
();
}
#endif
WARN_ON
(
res
<
PAGE_OFFSET
||
res
>=
(
unsigned
long
)
high_memory
);
return
res
;
}
...
...
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