mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 00:43:11 +00:00
[AMD64]
Switch from underscore prefixed symbols to unprefixed symbols. (MSVC compatibility) svn path=/branches/ros-amd64-bringup/; revision=45410
This commit is contained in:
parent
cb076d0fef
commit
28c8b7fbec
45 changed files with 523 additions and 546 deletions
|
@ -8,8 +8,7 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
#include <reactos/asm.h>
|
||||
|
||||
.intel_syntax noprefix
|
||||
|
||||
|
@ -21,11 +20,11 @@ _MsgUnimplemented:
|
|||
.proc _chkstk
|
||||
UNIMPLEMENTED chkstk
|
||||
ret
|
||||
.endproc
|
||||
.endp
|
||||
|
||||
.proc _alloca_probe
|
||||
UNIMPLEMENTED alloca_probe
|
||||
ret
|
||||
.endproc
|
||||
.endp
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -8,21 +8,21 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
.globl __fltused
|
||||
__fltused:
|
||||
PUBLIC _fltused
|
||||
_fltused:
|
||||
.long 0x9875
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc alldiv
|
||||
UNIMPLEMENTED alldiv
|
||||
ret
|
||||
|
||||
.endproc
|
||||
.endp alldiv
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc atan
|
||||
PUBLIC atan
|
||||
atan:
|
||||
UNIMPLEMENTED atan
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc atan2
|
||||
PUBLIC atan2
|
||||
atan2:
|
||||
UNIMPLEMENTED atan2
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,15 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc ceil
|
||||
PUBLIC ceil
|
||||
ceil:
|
||||
UNIMPLEMENTED ceil
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,13 +8,15 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc ceilf
|
||||
PUBLIC ceilf
|
||||
ceilf:
|
||||
/* Put parameter on the stack */
|
||||
movss [rsp - 0x10], xmm0
|
||||
fld dword ptr [rsp]
|
||||
|
@ -36,5 +38,3 @@
|
|||
fstp dword ptr [rsp - 0x10]
|
||||
movss xmm0, [rsp - 0x10]
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,15 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc exp
|
||||
PUBLIC exp
|
||||
exp:
|
||||
UNIMPLEMENTED exp
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,15 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc fabs
|
||||
PUBLIC fabs
|
||||
fabs:
|
||||
UNIMPLEMENTED fabs
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,14 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc floor
|
||||
PUBLIC floor
|
||||
floor:
|
||||
UNIMPLEMENTED floor
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,13 +8,15 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
.code64
|
||||
|
||||
.proc floorf
|
||||
PUBLIC floorf
|
||||
floorf:
|
||||
/* Put parameter on the stack */
|
||||
movss [rsp - 0x10], xmm0
|
||||
fld dword ptr [rsp]
|
||||
|
@ -36,5 +38,3 @@
|
|||
fstp dword ptr [rsp - 0x10]
|
||||
movss xmm0, [rsp - 0x10]
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc fmod
|
||||
PUBLIC fmod
|
||||
fmod:
|
||||
UNIMPLEMENTED fmod
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc fmodf
|
||||
PUBLIC fmodf
|
||||
fmodf:
|
||||
UNIMPLEMENTED fmodf
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc ldexp
|
||||
PUBLIC ldexp
|
||||
ldexp:
|
||||
UNIMPLEMENTED ldexp
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc log
|
||||
PUBLIC log
|
||||
log:
|
||||
UNIMPLEMENTED log
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,13 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc log10
|
||||
PUBLIC log10
|
||||
log10:
|
||||
UNIMPLEMENTED log10
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,13 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc pow
|
||||
PUBLIC pow
|
||||
pow:
|
||||
UNIMPLEMENTED pow
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc sqrt
|
||||
PUBLIC sqrt
|
||||
sqrt:
|
||||
UNIMPLEMENTED sqrt
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -8,13 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc sqrtf
|
||||
PUBLIC sqrtf
|
||||
sqrtf:
|
||||
sqrtss xmm0, xmm0
|
||||
ret
|
||||
.endproc
|
||||
|
|
|
@ -8,14 +8,12 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <reactos/asm.h>
|
||||
#include <ndk/amd64/asm.h>
|
||||
#include <ndk/amd64/asmmacro.S>
|
||||
|
||||
.intel_syntax noprefix
|
||||
/* DATA *********************************************************************/
|
||||
|
||||
|
||||
.proc tan
|
||||
PUBLIC tan
|
||||
tan:
|
||||
UNIMPLEMENTED tan
|
||||
ret
|
||||
|
||||
.endproc
|
||||
|
|
|
@ -44,8 +44,8 @@
|
|||
* Returns: 0
|
||||
* Notes: Sets up the jmp_buf
|
||||
*/
|
||||
PUBLIC __setjmp
|
||||
.proc __setjmp
|
||||
PUBLIC _setjmp
|
||||
.proc _setjmp
|
||||
/* Load rsp as it was before the call into rax */
|
||||
lea rax, [rsp + 8]
|
||||
/* Load return address into r8 */
|
||||
|
@ -73,7 +73,7 @@ PUBLIC __setjmp
|
|||
movdqa [rcx + JUMP_BUFFER_Xmm15], xmm15
|
||||
xor rax, rax
|
||||
ret
|
||||
.endp
|
||||
.endp _setjmp
|
||||
|
||||
/*
|
||||
* int _setjmpex(jmp_buf _Buf,void *_Ctx);
|
||||
|
@ -83,8 +83,8 @@ PUBLIC __setjmp
|
|||
* Returns: 0
|
||||
* Notes: Sets up the jmp_buf
|
||||
*/
|
||||
PUBLIC __setjmpex
|
||||
.proc __setjmpex
|
||||
PUBLIC _setjmpex
|
||||
.proc _setjmpex
|
||||
/* Load rsp as it was before the call into rax */
|
||||
lea rax, [rsp + 8]
|
||||
/* Load return address into r8 */
|
||||
|
@ -112,7 +112,7 @@ PUBLIC __setjmpex
|
|||
movdqa [rcx + JUMP_BUFFER_Xmm15], xmm15
|
||||
xor rax, rax
|
||||
ret
|
||||
.endp
|
||||
.endp _setjmpex
|
||||
|
||||
|
||||
/*
|
||||
|
@ -123,8 +123,8 @@ PUBLIC __setjmpex
|
|||
* Returns: Doesn't return
|
||||
* Notes: Non-local goto
|
||||
*/
|
||||
PUBLIC _longjmp
|
||||
.proc _longjmp
|
||||
PUBLIC longjmp
|
||||
.proc longjmp
|
||||
|
||||
// FIXME: handle frame
|
||||
|
||||
|
@ -155,4 +155,4 @@ PUBLIC _longjmp
|
|||
jnz 2f
|
||||
inc rax
|
||||
2: jmp r8
|
||||
.endp
|
||||
.endp longjmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue