Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120139
b: refs/heads/master
c: 43f8f9b
h: refs/heads/master
i:
  120137: 10cc419
  120135: 48a0eca
v: v3
  • Loading branch information
Paul Mundt committed Dec 22, 2008
1 parent 4eca8a8 commit b6dcaa5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 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: 7b80fb32b39a51ce3e1afa051f5a616eb8ecbed3
refs/heads/master: 43f8f9b95b65dc05368cd82268895b9508b17d50
19 changes: 4 additions & 15 deletions trunk/arch/sh/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,10 @@ void show_regs(struct pt_regs * regs)
/*
* Create a kernel thread
*/

/*
* This is the mechanism for creating a new kernel thread.
*
*/
extern void kernel_thread_helper(void);
__asm__(".align 5\n"
"kernel_thread_helper:\n\t"
"jsr @r5\n\t"
" nop\n\t"
"mov.l 1f, r1\n\t"
"jsr @r1\n\t"
" mov r0, r4\n\t"
".align 2\n\t"
"1:.long do_exit");
ATTRIB_NORET void kernel_thread_helper(void *arg, int (*fn)(void *))
{
do_exit(fn(arg));
}

/* Don't use this in BL=1(cli). Or else, CPU resets! */
int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
Expand Down

0 comments on commit b6dcaa5

Please sign in to comment.