summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-12 17:52:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-09-13 11:06:58 +0200
commit833e2e48a7fa24e71fbcf1eb1645384c9256bab5 (patch)
tree1facf7693fb4a87ef429475f15fd3c20ad5a6c54 /spec
parenta905255def7adcfd87ff0c94137a3ddbcabb2dfb (diff)
spec: Fix RTEMS_DEFINE_GLOBAL_SYMBOL()
The availability of a proper RTEMS_DEFINE_GLOBAL_SYMBOL() implementation depends on __asm__() and thus __GNUC__. Clarify documentation.
Diffstat (limited to 'spec')
-rw-r--r--spec/rtems/basedefs/if/define-global-symbol.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/rtems/basedefs/if/define-global-symbol.yml b/spec/rtems/basedefs/if/define-global-symbol.yml
index eb8e1ad4..2a3adb03 100644
--- a/spec/rtems/basedefs/if/define-global-symbol.yml
+++ b/spec/rtems/basedefs/if/define-global-symbol.yml
@@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
Defines a global symbol with the name and value.
copyrights:
-- Copyright (C) 2018, 2020 embedded brains GmbH & Co. KG
+- Copyright (C) 2018, 2023 embedded brains GmbH & Co. KG
definition:
default:
attributes: null
@@ -21,7 +21,7 @@ definition:
params: []
return: null
enabled-by:
- - defined(${/compiler/if/user-label-prefix:/name})
+ - defined(${/compiler/if/gnuc:/name})
description: |
This macro shall be placed at file scope.
enabled-by: true
@@ -44,7 +44,8 @@ params:
- 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.
+ understood by the assembler. The value shall be representable in the code
+ model of the ${/glossary/target-arch:/term}.
dir: null
name: _value
return: null