Skip to contentSkip to conversation

SKAS4 - Fix x86_64 arch_copy_thread

RFC PATCH New Jeff Dike 1 participant 1 message Feb 5, 2008 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

RFC PATCH 1/11 SKAS4 - Fix x86_64 arch_copy_thread

Fix a bug which will be important later. x86_64 copy_thread needs to copy %fs from parent to child.

include/asm-um/processor-x86_64.h +1 -0
index d946bf2..0528d9e 100644
@@ -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"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel