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
ac3efab5
Commit
ac3efab5
authored
Apr 16, 2009
by
Michal Simek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
microblaze: Rename kernel_mode to pt_mode in pt_regs
Signed-off-by:
Michal Simek
<
monstr@monstr.eu
>
parent
ceb8944b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
arch/microblaze/include/asm/processor.h
arch/microblaze/include/asm/processor.h
+1
-1
arch/microblaze/include/asm/ptrace.h
arch/microblaze/include/asm/ptrace.h
+2
-2
arch/microblaze/kernel/asm-offsets.c
arch/microblaze/kernel/asm-offsets.c
+1
-1
arch/microblaze/kernel/process.c
arch/microblaze/kernel/process.c
+2
-2
No files found.
arch/microblaze/include/asm/processor.h
View file @
ac3efab5
...
...
@@ -62,7 +62,7 @@ static inline void start_thread(struct pt_regs *regs,
{
regs
->
pc
=
pc
;
regs
->
r1
=
usp
;
regs
->
kernel
_mode
=
0
;
regs
->
pt
_mode
=
0
;
}
/* Free all resources held by a thread. */
...
...
arch/microblaze/include/asm/ptrace.h
View file @
ac3efab5
...
...
@@ -52,10 +52,10 @@ struct pt_regs {
microblaze_reg_t
ear
;
microblaze_reg_t
esr
;
microblaze_reg_t
fsr
;
int
kernel
_mode
;
int
pt
_mode
;
};
#define kernel_mode(regs) ((regs)->
kernel
_mode)
#define kernel_mode(regs) ((regs)->
pt
_mode)
#define user_mode(regs) (!kernel_mode(regs))
#define instruction_pointer(regs) ((regs)->pc)
...
...
arch/microblaze/kernel/asm-offsets.c
View file @
ac3efab5
...
...
@@ -57,7 +57,7 @@ int main(int argc, char *argv[])
DEFINE
(
PT_R29
,
offsetof
(
struct
pt_regs
,
r29
));
DEFINE
(
PT_R30
,
offsetof
(
struct
pt_regs
,
r30
));
DEFINE
(
PT_R31
,
offsetof
(
struct
pt_regs
,
r31
));
DEFINE
(
PT_MODE
,
offsetof
(
struct
pt_regs
,
kernel
_mode
));
DEFINE
(
PT_MODE
,
offsetof
(
struct
pt_regs
,
pt
_mode
));
BLANK
();
/* Magic offsets for PTRACE PEEK/POKE etc */
...
...
arch/microblaze/kernel/process.c
View file @
ac3efab5
...
...
@@ -18,7 +18,7 @@
void
show_regs
(
struct
pt_regs
*
regs
)
{
printk
(
KERN_INFO
" Registers dump: mode=%X
\r\n
"
,
regs
->
kernel
_mode
);
printk
(
KERN_INFO
" Registers dump: mode=%X
\r\n
"
,
regs
->
pt
_mode
);
printk
(
KERN_INFO
" r1=%08lX, r2=%08lX, r3=%08lX, r4=%08lX
\n
"
,
regs
->
r1
,
regs
->
r2
,
regs
->
r3
,
regs
->
r4
);
printk
(
KERN_INFO
" r5=%08lX, r6=%08lX, r7=%08lX, r8=%08lX
\n
"
,
...
...
@@ -169,7 +169,7 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
regs
.
r6
=
(
unsigned
long
)
arg
;
local_save_flags
(
regs
.
msr
);
regs
.
pc
=
(
unsigned
long
)
kernel_thread_helper
;
regs
.
kernel
_mode
=
1
;
regs
.
pt
_mode
=
1
;
ret
=
do_fork
(
flags
|
CLONE_VM
|
CLONE_UNTRACED
,
0
,
&
regs
,
0
,
NULL
,
NULL
);
...
...
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