RTEMS 6.1-rc1
tc-basedefs-pendant.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
15/*
16 * Copyright (C) 2020 embedded brains GmbH & Co. KG
17 *
18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions
20 * are met:
21 * 1. Redistributions of source code must retain the above copyright
22 * notice, this list of conditions and the following disclaimer.
23 * 2. Redistributions in binary form must reproduce the above copyright
24 * notice, this list of conditions and the following disclaimer in the
25 * documentation and/or other materials provided with the distribution.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 * POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#ifndef _TC_BASEDEFS_PENDANT_H
41#define _TC_BASEDEFS_PENDANT_H
42
43/* The define is for the RTEMS_SYMBOL_NAME tests */
44#ifndef __USER_LABEL_PREFIX__
45#define __USER_LABEL_PREFIX__
46#endif
47
48#include <rtems.h>
49
50/* Remove for C++ code */
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55#define GLOBAL_SYMBOL global_symbol
56RTEMS_DECLARE_GLOBAL_SYMBOL( GLOBAL_SYMBOL );
57
58uintptr_t basedefs_get_global_symbol( void );
59int basedefs_use_prefixed_symbol_name( void );
60int basedefs_use_prefixed_upper_symbol_name( void );
61int basedefs_use_prefixed_symbol_id( void );
62int basedefs_weak_alias_0_func( int i );
63int basedefs_weak_alias_1_func( int i );
64int basedefs_weak_0_func( void );
65int basedefs_weak_1_func( void );
66
67extern const volatile int basedefs_weak_0_var;
68
69extern const volatile int basedefs_weak_1_var;
70
72basedefs_malloclike_func( size_t size );
73
74RTEMS_ALLOC_SIZE_2( 1, 2 ) void *
75basedefs_alloc_size_2_func( size_t size0, size_t size1 );
76
77RTEMS_ALLOC_ALIGN( 3 ) void *
78basedefs_alloc_align_func( size_t size, void **p, size_t alignment );
79
80RTEMS_ALLOC_SIZE( 1 ) void *
81basedefs_alloc_size_func( size_t size );
82
83RTEMS_ALLOC_SIZE_2( 1, 2 ) void *
84basedefs_alloc_size_2_func( size_t size0, size_t size1 );
85
86void basedefs_free( void *ptr );
87
88/* Remove for C++ code */
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* _TC_BASEDEFS_PENDANT_H */
#define RTEMS_ALLOC_ALIGN(_index)
Tells the compiler in a declaration that the memory allocation alignment parameter of this function i...
Definition: basedefs.h:193
#define RTEMS_ALLOC_SIZE(_index)
Tells the compiler in a declaration that the memory allocation size parameter of this function is sim...
Definition: basedefs.h:209
#define RTEMS_ALLOC_SIZE_2(_count_index, _size_index)
Tells the compiler in a declaration that the memory allocation item count and item size parameter of ...
Definition: basedefs.h:230
#define RTEMS_MALLOCLIKE
Tells the compiler in a declaration that this function is a memory allocation function similar to mal...
Definition: basedefs.h:648
RTEMS_DECLARE_GLOBAL_SYMBOL(_ISR_Stack_size)
Provides the configured interrupt stack size through an address.
This header file defines the RTEMS Classic API.
unsigned size
Definition: tte.h:1
unsigned p
Definition: tte.h:17