From 90f2f867d2820804ddc0a15206ce1b309ad9a4d0 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Sat, 15 Sep 2018 15:59:00 +0200 Subject: [PATCH] monocypher: increase stack requirements to 4096B --- pkg/monocypher/doc.txt | 6 +++--- tests/pkg_monocypher/Makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/monocypher/doc.txt b/pkg/monocypher/doc.txt index b2c39340e4..7cbd86a95a 100644 --- a/pkg/monocypher/doc.txt +++ b/pkg/monocypher/doc.txt @@ -16,14 +16,14 @@ * * @note Monocypher only supports 32bit platforms. * - * Monocypher requires around 3K of stack space depending slightly on the + * Monocypher requires around 4K of stack space depending slightly on the * platform, so beware that you're allocating at - * least `THREAD_STACKSIZE_DEFAULT + 3072` bytes. + * least `THREAD_STACKSIZE_DEFAULT + 4096` bytes. * * You can do it easily by adding: * * ```makefile - * CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_DEFAULT + 3072)' + * CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_DEFAULT + 4096)' * ``` * * to your makefile. diff --git a/tests/pkg_monocypher/Makefile b/tests/pkg_monocypher/Makefile index 7f7416ca29..88e6fdb169 100644 --- a/tests/pkg_monocypher/Makefile +++ b/tests/pkg_monocypher/Makefile @@ -8,7 +8,7 @@ BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \ BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6 # required for Monocypher (as described in the package documentation) -CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(3072 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)" +CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(4096 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)" USEMODULE += embunit USEMODULE += random