This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit e0e8a6e85241262dca1f876bffa881f1a0f89f2e
Author: xiezhanpeng3 <[email protected]>
AuthorDate: Thu Nov 13 11:22:50 2025 +0800

    toolchain/ghs: _hyp_vector_start uses b . syntax for both GCC and ghs
    
    The $+0x0 is not accepted by Ghs compiler. Therefore, we change it to a
    more common syntax " b   ." for endless self loop.
    
    Signed-off-by: xiezhanpeng3 <[email protected]>
---
 arch/arm/src/armv8-r/arm_vectortab.S | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/arm/src/armv8-r/arm_vectortab.S 
b/arch/arm/src/armv8-r/arm_vectortab.S
index 90d424041f8..01b8145bc6c 100644
--- a/arch/arm/src/armv8-r/arm_vectortab.S
+++ b/arch/arm/src/armv8-r/arm_vectortab.S
@@ -112,13 +112,13 @@ _sys_vector_end:
 
 _hyp_vector_start:
        ldr             pc, .Lhypresethandler   /* 0x00: Reset */
-       b               $+0x0                                   /* 0x04: 
Undefined instruction */
-       b               $+0x0                                   /* 0x08: 
Software interrupt */
-       b               $+0x0                                   /* 0x0c: 
Prefetch abort */
-       b               $+0x0                                   /* 0x10: Data 
abort */
-       b               $+0x0                                   /* 0x14: 
Address exception (reserved) */
-       b               $+0x0                                   /* 0x18: IRQ */
-       b               $+0x0                                   /* 0x1c: FIQ */
+       b               .                                       /* 0x04: 
Undefined instruction */
+       b               .                                       /* 0x08: 
Software interrupt */
+       b               .                                       /* 0x0c: 
Prefetch abort */
+       b               .                                       /* 0x10: Data 
abort */
+       b               .                                       /* 0x14: 
Address exception (reserved) */
+       b               .                                       /* 0x18: IRQ */
+       b               .                                       /* 0x1c: FIQ */
 
        .globl  __start
 

Reply via email to