diff options
| author | J08nY | 2023-02-21 10:47:03 +0100 |
|---|---|---|
| committer | J08nY | 2023-02-21 10:47:03 +0100 |
| commit | 3790770c2bc6ca618df8a95f0f5efc15ce9eba21 (patch) | |
| tree | 315ef06798e8a084f2e6a6519a7b295f15800807 /pyecsca/codegen | |
| parent | 8c3f50503153ecdea17d7b52812a4419c6dfbf0f (diff) | |
| download | pyecsca-codegen-3790770c2bc6ca618df8a95f0f5efc15ce9eba21.tar.gz pyecsca-codegen-3790770c2bc6ca618df8a95f0f5efc15ce9eba21.tar.zst pyecsca-codegen-3790770c2bc6ca618df8a95f0f5efc15ce9eba21.zip | |
Don't inline the inits.
Diffstat (limited to 'pyecsca/codegen')
| -rw-r--r-- | pyecsca/codegen/templates/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyecsca/codegen/templates/main.c b/pyecsca/codegen/templates/main.c index 7854961..9014c9a 100644 --- a/pyecsca/codegen/templates/main.c +++ b/pyecsca/codegen/templates/main.c @@ -559,7 +559,7 @@ static uint8_t cmd_set_trigger(uint8_t *data, uint16_t len) { return 0; } -void init(void) { +__attribute__((noinline)) void init(void) { // Initalize the platform, UART, triggers. platform_init(); init_uart(); @@ -576,7 +576,7 @@ void init(void) { bn_init(&privkey); } -void deinit(void) { +__attribute__((noinline)) void deinit(void) { // Clear up allocated stuff. bn_clear(&privkey); curve_free(curve); |
