xiaoxiang781216 commented on PR #6365: URL: https://github.com/apache/incubator-nuttx/pull/6365#issuecomment-1147010266
> > @masayuki2009 fixed, please try again. > > @xiaoxiang781216 Hmm, the issue still happens. > > ``` > $ qemu-6.2/build/riscv64-softmmu/qemu-system-riscv64 -semihosting -nographic -cpu rv64 -smp 8 -M virt -bios none -kernel ./nuttx > ABC > NuttShell (NSH) NuttX-3.6.1 > nsh> uname -a > NuttX 3.6.1 3e4e5e0b82-dirty Jun 6 2022 08:11:36 risc-v rv-virt > nsh> hello > Hello, World!! > [ 0.000000] riscv_stackdump: 0000000080209e40: 00000000 00000000 800015bc 00000000 c00014de 00000000 00040020 00000000 > [ 0.000000] riscv_showtasks: PID PRI USED STACK FILLED COMMAND > [ 0.000000] riscv_showtasks: ---- ---- 776 2048 37.8% irq > [ 0.000000] riscv_dump_task: 0 0 1328 3024 43.9% Idle Task > [ 0.000000] riscv_dump_task: 1 100 2000 2000 100.0%! /system/bin/init > [ 0.000000] riscv_dump_task: 2 100 536 2016 26.5% hello > ``` init task restore the stack to the original size(2000), but the consumption is still higher than the capacity. All patch in PR #6337 is the code refactor and the stack consumption should be same as before except: https://github.com/apache/incubator-nuttx/pull/6337/commits/48a0a2ebf3c927c7374b226ac45394df4b877dbe @masayuki2009 the follow command look like just generate the kernel binary: ``` ./tools/configure.sh rv-virt:knsh64 make -j8 ``` Could you tell me how to generate hello and init elf in the kernel mode? BTW, is it right to set CONFIG_SYSTEM_NSH=y here? https://github.com/apache/incubator-nuttx/blob/master/boards/risc-v/qemu-rv/rv-virt/configs/knsh64/defconfig#L93 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
