chirping78 commented on PR #16255:
URL: https://github.com/apache/nuttx/pull/16255#issuecomment-2826131109

   @tmedicci,
    
   good to known this can be fixed by link script.
   
   Here is my test result:
   
   use `objdump` to disassemble, the result is correct now!
   ```
   4201b748 <cmd_uname>:
   4201b748:       02e136          entry   a1, 0x170
   4201b74b:       060c            movi.n  a6, 0
   4201b74d:       506132          s32i    a3, a1, 0x140
   4201b750:       025d            mov.n   a5, a2
   4201b752:       063d            mov.n   a3, a6
   4201b754:       001306          j       4201b7a4 <cmd_uname+0x5c>
   4201b757:       00              .byte 00
   4201b758:       9fc222          addi    a2, a2, -97
   4201b75b:       571c            movi.n  a7, 21
   4201b75d:       303727          bltu    a7, a2, 4201b791 <cmd_uname+0x49>
   4201b760:       d43a71          l32r    a7, 42010848 <_image_irom_vma+0x848> 
(3c0414d4 <g_type+0x21>)
   4201b763:       a02270          addx4   a2, a2, a7
   4201b766:       0228            l32i.n  a2, a2, 0
   4201b768:       0002a0          jx      a2
   ```
   But, gdb still has problem?
   ```
   (gdb) disassemble cmd_uname
   Dump of assembler code for function cmd_uname:
      0x4201b748 <+0>:     entry   a1, 0x170
      0x4201b74b <+3>:     movi.n  a6, 0
      0x4201b74d <+5>:     s32i    a3, a1, 0x140
      0x4201b750 <+8>:     mov.n   a5, a2
      0x4201b752 <+10>:    mov.n   a3, a6
      0x4201b754 <+12>:    j       0x4201b7a4 <cmd_uname+92>
      0x4201b757 <+15>:    quou    a2, a2, a0
      0x4201b75a <+18>:    ee.vmulas.s8.accx.ld.ip.qup     q6, a9, 0x1c0, q4, 
q2, q5, q7
      0x4201b75e <+22>:    bltu    a0, a3, 0x4201b7d3 <cmd_uname+139>
      0x4201b761 <+25>:    add.n   a13, a4, a3
      0x4201b763 <+27>:    addx4   a2, a2, a7
      0x4201b766 <+30>:    l32i.n  a2, a2, 0
      0x4201b768 <+32>:    jx      a2
   ```


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to