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
Kirill Smelkov
linux
Commits
66c92d06
Commit
66c92d06
authored
Feb 11, 2002
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread_saved_pc fix from akpm
parent
8baf628d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
arch/i386/kernel/process.c
arch/i386/kernel/process.c
+8
-0
include/asm-i386/processor.h
include/asm-i386/processor.h
+1
-7
No files found.
arch/i386/kernel/process.c
View file @
66c92d06
...
...
@@ -54,6 +54,14 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
int
hlt_counter
;
/*
* Return saved PC of a blocked thread.
*/
unsigned
long
thread_saved_pc
(
struct
task_struct
*
tsk
)
{
return
((
unsigned
long
*
)
tsk
->
thread
.
esp
)[
3
];
}
/*
* Powermanagement idle function, if any..
*/
...
...
include/asm-i386/processor.h
View file @
66c92d06
...
...
@@ -436,13 +436,7 @@ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
extern
void
copy_segments
(
struct
task_struct
*
p
,
struct
mm_struct
*
mm
);
extern
void
release_segments
(
struct
mm_struct
*
mm
);
/*
* Return saved PC of a blocked thread.
*/
static
inline
unsigned
long
thread_saved_pc
(
struct
task_struct
*
tsk
)
{
return
((
unsigned
long
*
)
tsk
->
thread
->
esp
)[
3
];
}
extern
unsigned
long
thread_saved_pc
(
struct
task_struct
*
tsk
);
unsigned
long
get_wchan
(
struct
task_struct
*
p
);
#define KSTK_EIP(tsk) (((unsigned long *)(4096+(unsigned long)(tsk)->thread_info))[1019])
...
...
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