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
6f3fa3f0
Commit
6f3fa3f0
authored
Oct 22, 2007
by
Martin Schwidefsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[S390] Remove unused user_seg from thread structure.
Signed-off-by:
Martin Schwidefsky
<
schwidefsky@de.ibm.com
>
parent
ba8a9229
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
arch/s390/kernel/process.c
arch/s390/kernel/process.c
+0
-2
include/asm-s390/processor.h
include/asm-s390/processor.h
+3
-11
No files found.
arch/s390/kernel/process.c
View file @
6f3fa3f0
...
...
@@ -270,14 +270,12 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long new_stackp,
save_fp_regs
(
&
current
->
thread
.
fp_regs
);
memcpy
(
&
p
->
thread
.
fp_regs
,
&
current
->
thread
.
fp_regs
,
sizeof
(
s390_fp_regs
));
p
->
thread
.
user_seg
=
__pa
((
unsigned
long
)
p
->
mm
->
pgd
)
|
_SEGMENT_TABLE
;
/* Set a new TLS ? */
if
(
clone_flags
&
CLONE_SETTLS
)
p
->
thread
.
acrs
[
0
]
=
regs
->
gprs
[
6
];
#else
/* CONFIG_64BIT */
/* Save the fpu registers to new thread structure. */
save_fp_regs
(
&
p
->
thread
.
fp_regs
);
p
->
thread
.
user_seg
=
__pa
((
unsigned
long
)
p
->
mm
->
pgd
)
|
_REGION_TABLE
;
/* Set a new TLS ? */
if
(
clone_flags
&
CLONE_SETTLS
)
{
if
(
test_thread_flag
(
TIF_31BIT
))
{
...
...
include/asm-s390/processor.h
View file @
6f3fa3f0
...
...
@@ -93,7 +93,6 @@ struct thread_struct {
s390_fp_regs
fp_regs
;
unsigned
int
acrs
[
NUM_ACRS
];
unsigned
long
ksp
;
/* kernel stack pointer */
unsigned
long
user_seg
;
/* HSTD */
mm_segment_t
mm_segment
;
unsigned
long
prot_addr
;
/* address of protection-excep. */
unsigned
int
error_code
;
/* error-code of last prog-excep. */
...
...
@@ -134,16 +133,9 @@ struct stack_frame {
# define __SWAPPER_PG_DIR __pa(&swapper_pg_dir[0]) + _REGION_TABLE
#endif
/* __s390x__ */
#define INIT_THREAD {{0,{{0},{0},{0},{0},{0},{0},{0},{0},{0},{0}, \
{0},{0},{0},{0},{0},{0}}}, \
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, \
sizeof(init_stack) + (unsigned long) &init_stack, \
__SWAPPER_PG_DIR, \
{0}, \
0,0,0, \
(per_struct) {{{{0,}}},0,0,0,0,{{0,}}}, \
0, 0 \
}
#define INIT_THREAD { \
.ksp = sizeof(init_stack) + (unsigned long) &init_stack, \
}
/*
* Do necessary setup to start up a new thread.
...
...
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