add benchmark to app. TODO: test benchmark.

This commit is contained in:
TXuian 2022-12-07 19:29:24 +08:00
parent 59fa9c1c20
commit ee849ad76d
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ pthread_t benchmark_task;
static int embenchmark(void) { static int embenchmark(void) {
pthread_attr_t attr; pthread_attr_t attr;
attr.schedparam.sched_priority = 25; attr.schedparam.sched_priority = 25;
attr.stacksize = 8192; attr.stacksize = 16384;
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL); PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
// run_benchmark(NULL); // run_benchmark(NULL);

View File

@ -10,7 +10,7 @@
* See the Mulan PSL v2 for more details. * See the Mulan PSL v2 for more details.
*/ */
__STACKSIZE__ = 8192; __STACKSIZE__ = 16384;
OUTPUT_ARCH( "riscv" ) OUTPUT_ARCH( "riscv" )
MEMORY MEMORY
{ {