summaryrefslogtreecommitdiffstats
path: root/spec/if/rtems/basedefs/define-global-symbol.yml
blob: 2abb27c5cf3f38e3e34defbbac1a821e0d53483c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2018, 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: []
interface-brief: |
  Defines a global symbol with the specified name and value.
interface-definition:
  default: ""
  variants:
  - definition: |
      __asm__(
        "\t.globl " ${xstring:/interface-name}( ${symbol-name:/interface-name}( _name ) )
        "\n\t.set " ${xstring:/interface-name}( ${symbol-name:/interface-name}( _name ) )
        ", " ${string:/interface-name}( _value ) "\n"
      )
    enabled-by:
    - defined(${/if/compiler/user-label-prefix:/interface-name})
interface-description: |
  This macro shall be placed at file scope.
interface-name: RTEMS_DEFINE_GLOBAL_SYMBOL
interface-params:
- description: |
    is the user defined name of the symbol.  The name shall be a valid
    designator.  On the name a macro expansion is performed and afterwards it
    is stringified.
  dir: null
  name: _name
- description: |
    is the value of the symbol.  On the value a macro expansion is performed
    and afterwards it is stringified.  It shall expand to an integer expression
    understood by the assembler.
  dir: null
  name: _value
interface-return:
  return: null
  return-values: []
interface-type: macro
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: /groups/api/basedefs
type: interface