incude asm.inc instead of reactos/asm.h
Fix a bug that smeaked into _chkstk

svn path=/branches/cmake-bringup/; revision=49591
This commit is contained in:
Timo Kreuzer 2010-11-15 01:29:12 +00:00
parent 0c7d0cbc07
commit ab6c2ee54c
66 changed files with 128 additions and 112 deletions

View file

@ -8,11 +8,10 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <asm.inc>
.intel_syntax noprefix
.global MsgUnimplemented
PUBLIC MsgUnimplemented
MsgUnimplemented:
.asciz "WARNING: %s at %s:%d is UNIMPLEMENTED!\n"
@ -27,4 +26,5 @@ MsgUnimplemented:
ret
.endp
END
/* EOF */

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <ndk/asm.h>
.intel_syntax noprefix
#include <asm.inc>
#include <ksamd64.inc>
#define DISPOSITION_DISMISS 0
#define DISPOSITION_CONTINUE_SEARCH 1
@ -54,3 +54,5 @@ _except_handler2:
_except_handler3:
ret
.endfunc
END

View file

@ -7,8 +7,9 @@
* PROGRAMER: KJK::Hyperion <noog@libero.it>
*/
#include <reactos/asm.h>
#include <ndk/asm.h>
#include <asm.inc>
#include <ks386.inc>
#define PAGE_SIZE 4096
PUBLIC __chkstk
@ -28,12 +29,11 @@ __alloca_probe:
push ecx
/* ECX = top of the previous stack frame */
lea eax, [esp + 8]
lea ecx, [esp + 8]
/* probe the desired memory, page by page */
cmp eax, PAGE_SIZE
jge .l_MoreThanAPage
jmp .l_LessThanAPage
jl .l_LessThanAPage
.l_MoreThanAPage:

View file

@ -8,20 +8,23 @@
/* INCLUDES ******************************************************************/
#include <ndk/asm.h>
#include <asm.inc>
#include <ks386.inc>
/* GLOBALS *******************************************************************/
.globl __EH_prolog
/* FUNCTIONS *****************************************************************/
.code
PUBLIC __EH_prolog
// Copied from Wine.
__EH_prolog:
pushl $-1
pushl %eax
pushl %fs:0
movl %esp, %fs:0
movl 12(%esp), %eax
movl %ebp, 12(%esp)
leal 12(%esp), %ebp
pushl %eax
push -1
push eax
push fs:0
mov fs:0, esp
mov eax, [esp + 12]
mov [esp + 12], ebp
lea ebp, [esp + 12]
push eax
ret
END

View file

@ -8,7 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <asm.inc>
#define DISPOSITION_DISMISS 0
#define DISPOSITION_CONTINUE_SEARCH 1

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* DATA *********************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
@ -26,8 +26,8 @@ ceilf:
/* Change fpu control word to round up */
fstcw [rsp + 8]
mov eax, [rsp + 8]
or eax, 0x00800
and eax, 0x0fbff
or eax, HEX(00800)
and eax, HEX(0fbff)
mov [rsp + 12], eax
fldcw [rsp + 12]
@ -42,3 +42,5 @@ ceilf:
add rsp, 16
ret
END

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
@ -20,3 +20,4 @@ exp:
UNIMPLEMENTED exp
ret
END

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* FUNCTIONS ****************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/
@ -19,3 +19,5 @@ PUBLIC floor
floor:
UNIMPLEMENTED floor
ret
END

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* FUNCTIONS ****************************************************************/

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* DATA *********************************************************************/
@ -17,3 +16,5 @@ PUBLIC fmod
fmod:
UNIMPLEMENTED fmod
ret
END

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* DATA *********************************************************************/
@ -17,3 +16,5 @@ PUBLIC fmodf
fmodf:
UNIMPLEMENTED fmodf
ret
END

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* DATA *********************************************************************/
@ -17,3 +16,5 @@ PUBLIC ldexp
ldexp:
UNIMPLEMENTED ldexp
ret
END

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* DATA *********************************************************************/

View file

