diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-10-25 11:10:50 +0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-10-25 15:00:03 -0700 |
commit | 3306a72669a2af23b324540b08e68e82ac5b7dab (patch) | |
tree | 0363c3f7120560ccf1750281a5ab366640734181 /arch/xtensa/include | |
parent | 6ebe7da25b7879194fdb5c43ea67b383dd9014d6 (diff) | |
download | op-kernel-dev-3306a72669a2af23b324540b08e68e82ac5b7dab.zip op-kernel-dev-3306a72669a2af23b324540b08e68e82ac5b7dab.tar.gz |
xtensa: switch to generic kernel_thread()
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/processor.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/xtensa/include/asm/processor.h b/arch/xtensa/include/asm/processor.h index 5c371d8..2d630e7 100644 --- a/arch/xtensa/include/asm/processor.h +++ b/arch/xtensa/include/asm/processor.h @@ -152,6 +152,7 @@ struct thread_struct { /* Clearing a0 terminates the backtrace. */ #define start_thread(regs, new_pc, new_sp) \ + memset(regs, 0, sizeof(*regs)); \ regs->pc = new_pc; \ regs->ps = USER_PS_VALUE; \ regs->areg[1] = new_sp; \ @@ -168,9 +169,6 @@ struct mm_struct; /* Free all resources held by a thread. */ #define release_thread(thread) do { } while(0) -/* Create a kernel thread without removing it from tasklists */ -extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); - /* Copy and release all segment info associated with a VM */ #define copy_segments(p, mm) do { } while(0) #define release_segments(mm) do { } while(0) |