architecture_arch.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef ARCHITECTURE_ARCH_H
20 #define ARCHITECTURE_ARCH_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
31 void native_breakpoint(void);
32 
33 /* Doc is provided centrally in architecture.h, hide this from Doxygen */
34 #ifndef DOXYGEN
35 # if (__SIZEOF_POINTER__ == 8)
36 # define ARCHITECTURE_WORD_BITS (64U)
37 # else
38 # define ARCHITECTURE_WORD_BITS (32U)
39 # endif
40 # define ARCHITECTURE_BREAKPOINT(v) native_breakpoint()
41 #endif /* DOXYGEN */
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* ARCHITECTURE_ARCH_H */
void native_breakpoint(void)
raise SIGTRAP