Skip to content

Commit

Permalink
uml: x86_64 should copy %fs during fork
Browse files Browse the repository at this point in the history
%fs needs to be copied from parent to child during fork.

Tidied up some whitespace while I was here.

Signed-off-by: Jeff Dike <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
cfd-36 authored and Linus Torvalds committed Feb 8, 2008
1 parent 11a7ac2 commit 5aaf5f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-um/processor-x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static inline void rep_nop(void)
#define cpu_relax() rep_nop()

#define INIT_ARCH_THREAD { .debugregs = { [ 0 ... 7 ] = 0 }, \
.debugregs_seq = 0, \
.debugregs_seq = 0, \
.fs = 0, \
.faultinfo = { 0, 0, 0 } }

Expand All @@ -37,6 +37,7 @@ static inline void arch_flush_thread(struct arch_thread *thread)
static inline void arch_copy_thread(struct arch_thread *from,
struct arch_thread *to)
{
to->fs = from->fs;
}

#include "asm/arch/user.h"
Expand Down

0 comments on commit 5aaf5f7

Please sign in to comment.