Skip to content

Commit a5b1649

Browse files
committed
add fninit to reset fpu registers before assembler routines
1 parent dfaafd3 commit a5b1649

27 files changed

+50
-1
lines changed

kernel/x86_64/amax.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454

5555
PROLOGUE
5656
PROFCODE
57+
58+
fninit
5759

5860
salq $BASE_SHIFT, INCX
5961

kernel/x86_64/asum.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949

5050
PROLOGUE
5151
PROFCODE
52-
52+
53+
fninit
5354
fldz
5455
testq M, M
5556
jle .L999

kernel/x86_64/dot.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
PROLOGUE
5151
PROFCODE
52+
fninit
5253

5354
salq $BASE_SHIFT, INCX
5455
salq $BASE_SHIFT, INCY

kernel/x86_64/iamax.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
PROLOGUE
6161
PROFCODE
62+
fninit
6263

6364
salq $BASE_SHIFT, INCX
6465

kernel/x86_64/izamax.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
PROLOGUE
6161
PROFCODE
62+
fninit
6263

6364
salq $ZBASE_SHIFT, INCX
6465

kernel/x86_64/nrm2.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
PROLOGUE
5151
PROFCODE
5252

53+
fninit
5354
fldz
5455
testq M, M
5556
jle .L999

kernel/x86_64/qconjg.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
PROLOGUE
4343
PROFCODE
44+
fninit
4445

4546
fldz
4647
FLD 1 * SIZE(ARG1)

kernel/x86_64/qdot.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858

5959
PROLOGUE
6060

61+
fninit
62+
6163
pushl %edi
6264
pushl %esi
6365
pushl %ebx

kernel/x86_64/qgemm_kernel_2x2.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
PROLOGUE
7575
PROFCODE
7676

77+
fninit
78+
7779
subq $STACKSIZE, %rsp
7880
movq %rbx, 0(%rsp)
7981
movq %rbp, 8(%rsp)

kernel/x86_64/qgemv_n.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
PROLOGUE
7777
PROFCODE
7878

79+
fninit
80+
7981
subq $STACKSIZE, %rsp
8082
movq %rbx, 0(%rsp)
8183
movq %rbp, 8(%rsp)

0 commit comments

Comments
 (0)