Skip to content
Snippets Groups Projects
Unverified Commit e0e02c04 authored by MichelRottleuthner's avatar MichelRottleuthner Committed by GitHub
Browse files

Merge pull request #10386 from PeterKietzmann/pr_puf_variables_move

sys/puf_sram: CPU specific variable allocation
parents d15f2873 0be350e3
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,11 @@ extern "C" { ...@@ -68,6 +68,11 @@ extern "C" {
#endif #endif
/** @} */ /** @} */
/**
* @brief Attribute for memory sections required by SRAM PUF
*/
#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".puf")))
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
#include "puf_sram.h" #include "puf_sram.h"
/* Allocation of the PUF seed variable */ /* 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 */ /* 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 */ /* 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) void puf_sram_init(const uint8_t *ram, size_t len)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment