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
33f242ed
Commit
33f242ed
authored
Nov 09, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh:
SH-5
pt_regs.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
fe51bc9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
include/asm-sh/ptrace.h
include/asm-sh/ptrace.h
+22
-6
No files found.
include/asm-sh/ptrace.h
View file @
33f242ed
...
...
@@ -5,7 +5,16 @@
* Copyright (C) 1999, 2000 Niibe Yutaka
*
*/
#if defined(__SH5__) || defined(CONFIG_SUPERH64)
struct
pt_regs
{
unsigned
long
long
pc
;
unsigned
long
long
sr
;
unsigned
long
long
syscall_nr
;
unsigned
long
long
regs
[
63
];
unsigned
long
long
tregs
[
8
];
unsigned
long
long
pad
[
2
];
};
#else
/*
* GCC defines register number like this:
* -----------------------------
...
...
@@ -28,7 +37,7 @@
#define REG_PR 17
#define REG_SR 18
#define REG_GBR
19
#define REG_GBR
19
#define REG_MACH 20
#define REG_MACL 21
...
...
@@ -80,10 +89,14 @@ struct pt_dspregs {
#define PTRACE_GETDSPREGS 55
#define PTRACE_SETDSPREGS 56
#endif
#ifdef __KERNEL__
#define user_mode(regs) (((regs)->sr & 0x40000000)==0)
#define instruction_pointer(regs) ((regs)->pc)
#include <asm/addrspace.h>
#define user_mode(regs) (((regs)->sr & 0x40000000)==0)
#define instruction_pointer(regs) ((regs)->pc)
extern
void
show_regs
(
struct
pt_regs
*
);
#ifdef CONFIG_SH_DSP
...
...
@@ -100,10 +113,13 @@ static inline unsigned long profile_pc(struct pt_regs *regs)
{
unsigned
long
pc
=
instruction_pointer
(
regs
);
if
(
pc
>=
0xa0000000UL
&&
pc
<
0xc0000000UL
)
#ifdef P2SEG
if
(
pc
>=
P2SEG
&&
pc
<
P3SEG
)
pc
-=
0x20000000
;
#endif
return
pc
;
}
#endif
#endif
/* __KERNEL__ */
#endif
/* __ASM_SH_PTRACE_H */
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