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
5e2027e2
Commit
5e2027e2
authored
Dec 07, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add restart_block to thread_info.
parent
bf79d5d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
11 deletions
+23
-11
include/asm-sparc/thread_info.h
include/asm-sparc/thread_info.h
+13
-7
include/asm-sparc64/thread_info.h
include/asm-sparc64/thread_info.h
+10
-4
No files found.
include/asm-sparc/thread_info.h
View file @
5e2027e2
...
...
@@ -44,6 +44,8 @@ struct thread_info {
unsigned
long
kpc
;
unsigned
long
kpsr
;
unsigned
long
kwim
;
struct
restart_block
restart_block
;
};
/*
...
...
@@ -51,11 +53,14 @@ struct thread_info {
*/
#define INIT_THREAD_INFO(tsk) \
{ \
uwinmask: 0, \
task: &tsk, \
exec_domain: &default_exec_domain, \
flags: 0, \
cpu: 0, \
.uwinmask = 0, \
.task = &tsk, \
.exec_domain = &default_exec_domain, \
.flags = 0, \
.cpu = 0, \
.restart_block = { \
.fn = do_no_restart_syscall, \
},
}
#define init_thread_info (init_thread_union.thread_info)
...
...
@@ -110,6 +115,7 @@ BTFIXUPDEF_CALL(void, free_thread_info, struct thread_info *)
#define TI_KPC 0x24
/* kpc (ldd'ed with kpc) */
#define TI_KPSR 0x28
/* kpsr */
#define TI_KWIM 0x2c
/* kwim (ldd'ed with kpsr) */
#define TI_RESTART_BLOCK 0x30
#define PREEMPT_ACTIVE 0x4000000
...
...
include/asm-sparc64/thread_info.h
View file @
5e2027e2
...
...
@@ -62,6 +62,8 @@ struct thread_info {
__u64
cee_stuff
;
struct
restart_block
restart_block
;
unsigned
long
fpregs
[
0
]
__attribute__
((
aligned
(
64
)));
};
...
...
@@ -94,6 +96,7 @@ struct thread_info {
#define TI_KERN_CNTD1 0x00000488
#define TI_PCR 0x00000490
#define TI_CEE_STUFF 0x00000498
#define TI_RESTART_BLOCK 0x000004a0
#define TI_FPREGS 0x000004c0
/* We embed this in the uppermost byte of thread_info->flags */
...
...
@@ -121,10 +124,13 @@ struct thread_info {
#define INIT_THREAD_INFO(tsk) \
{ \
task: &tsk, \
flags: ((unsigned long)ASI_P) << TI_FLAG_CURRENT_DS_SHIFT, \
exec_domain: &default_exec_domain, \
preempt_count: 1, \
.task = &tsk, \
.flags = ((unsigned long)ASI_P) << TI_FLAG_CURRENT_DS_SHIFT, \
.exec_domain = &default_exec_domain, \
.preempt_count = 1, \
.restart_block = { \
.fn = do_no_restart_syscall, \
}, \
}
#define init_thread_info (init_thread_union.thread_info)
...
...
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