hujun260 opened a new pull request, #17383:
URL: https://github.com/apache/nuttx/pull/17383

   ## Summary
   We need to initialize the per - CPU registers as early as possible.
   
   ## Impact
   x86_64
   
   ## Testing
   
   qemu-intel64:nsh and add config
   CONFIG_SMP=y
   CONFIG_ARCH_INTERRUPTSTACK=4194304
   
   qemu-system-x86_64 -enable-kvm -cpu host -smp 4 -m 1G -kernel ./nuttx 
-nographic -serial mon:stdio -s
   SeaBIOS (version 1.16.3-debian-1.16.3-2)
   
   
   iPXE (https://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+3EFCAD00+3EF0AD00 CA00
                                                                                
  
   
   
   Booting from ROM..
   NuttShell (NSH) NuttX-12.11.0
   nsh> uname -a
   NuttX 12.11.0 7eb3a9d5676-dirty Nov 26 2025 11:49:12 x86_64 qemu-intel64
   nsh> ostest
   stdio_test: write fd=1
   stdio_test: Standard I/O Check: printf
   stdio_test: write fd=2
   ostest_main: putenv(Variable1=BadValue3)
   ostest_main: setenv(Variable1, GoodValue1, TRUE)
   ostest_main: setenv(Variable2, BadValue1, FALSE)
   ostest_main: setenv(Variable2, GoodValue2, TRUE)
   ostest_main: setenv(Variable3, GoodValue3, FALSE)
   ostest_main: setenv(Variable3, BadValue2, FALSE)
   show_variable: Variable=Variable1 has value=GoodValue1
   show_variable: Variable=Variable2 has value=GoodValue2
   show_variable: Variable=Variable3 has value=GoodValue3
   ostest_main: Started user_main at PID=6
   
   user_main: Begin argument test
   user_main: Started with argc=5
   user_main: argv[0]="ostest"
   user_main: argv[1]="Arg1"
   user_main: argv[2]="Arg2"
   user_main: argv[3]="Arg3"
   user_main: argv[4]="Arg4"
   
   End of test memory usage:
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena     b681000  b681000
   ordblks         1        1
   mxordblk  aa7e4a8  aa7e4a8
   


-- 
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]

Reply via email to