diff --git a/APP_Framework/Applications/benchmark/support/benchmark.c b/APP_Framework/Applications/benchmark/support/benchmark.c index 2a0b886f4..055cba32f 100644 --- a/APP_Framework/Applications/benchmark/support/benchmark.c +++ b/APP_Framework/Applications/benchmark/support/benchmark.c @@ -141,12 +141,12 @@ void *run_benchmark(void *args) { pthread_t benchmark_task; static int embenchmark(void) { - // pthread_attr_t attr; - // attr.schedparam.sched_priority = 25; - // attr.stacksize = 4096; + pthread_attr_t attr; + attr.schedparam.sched_priority = 25; + attr.stacksize = 4096; - // PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); - run_benchmark(NULL); + PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); + // run_benchmark(NULL); return 0; } PRIV_SHELL_CMD_FUNCTION(embenchmark, benchmark, PRIV_SHELL_CMD_MAIN_ATTR); diff --git a/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds b/Ubiquitous/XiZi_IIoT/board/xidatong-riscv64/link.lds index 684f8f370..79bc98ce6 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__ = 6144; +__STACKSIZE__ = 4096; OUTPUT_ARCH( "riscv" ) MEMORY {