diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-04-16 22:39:42 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2003-04-16 22:39:42 +0000 |
commit | 38c74189625b4ab59f49ce795c887a46b8fdbd3d (patch) | |
tree | 280ce2a7f56d736d30d0e533b709481baf59b93a /xenolinux-2.4.21-pre4-sparse/arch/xeno | |
parent | ddbb5431fdecfef31a70c810b52b6145ce05a6d5 (diff) | |
download | xen-38c74189625b4ab59f49ce795c887a46b8fdbd3d.tar.gz xen-38c74189625b4ab59f49ce795c887a46b8fdbd3d.tar.bz2 xen-38c74189625b4ab59f49ce795c887a46b8fdbd3d.zip |
bitkeeper revision 1.177 (3e9ddbaeZvT8WLJjkXqctK8YH2xb1A)
system.h, process.c:
Fixed Xenolinux context switch code so that FS and GS are properly saved for the old process.
Diffstat (limited to 'xenolinux-2.4.21-pre4-sparse/arch/xeno')
-rw-r--r-- | xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c b/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c index 4dc1273c7b..d4db667474 100644 --- a/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c +++ b/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c @@ -370,13 +370,6 @@ void __switch_to(struct task_struct *prev_p, struct task_struct *next_p) __sti(); /* - * Save away %fs and %gs. No need to save %es and %ds, as - * those are always kernel segments while inside the kernel. - */ - asm volatile("movl %%fs,%0":"=m" (*(int *)&prev->fs)); - asm volatile("movl %%gs,%0":"=m" (*(int *)&prev->gs)); - - /* * Restore %fs and %gs. */ loadsegment(fs, next->fs); |