diff --git a/APP_Framework/Applications/benchmark/support/benchmark.c b/APP_Framework/Applications/benchmark/support/benchmark.c index 1053b196c..2a0b886f4 100644 --- a/APP_Framework/Applications/benchmark/support/benchmark.c +++ b/APP_Framework/Applications/benchmark/support/benchmark.c @@ -141,11 +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); + // 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 64bc796fc..60b6f3a21 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__ = 4096; +__STACKSIZE__ = 8192; OUTPUT_ARCH( "riscv" ) MEMORY { @@ -41,13 +41,6 @@ SECTIONS _shell_command_end = .; . = ALIGN(8); - /* section information for embench */ - . = ALIGN(8); - _benchmark_start = .; - KEEP (*(benchmark)) - _benchmark_end = .; - . = ALIGN(8); - PROVIDE(__ctors_start__ = .); KEEP (*(SORT(.init_array.*))) KEEP (*(.init_array))