Skip to contentSkip to conversation

SKAS4 - Fix x86_64 arch_copy_thread

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

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

RFC PATCH 1/10 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"

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel