Browse Source

Fixed #32 a SEGFAULT bug with gcc-4.6. According to i386 calling convention, The called funtion should remove the hidden return value address from the stack.

tags/v0.1alpha2^2
Xianyi 14 years ago
parent
commit
31040e4d80
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      Changelog.txt
  2. +3
    -0
      kernel/x86/zdot_sse2.S

+ 1
- 0
Changelog.txt View File

@@ -21,6 +21,7 @@ common:

x86/x86_64:
* Fixed #28 a wrong result of dsdot on x86_64.
* Fixed #32 a SEGFAULT bug of zdotc with gcc-4.6.

MIPS64:
* Fixed #28 a wrong result of dsdot on Loongson3A/MIPS64.


+ 3
- 0
kernel/x86/zdot_sse2.S View File

@@ -1541,5 +1541,8 @@
popl %ebx
popl %esi
popl %edi
/*remove the hidden return value address from the stack.*/
popl %ecx
xchgl %ecx, 0(%esp)
ret
EPILOGUE

Loading…
Cancel
Save