@ -8,8 +8,7 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
/* DATA *********************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* DATA *********************************************************************/

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* DATA *********************************************************************/
@ -17,3 +17,5 @@ PUBLIC sqrt
sqrt:
UNIMPLEMENTED sqrt
ret
END

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* DATA *********************************************************************/
@ -17,3 +17,5 @@ PUBLIC sqrtf
sqrtf:
sqrtss xmm0, xmm0
ret
END

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
/* DATA *********************************************************************/
@ -17,3 +17,5 @@ PUBLIC tan
tan:
UNIMPLEMENTED tan
ret
END

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __alldiv
PUBLIC __fltused

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __alldvrm

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __allmul

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __allrem

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __allshl

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __allshr

View file

@ -1,5 +1,5 @@
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _atan2

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _atan

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __aulldiv

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __aulldvrm

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __aullrem

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __aullshr

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _ceil

View file

@ -4,7 +4,7 @@
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <reactos/asm.h>
#include <asm.inc>
.code
.align 4

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _cos

View file

@ -1,5 +1,5 @@
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _exp

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _fabs

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _floor

View file

@ -8,7 +8,7 @@
* Danny Smith <dannysmith@users.sourceforge.net>
*/
#include <reactos/asm.h>
#include <asm.inc>
.code
.align 4

View file

@ -1,5 +1,5 @@
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _fmod

View file

@ -1,5 +1,5 @@
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _fmodf

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC __ftol

View file

@ -8,7 +8,7 @@
*
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _log10

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _log

View file

@ -20,7 +20,7 @@
02111-1307 USA. */
/* Reactos modifications */
#include <reactos/asm.h>
#include <asm.inc>
#define ALIGNARG(log2) log2
#define ASM_TYPE_DIRECTIVE(name,typearg)
@ -29,9 +29,8 @@
PUBLIC _pow
.data
.text
ASSUME CS:NOTHING, DS:NOTHING, ES:NOTHING, FS:NOTHING, GS:NOTHING
.data
ASSUME nothing
.align ALIGNARG(4)
ASM_TYPE_DIRECTIVE(infinity,@object)
@ -77,8 +76,7 @@ p63:
#define MOX(op,x,f) op[x*f]
#endif
.code
.text
.code
_pow:
fld qword ptr [esp + 12] // y
fxam

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _sin

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _sqrt

View file

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*/
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tan

View file

@ -5,7 +5,8 @@
* FILE: lib/sdk/crt/mem/i386/memchr.s
*/
#include <reactos/asm.h>
#include <asm.inc>
#include <ks386.inc>
/*
* void* memchr(const void* s, int c, size_t n)

View file

@ -1,10 +1,10 @@
/*
* void *memcpy (void *to, const void *from, size_t count)
*
* NOTE: This code is a duplicate of memmove function from memmove_asm.s
*/
#include <reactos/asm.h>
#include <asm.inc>
#include <ks386.inc>
PUBLIC _memcpy
PUBLIC _memmove

View file

@ -2,7 +2,8 @@
* $Id$
*/
#include <reactos/asm.h>
#include <asm.inc>
#include <ks386.inc>
/*
* void *memset (void *src, int val, size_t count)

View file

@ -8,8 +8,8 @@
/* INCLUDES ******************************************************************/
#include <reactos/asm.h>
#include <ndk/amd64/asm.h>
#include <asm.inc>
#include <ksamd64.inc>
#define JUMP_BUFFER_Frame 0x00
#define JUMP_BUFFER_Rbx 0x08
@ -156,3 +156,5 @@ PUBLIC longjmp
inc rax
2: jmp r8
.endp longjmp
END

View file

@ -9,8 +9,7 @@
* complete implementation
*/
#include <reactos/asm.h>
#include <ndk/asm.h>
#include <asm.inc>
#define JB_BP 0
#define JB_BX 1

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcscat
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcschr
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcscmp
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcscpy
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcslen
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcsncat
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcsncmp
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcsncpy
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcsnlen
.code

View file

@ -2,7 +2,7 @@
*/
#include "tchar.h"
#include <reactos/asm.h>
#include <asm.inc>
PUBLIC _tcsrchr
.code