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
0af1c530
Commit
0af1c530
authored
Nov 16, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'arch-s390' into no-rebases
parents
42472a74
30dcb099
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
49 deletions
+11
-49
arch/s390/Kconfig
arch/s390/Kconfig
+1
-0
arch/s390/include/asm/unistd.h
arch/s390/include/asm/unistd.h
+0
-1
arch/s390/kernel/entry.S
arch/s390/kernel/entry.S
+5
-27
arch/s390/kernel/entry64.S
arch/s390/kernel/entry64.S
+5
-21
No files found.
arch/s390/Kconfig
View file @
0af1c530
...
...
@@ -136,6 +136,7 @@ config S390
select KTIME_SCALAR if 32BIT
select HAVE_ARCH_SECCOMP_FILTER
select GENERIC_KERNEL_THREAD
select GENERIC_KERNEL_EXECVE
select HAVE_MOD_ARCH_SPECIFIC
select MODULES_USE_ELF_RELA
...
...
arch/s390/include/asm/unistd.h
View file @
0af1c530
...
...
@@ -54,7 +54,6 @@
# define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
# endif
#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_KERNEL_EXECVE
/*
* "Conditional" syscalls
...
...
arch/s390/kernel/entry.S
View file @
0af1c530
...
...
@@ -330,40 +330,18 @@ ENTRY(ret_from_fork)
la
%
r11
,
STACK_FRAME_OVERHEAD
(%
r15
)
l
%
r12
,
__LC_THREAD_INFO
l
%
r13
,
__LC_SVC_NEW_PSW
+
4
tm
__PT_PSW
+
1
(%
r11
),
0x01
#
forking
a
kernel
thread
?
je
1
f
l
%
r1
,
BASED
(
.
Lschedule_tail
)
basr
%
r14
,%
r1
#
call
schedule_tail
TRACE_IRQS_ON
ssm
__LC_SVC_NEW_PSW
#
reenable
interrupts
j
sysc_tracenogo
1
:
#
it
's a kernel thread
st
%
r15
,
__PT_R15
(%
r11
)
#
store
stack
pointer
for
new
kthread
l
%
r1
,
BASED
(
.
Lschedule_tail
)
basr
%
r14
,%
r1
#
call
schedule_tail
TRACE_IRQS_ON
ssm
__LC_SVC_NEW_PSW
#
reenable
interrupts
lm
%
r9
,%
r11
,
__PT_R9
(%
r11
)
#
load
gprs
tm
__PT_PSW
+
1
(%
r11
),
0x01
#
forking
a
kernel
thread
?
jne
sysc_tracenogo
#
it
's a kernel thread
lm
%
r9
,%
r10
,
__PT_R9
(%
r11
)
#
load
gprs
ENTRY
(
kernel_thread_starter
)
la
%
r2
,
0
(%
r10
)
basr
%
r14
,%
r9
la
%
r2
,
0
br
%
r11
#
do_exit
#
#
kernel_execve
function
needs
to
deal
with
pt_regs
that
is
not
#
at
the
usual
place
#
ENTRY
(
ret_from_kernel_execve
)
ssm
__LC_PGM_NEW_PSW
#
disable
I
/
O
and
ext
.
interrupts
lr
%
r15
,%
r2
lr
%
r11
,%
r2
ahi
%
r15
,-
STACK_FRAME_OVERHEAD
xc
__SF_BACKCHAIN
(
4
,%
r15
),
__SF_BACKCHAIN
(%
r15
)
l
%
r12
,
__LC_THREAD_INFO
ssm
__LC_SVC_NEW_PSW
#
reenable
interrupts
j
sysc_return
j
sysc_tracenogo
/*
*
Program
check
handler
routine
...
...
arch/s390/kernel/entry64.S
View file @
0af1c530
...
...
@@ -352,33 +352,17 @@ sysc_tracenogo:
ENTRY
(
ret_from_fork
)
la
%
r11
,
STACK_FRAME_OVERHEAD
(%
r15
)
lg
%
r12
,
__LC_THREAD_INFO
tm
__PT_PSW
+
1
(%
r11
),
0x01
#
forking
a
kernel
thread
?
je
1
f
brasl
%
r14
,
schedule_tail
TRACE_IRQS_ON
ssm
__LC_SVC_NEW_PSW
#
reenable
interrupts
j
sysc_tracenogo
1
:
#
it
's a kernel thread
stg
%
r15
,
__PT_R15
(%
r11
)
#
store
stack
pointer
for
new
kthread
brasl
%
r14
,
schedule_tail
TRACE_IRQS_ON
ssm
__LC_SVC_NEW_PSW
#
reenable
interrupts
lmg
%
r9
,%
r11
,
__PT_R9
(%
r11
)
#
load
gprs
tm
__PT_PSW
+
1
(%
r11
),
0x01
#
forking
a
kernel
thread
?
jne
sysc_tracenogo
#
it
's a kernel thread
lmg
%
r9
,%
r10
,
__PT_R9
(%
r11
)
#
load
gprs
ENTRY
(
kernel_thread_starter
)
la
%
r2
,
0
(%
r10
)
basr
%
r14
,%
r9
la
%
r2
,
0
br
%
r11
#
do_exit
ENTRY
(
ret_from_kernel_execve
)
ssm
__LC_PGM_NEW_PSW
#
disable
I
/
O
and
ext
.
interrupts
lgr
%
r15
,%
r2
lgr
%
r11
,%
r2
aghi
%
r15
,-
STACK_FRAME_OVERHEAD
xc
__SF_BACKCHAIN
(
8
,%
r15
),
__SF_BACKCHAIN
(%
r15
)
lg
%
r12
,
__LC_THREAD_INFO
ssm
__LC_SVC_NEW_PSW
#
reenable
interrupts
j
sysc_return
j
sysc_tracenogo
/*
*
Program
check
handler
routine
...
...
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