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 <xiezhanpeng3@lixiang.com>
This commit is contained in:
xiezhanpeng3
2025-11-13 11:22:50 +08:00
committed by Xiang Xiao
parent ecef24ea33
commit e0e8a6e852

View File

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