Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332985
b: refs/heads/master
c: 1f02ab4
h: refs/heads/master
i:
  332983: fa0570b
v: v3
  • Loading branch information
Al Viro committed Oct 1, 2012
1 parent c29608b commit b4e3c53
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6783eaa2e1253fbcbe2c2f6bb4c843abf1343caf
refs/heads/master: 1f02ab4a237086095bd584f3446da307ac2d02e6
2 changes: 0 additions & 2 deletions trunk/arch/um/include/asm/processor-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ static inline void release_thread(struct task_struct *task)
{
}

extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);

extern unsigned long thread_saved_pc(struct task_struct *t);

static inline void mm_copy_segments(struct mm_struct *from_mm,
Expand Down
17 changes: 3 additions & 14 deletions trunk/arch/um/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,6 @@ unsigned long alloc_stack(int order, int atomic)
return page;
}

int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
{
int pid;

current->thread.request.u.thread.proc = fn;
current->thread.request.u.thread.arg = arg;
pid = do_fork(CLONE_VM | CLONE_UNTRACED | flags, 0,
&current->thread.regs, 0, NULL, NULL);
return pid;
}
EXPORT_SYMBOL(kernel_thread);

static inline void set_current(struct task_struct *task)
{
cpu_tasks[task_thread_info(task)->cpu] = ((struct cpu_task)
Expand Down Expand Up @@ -177,7 +165,7 @@ void fork_handler(void)
}

int copy_thread(unsigned long clone_flags, unsigned long sp,
unsigned long stack_top, struct task_struct * p,
unsigned long arg, struct task_struct * p,
struct pt_regs *regs)
{
void (*handler)(void);
Expand All @@ -198,7 +186,8 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
arch_copy_thread(&current->thread.arch, &p->thread.arch);
} else {
get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp);
p->thread.request.u.thread = current->thread.request.u.thread;
p->thread.request.u.thread.proc = (int (*)(void *))sp;
p->thread.request.u.thread.arg = (void *)arg;
handler = new_thread_handler;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/um/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ endmenu
config UML_X86
def_bool y
select GENERIC_FIND_FIRST_BIT
select GENERIC_KERNEL_THREAD

config 64BIT
bool "64-bit kernel" if SUBARCH = "x86"
Expand Down

0 comments on commit b4e3c53

Please sign in to comment.