summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-05-07 08:19:04 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-05-07 08:19:04 +0000
commitbbcf536040e8d4eb3552034d378dec83be82f538 (patch)
tree92e0a1b9e1eb0de4ff952164751afbc933106999 /lib
parentbd82019afbb0f1c754c7bb39003972c929473001 (diff)
downloadFreeBSD-src-bbcf536040e8d4eb3552034d378dec83be82f538.zip
FreeBSD-src-bbcf536040e8d4eb3552034d378dec83be82f538.tar.gz
In order to let new binutils can compile it, replace movl with
movw for segment saving and restoring. Submitted by: Diego 'Flameeyes' Petteno flameeyes at gentoo dot org
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/i386/i386/thr_getcontext.S18
-rw-r--r--lib/libpthread/arch/i386/i386/thr_getcontext.S18
2 files changed, 18 insertions, 18 deletions
diff --git a/lib/libkse/arch/i386/i386/thr_getcontext.S b/lib/libkse/arch/i386/i386/thr_getcontext.S
index c3d6a78..d9d300f 100644
--- a/lib/libkse/arch/i386/i386/thr_getcontext.S
+++ b/lib/libkse/arch/i386/i386/thr_getcontext.S
@@ -63,10 +63,10 @@ ENTRY(__thr_setcontext)
movl $-1, %eax /* bzzzt, invalid context */
jmp 8f
2: /*movl 4(%edx), %gs*/ /* we don't touch %gs */
- movl 8(%edx), %fs
- movl 12(%edx), %es
- movl 16(%edx), %ds
- movl 76(%edx), %ss
+ movw 8(%edx), %fs
+ movw 12(%edx), %es
+ movw 16(%edx), %ds
+ movw 76(%edx), %ss
movl 20(%edx), %edi
movl 24(%edx), %esi
movl 28(%edx), %ebp
@@ -126,11 +126,11 @@ ENTRY(__thr_getcontext)
popl %edx /* restore edx and stack */
movl $-1, %eax
jmp 2f
-1: /*movl %gs, 4(%edx)*/ /* we don't touch %gs */
- movl %fs, 8(%edx)
- movl %es, 12(%edx)
- movl %ds, 16(%edx)
- movl %ss, 76(%edx)
+1: /*movw %gs, 4(%edx)*/ /* we don't touch %gs */
+ movw %fs, 8(%edx)
+ movw %es, 12(%edx)
+ movw %ds, 16(%edx)
+ movw %ss, 76(%edx)
movl %edi, 20(%edx)
movl %esi, 24(%edx)
movl %ebp, 28(%edx)
diff --git a/lib/libpthread/arch/i386/i386/thr_getcontext.S b/lib/libpthread/arch/i386/i386/thr_getcontext.S
index c3d6a78..d9d300f 100644
--- a/lib/libpthread/arch/i386/i386/thr_getcontext.S
+++ b/lib/libpthread/arch/i386/i386/thr_getcontext.S
@@ -63,10 +63,10 @@ ENTRY(__thr_setcontext)
movl $-1, %eax /* bzzzt, invalid context */
jmp 8f
2: /*movl 4(%edx), %gs*/ /* we don't touch %gs */
- movl 8(%edx), %fs
- movl 12(%edx), %es
- movl 16(%edx), %ds
- movl 76(%edx), %ss
+ movw 8(%edx), %fs
+ movw 12(%edx), %es
+ movw 16(%edx), %ds
+ movw 76(%edx), %ss
movl 20(%edx), %edi
movl 24(%edx), %esi
movl 28(%edx), %ebp
@@ -126,11 +126,11 @@ ENTRY(__thr_getcontext)
popl %edx /* restore edx and stack */
movl $-1, %eax
jmp 2f
-1: /*movl %gs, 4(%edx)*/ /* we don't touch %gs */
- movl %fs, 8(%edx)
- movl %es, 12(%edx)
- movl %ds, 16(%edx)
- movl %ss, 76(%edx)
+1: /*movw %gs, 4(%edx)*/ /* we don't touch %gs */
+ movw %fs, 8(%edx)
+ movw %es, 12(%edx)
+ movw %ds, 16(%edx)
+ movw %ss, 76(%edx)
movl %edi, 20(%edx)
movl %esi, 24(%edx)
movl %ebp, 28(%edx)
OpenPOWER on IntegriCloud