|
@@ -402,10 +402,10 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long rsp,
|
|
|
p->thread.fs = me->thread.fs;
|
|
|
p->thread.gs = me->thread.gs;
|
|
|
|
|
|
- asm("movl %%gs,%0" : "=m" (p->thread.gsindex));
|
|
|
- asm("movl %%fs,%0" : "=m" (p->thread.fsindex));
|
|
|
- asm("movl %%es,%0" : "=m" (p->thread.es));
|
|
|
- asm("movl %%ds,%0" : "=m" (p->thread.ds));
|
|
|
+ asm("mov %%gs,%0" : "=m" (p->thread.gsindex));
|
|
|
+ asm("mov %%fs,%0" : "=m" (p->thread.fsindex));
|
|
|
+ asm("mov %%es,%0" : "=m" (p->thread.es));
|
|
|
+ asm("mov %%ds,%0" : "=m" (p->thread.ds));
|
|
|
|
|
|
if (unlikely(me->thread.io_bitmap_ptr != NULL)) {
|
|
|
p->thread.io_bitmap_ptr = kmalloc(IO_BITMAP_BYTES, GFP_KERNEL);
|
|
@@ -468,11 +468,11 @@ struct task_struct *__switch_to(struct task_struct *prev_p, struct task_struct *
|
|
|
* Switch DS and ES.
|
|
|
* This won't pick up thread selector changes, but I guess that is ok.
|
|
|
*/
|
|
|
- asm volatile("movl %%es,%0" : "=m" (prev->es));
|
|
|
+ asm volatile("mov %%es,%0" : "=m" (prev->es));
|
|
|
if (unlikely(next->es | prev->es))
|
|
|
loadsegment(es, next->es);
|
|
|
|
|
|
- asm volatile ("movl %%ds,%0" : "=m" (prev->ds));
|
|
|
+ asm volatile ("mov %%ds,%0" : "=m" (prev->ds));
|
|
|
if (unlikely(next->ds | prev->ds))
|
|
|
loadsegment(ds, next->ds);
|
|
|
|