[PSEH/RTL/CRT]

Some ARM related compilation fixes, plus remove a useless define

svn path=/trunk/; revision=63689
This commit is contained in:
Timo Kreuzer 2014-07-05 19:17:16 +00:00
parent 867be3b13e
commit ab9b6a4251
4 changed files with 16 additions and 2 deletions

View file

@ -33,6 +33,10 @@ else()
list(APPEND ASM_SOURCE
amd64/seh.s
amd64/seh_prolog.s)
elseif(ARCH STREQUAL "arm")
list(APPEND ASM_SOURCE
arm/seh_prolog.s)
list(APPEND SOURCE dummy.c)
endif()
list(APPEND SOURCE dummy.c)

View file

@ -221,8 +221,14 @@ static VOID
DbgPrint("R8: %I64x R9: %I64x R10: %I64x R11: %I64x\n", pc->R8, pc->R9, pc->R10, pc->R11);
DbgPrint("R12: %I64x R13: %I64x R14: %I64x R15: %I64x\n", pc->R12, pc->R13, pc->R14, pc->R15);
DbgPrint("EFLAGS: %.8x\n", pc->EFlags);
#elif defined(_M_ARM)
DbgPrint("Pc: %lx Lr: %lx Sp: %lx Cpsr: %lx\n", pc->Pc, pc->Lr, pc->Sp, pc->Cpsr);
DbgPrint("R0: %lx R1: %lx R2: %lx R3: %lx\n", pc->R0, pc->R1, pc->R2, pc->R3);
DbgPrint("R4: %lx R5: %lx R6: %lx R7: %lx\n", pc->R4, pc->R5, pc->R6, pc->R7);
DbgPrint("R8: %lx R9: %lx R10: %lx R11: %lx\n", pc->R8, pc->R9, pc->R10, pc->R11);
DbgPrint("R12: %lx \n", pc->R12);
#else
#warning Unknown architecture
#pragma message ("Unknown architecture")
#endif
}

View file

@ -13,6 +13,11 @@ elseif(ARCH STREQUAL "amd64")
if(NOT MSVC)
list(APPEND CHKSTK_SOURCE except/amd64/chkstk_ms.s)
endif()
elseif(ARCH STREQUAL "arm")
list(APPEND CHKSTK_ASM_SOURCE except/arm/chkstk_asm.s)
if(NOT MSVC)
list(APPEND CHKSTK_SOURCE except/arm/chkstk_ms.s)
endif()
elseif(ARCH STREQUAL "powerpc")
list(APPEND CHKSTK_ASM_SOURCE except/powerpc/chkstk_asm.s)
endif()

View file

@ -99,4 +99,3 @@ _internal_handle_float(
else _SET_NUMBER_(float);
}
}
#undef _SET_NUMBER_