Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177368
b: refs/heads/master
c: e840227
h: refs/heads/master
v: v3
  • Loading branch information
Brian Gerst authored and H. Peter Anvin committed Dec 10, 2009
1 parent 1936552 commit d094806
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 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: fa4b8f84383ae197e643a46c36bf58ab8dffc95c
refs/heads/master: e840227c141116171c89ab1abb5cc9fee6fdb488
8 changes: 2 additions & 6 deletions trunk/arch/x86/kernel/entry_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -1047,12 +1047,8 @@ END(spurious_interrupt_bug)
ENTRY(kernel_thread_helper)
pushl $0 # fake return address for unwinder
CFI_STARTPROC
movl %edx,%eax
push %edx
CFI_ADJUST_CFA_OFFSET 4
call *%ebx
push %eax
CFI_ADJUST_CFA_OFFSET 4
movl %edi,%eax
call *%esi
call do_exit
ud2 # padding for call trace
CFI_ENDPROC
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/x86/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ void show_regs(struct pt_regs *regs)
}

/*
* This gets run with %bx containing the
* function to call, and %dx containing
* This gets run with %si containing the
* function to call, and %di containing
* the "args".
*/
extern void kernel_thread_helper(void);
Expand All @@ -208,8 +208,8 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)

memset(&regs, 0, sizeof(regs));

regs.bx = (unsigned long) fn;
regs.dx = (unsigned long) arg;
regs.si = (unsigned long) fn;
regs.di = (unsigned long) arg;

regs.ds = __USER_DS;
regs.es = __USER_DS;
Expand Down

0 comments on commit d094806

Please sign in to comment.