Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
0be350e3
Commit
0be350e3
authored
6 years ago
by
Peter Kietzmann
Browse files
Options
Downloads
Patches
Plain Diff
sys/puf_sram: CPU specific attributes for variables
parent
1f7ec9b2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cpu/cortexm_common/include/cpu_conf_common.h
+5
-0
5 additions, 0 deletions
cpu/cortexm_common/include/cpu_conf_common.h
sys/puf_sram/puf_sram.c
+3
-3
3 additions, 3 deletions
sys/puf_sram/puf_sram.c
with
8 additions
and
3 deletions
cpu/cortexm_common/include/cpu_conf_common.h
+
5
−
0
View file @
0be350e3
...
...
@@ -68,6 +68,11 @@ extern "C" {
#endif
/** @} */
/**
* @brief Attribute for memory sections required by SRAM PUF
*/
#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".puf")))
#ifdef __cplusplus
}
#endif
...
...
This diff is collapsed.
Click to expand it.
sys/puf_sram/puf_sram.c
+
3
−
3
View file @
0be350e3
...
...
@@ -19,13 +19,13 @@
#include
"puf_sram.h"
/* Allocation of the PUF seed variable */
__attribute__
((
used
,
section
(
".puf"
)))
uint32_t
puf_sram_seed
;
PUF_SRAM_ATTRIBUTES
uint32_t
puf_sram_seed
;
/* Allocation of the PUF seed state */
__attribute__
((
used
,
section
(
".puf"
)))
uint32_t
puf_sram_state
;
PUF_SRAM_ATTRIBUTES
uint32_t
puf_sram_state
;
/* Allocation of the memory marker */
__attribute__
((
used
,
section
(
".puf"
)))
uint32_t
puf_sram_marker
;
PUF_SRAM_ATTRIBUTES
uint32_t
puf_sram_marker
;
void
puf_sram_init
(
const
uint8_t
*
ram
,
size_t
len
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment