Move architecture-depedendent libc internal headers to jerry-libc/arch folder.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan 2015-06-15 14:20:53 +03:00
parent a293e21147
commit 630a1e8eba
6 changed files with 3 additions and 21 deletions

View File

@ -50,15 +50,6 @@ set(COMPILE_FLAGS_LIBC "${COMPILE_FLAGS_JERRY} ${C_FLAGS_JERRY}")
set(INCLUDE_LIBC_INTERFACE ${CMAKE_SOURCE_DIR}/jerry-libc/include)
set(INCLUDE_LIBC_INTERFACE ${INCLUDE_LIBC_INTERFACE} PARENT_SCOPE)
# Platform-specific
# Linux
set(INCLUDE_LIBC_LINUX target/linux)
# MCU
# STM32F3
set(INCLUDE_LIBC_MCU_STM32F3 target/mcu-stubs)
# STM32F4
set(INCLUDE_LIBC_MCU_STM32F4 target/mcu-stubs)
# Third-party
# Platform-specific
# Linux

View File

@ -1,9 +1,9 @@
#ifdef __TARGET_HOST_x64
# include "asm_x64.h"
# include "arch/x86-64.h"
#elif defined (__TARGET_HOST_x86)
# include "asm_x86.h"
# include "arch/x86-32.h"
#elif defined (__TARGET_HOST_ARMv7)
# include "asm_arm.h"
# include "arch/arm-v7.h"
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7"
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */

View File

@ -29,15 +29,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#ifdef __TARGET_HOST_x64
# include "asm_x64.h"
#elif defined (__TARGET_HOST_x86)
# include "asm_x86.h"
#elif defined (__TARGET_HOST_ARMv7)
# include "asm_arm.h"
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 "
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
#include "jerry-libc-defs.h"
LIBC_UNREACHABLE_STUB_FOR (int raise (int sig_no __attr_unused___))