aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/support.S
diff options
context:
space:
mode:
authorJonathan Mini <mini@FreeBSD.org>2002-09-16 19:25:08 +0000
committerJonathan Mini <mini@FreeBSD.org>2002-09-16 19:25:08 +0000
commit575525a0005f266a0dee465d9df7127bfeef2c24 (patch)
tree1422f3e0eee520ddbe0818b7dcdb3a3c7f038166 /sys/amd64/amd64/support.S
parentf990583656178b1520a28b726c285a2f3fe4b353 (diff)
downloadsrc-575525a0005f266a0dee465d9df7127bfeef2c24.tar.gz
src-575525a0005f266a0dee465d9df7127bfeef2c24.zip
Add kernel support needed for the KSE-aware libpthread:
- Maintain fpu state across signals. - Use ucontext_t's to store KSE thread state. - Synthesize state for the UTS upon each upcall, rather than saving and copying a trapframe. - Save and restore FPU state properly in ucontext_t's. Reviewed by: deischen, julian Approved by: -arch
Notes
Notes: svn path=/head/; revision=103407
Diffstat (limited to 'sys/amd64/amd64/support.S')
-rw-r--r--sys/amd64/amd64/support.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S
index 23c611cfbd25..6e3286ed8fee 100644
--- a/sys/amd64/amd64/support.S
+++ b/sys/amd64/amd64/support.S
@@ -976,7 +976,7 @@ ENTRY(i586_copyin)
ENTRY(fastmove)
pushl %ebp
movl %esp,%ebp
- subl $PCB_SAVE87_SIZE+3*4,%esp
+ subl $PCB_SAVEFPU_SIZE+3*4,%esp
movl 8(%ebp),%ecx
cmpl $63,%ecx
@@ -1018,7 +1018,7 @@ ENTRY(fastmove)
movl PCPU(CURPCB),%esi
addl $PCB_SAVEFPU,%esi
cld
- movl $PCB_SAVE87_SIZE>>2,%ecx
+ movl $PCB_SAVEFPU_SIZE>>2,%ecx
rep
movsl
movl -12(%ebp),%ecx
@@ -1102,7 +1102,7 @@ fastmove_loop:
addl $PCB_SAVEFPU,%edi
movl %esp,%esi
cld
- movl $PCB_SAVE87_SIZE>>2,%ecx
+ movl $PCB_SAVEFPU_SIZE>>2,%ecx
rep
movsl
movl -12(%ebp),%ecx
@@ -1147,7 +1147,7 @@ fastmove_fault:
addl $PCB_SAVEFPU,%edi
movl %esp,%esi
cld
- movl $PCB_SAVE87_SIZE>>2,%ecx
+ movl $PCB_SAVEFPU_SIZE>>2,%ecx
rep
movsl