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
178086c8
Commit
178086c8
authored
Oct 13, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't print file name and line in die and die_if_kernel.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
6ec25809
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
23 deletions
+9
-23
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+2
-14
include/asm-mips/system.h
include/asm-mips/system.h
+7
-9
No files found.
arch/mips/kernel/traps.c
View file @
178086c8
...
...
@@ -276,30 +276,18 @@ void show_registers(struct pt_regs *regs)
static
DEFINE_SPINLOCK
(
die_lock
);
NORET_TYPE
void
ATTRIB_NORET
__die
(
const
char
*
str
,
struct
pt_regs
*
regs
,
const
char
*
file
,
const
char
*
func
,
unsigned
long
line
)
NORET_TYPE
void
ATTRIB_NORET
die
(
const
char
*
str
,
struct
pt_regs
*
regs
)
{
static
int
die_counter
;
console_verbose
();
spin_lock_irq
(
&
die_lock
);
printk
(
"%s"
,
str
);
if
(
file
&&
func
)
printk
(
" in %s:%s, line %ld"
,
file
,
func
,
line
);
printk
(
"[#%d]:
\n
"
,
++
die_counter
);
printk
(
"%s[#%d]:
\n
"
,
str
,
++
die_counter
);
show_registers
(
regs
);
spin_unlock_irq
(
&
die_lock
);
do_exit
(
SIGSEGV
);
}
void
__die_if_kernel
(
const
char
*
str
,
struct
pt_regs
*
regs
,
const
char
*
file
,
const
char
*
func
,
unsigned
long
line
)
{
if
(
!
user_mode
(
regs
))
__die
(
str
,
regs
,
file
,
func
,
line
);
}
extern
const
struct
exception_table_entry
__start___dbe_table
[];
extern
const
struct
exception_table_entry
__stop___dbe_table
[];
...
...
include/asm-mips/system.h
View file @
178086c8
...
...
@@ -434,15 +434,13 @@ extern void *set_vi_srs_handler (int n, void *addr, int regset);
extern
void
*
set_except_vector
(
int
n
,
void
*
addr
);
extern
void
per_cpu_trap_init
(
void
);
extern
NORET_TYPE
void
__die
(
const
char
*
,
struct
pt_regs
*
,
const
char
*
file
,
const
char
*
func
,
unsigned
long
line
)
ATTRIB_NORET
;
extern
void
__die_if_kernel
(
const
char
*
,
struct
pt_regs
*
,
const
char
*
file
,
const
char
*
func
,
unsigned
long
line
);
#define die(msg, regs) \
__die(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__)
#define die_if_kernel(msg, regs) \
__die_if_kernel(msg, regs, __FILE__ ":", __FUNCTION__, __LINE__)
extern
NORET_TYPE
void
die
(
const
char
*
,
struct
pt_regs
*
);
static
inline
void
die_if_kernel
(
const
char
*
str
,
struct
pt_regs
*
regs
)
{
if
(
unlikely
(
!
user_mode
(
regs
)))
die
(
str
,
regs
);
}
extern
int
stop_a_enabled
;
...
...
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