From e542de5758bd46818539035a08d29d1209a53403 Mon Sep 17 00:00:00 2001 From: TXuian <1163589503@qq.com> Date: Wed, 7 Dec 2022 19:19:31 +0800 Subject: [PATCH] add benchmark to app. TODO: test benchmark. --- APP_Framework/Applications/benchmark/support/benchmark.c | 2 +- Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/APP_Framework/Applications/benchmark/support/benchmark.c b/APP_Framework/Applications/benchmark/support/benchmark.c index 0bdc2d0ef..3ba48cae3 100644 --- a/APP_Framework/Applications/benchmark/support/benchmark.c +++ b/APP_Framework/Applications/benchmark/support/benchmark.c @@ -143,7 +143,7 @@ pthread_t benchmark_task; static int embenchmark(void) { pthread_attr_t attr; attr.schedparam.sched_priority = 25; - attr.stacksize = 5120; + attr.stacksize = 8192; PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); // run_benchmark(NULL); diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds index 6026a8d94..3774c1519 100644 --- a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds +++ b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds @@ -10,7 +10,7 @@ * See the Mulan PSL v2 for more details. */ -__STACKSIZE__ = 5120; +__STACKSIZE__ = 8192; OUTPUT_ARCH( "riscv" ) MEMORY {