mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
16eff9b6ed
Initial version to test 64 bit compatibility. Instead of a separate board, the inital version for Linux/x86_64 is enabled by setting the environment variable `NATIVE_64BIT=y` and compiling as usual. Not currently implemented: * Architectures other than x86_64 or operating systems other than Linux * No FreeBSD support * No Aarch support * Rust support for x86_64
50 lines
1019 B
C
50 lines
1019 B
C
/*
|
|
* Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup cpu_native
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Architecture details
|
|
*
|
|
* @author Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
|
*
|
|
*/
|
|
|
|
#ifndef ARCHITECTURE_ARCH_H
|
|
#define ARCHITECTURE_ARCH_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief raise SIGTRAP
|
|
*
|
|
* We must not include signal.h directly into RIOT application namespace.
|
|
*/
|
|
void native_breakpoint(void);
|
|
|
|
/* Doc is provided centrally in architecture.h, hide this from Doxygen */
|
|
#ifndef DOXYGEN
|
|
#if (__SIZEOF_POINTER__ == 8)
|
|
#define ARCHITECTURE_WORD_BITS (64U)
|
|
#else
|
|
#define ARCHITECTURE_WORD_BITS (32U)
|
|
#endif
|
|
#define ARCHITECTURE_BREAKPOINT(v) native_breakpoint()
|
|
#endif /* DOXYGEN */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|
|
#endif /* ARCHITECTURE_ARCH_H */
|