git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
arch
/
frv
/
kernel
/
kernel_thread.S
diff --git
a/arch/frv/kernel/kernel_thread.S
b/arch/frv/kernel/kernel_thread.S
index
4531c83
..
b246d00
100644
(file)
--- a/
arch/frv/kernel/kernel_thread.S
+++ b/
arch/frv/kernel/kernel_thread.S
@@
-13,6
+13,8
@@
#include <asm/unistd.h>
#define CLONE_VM 0x00000100 /* set if VM shared between processes */
#include <asm/unistd.h>
#define CLONE_VM 0x00000100 /* set if VM shared between processes */
+#define CLONE_KTHREAD 0x10000000 /* kernel thread */
+#define CLONE_KT (CLONE_VM | CLONE_KTHREAD) /* kernel thread flags */
#define KERN_ERR "<3>"
.section .rodata
#define KERN_ERR "<3>"
.section .rodata
@@
-37,7
+39,7
@@
kernel_thread:
# start by forking the current process, but with shared VM
setlos.p #__NR_clone,gr7 ; syscall number
# start by forking the current process, but with shared VM
setlos.p #__NR_clone,gr7 ; syscall number
- ori gr10,#CLONE_
VM
,gr8 ; first syscall arg [clone_flags]
+ ori gr10,#CLONE_
KT
,gr8 ; first syscall arg [clone_flags]
sethi.p #0xe4e4,gr9 ; second syscall arg [newsp]
setlo #0xe4e4,gr9
setlos.p #0,gr10 ; third syscall arg [parent_tidptr]
sethi.p #0xe4e4,gr9 ; second syscall arg [newsp]
setlo #0xe4e4,gr9
setlos.p #0,gr10 ; third syscall arg [parent_tidptr]