mirror of
https://github.com/ipxe/ipxe
synced 2026-05-13 03:41:15 +03:00
18fab8dd8412a06ce9417b78e48ac7d857e81df1
The initial code contribution from Loongson defined ASM_NO_PREFIX as being "a" for this architecture. This seems to result in small values such as error line numbers being rendered as "$r0, <value>" rather than just "<value>". This seems to hit an undocumented behaviour path in the GNU assembler. For some reason ".long $r0" is not treated as a syntax error but will instead be treated as a zero value. The net effect is therefore that an extra zero value is emitted before the line number in the einfo structure, which in turn causes the error information parser to see all source code line numbers as zero. (The overall structure remains valid since the length and all string offsets are encoded within the structure itself, so nothing breaks when a spurious extra integer field is appended.) Fix by setting ASM_NO_PREFIX to the empty string (as for RISC-V), since there are no literal value prefixes anyway in LoongArch64 assembly. Signed-off-by: Michael Brown <mcb30@ipxe.org>
iPXE README File Quick start guide: cd src make For any more detailed instructions, see http://ipxe.org
Languages
C
96.9%
Assembly
1.5%
Perl
0.6%
Python
0.4%
Makefile
0.4%