std: fix some mistakes in microblaze inline asm

This commit is contained in:
Alex Rønne Petersen
2026-06-04 14:53:09 +02:00
parent 9475ff8a89
commit df3a4468f1
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1264,7 +1264,7 @@ const LinuxThreadImpl = struct {
\\ ori r12, r0, 91 # SYS_munmap
\\ brki r14, 0x8
\\ ori r12, r0, 1 # SYS_exit
\\ or r5, r0, r0
\\ ori r5, r0, 0
\\ brki r14, 0x8
:
: [ptr] "{r5}" (@intFromPtr(self.mapped.ptr)),
+5 -5
View File
@@ -170,7 +170,7 @@ fn _start() callconv(.naked) noreturn {
.loongarch32, .loongarch64 => ".cfi_undefined 1",
.m68k => ".cfi_undefined %%pc",
.m88k => ".cfi_undefined %%r1",
.microblaze, .microblazeel => ".cfi_undefined r15",
.microblaze, .microblazeel => "", // No CFI support.
.mips, .mipsel, .mips64, .mips64el => ".cfi_undefined $ra",
.or1k => ".cfi_undefined r9",
.powerpc, .powerpcle, .powerpc64, .powerpc64le => ".cfi_undefined lr",
@@ -345,11 +345,11 @@ fn _start() callconv(.naked) noreturn {
,
.microblaze, .microblazeel =>
// r1 = SP, r15 = LR, r19 = FP, r20 = GP
\\ ori r15, r0, r0
\\ ori r19, r0, r0
\\ ori r15, r0, 0
\\ ori r19, r0, 0
\\ mfs r20, rpc
\\ addik r20, r20, _GLOBAL_OFFSET_TABLE_ + 8
\\ ori r5, r1, r0
\\ addi r20, r20, _GLOBAL_OFFSET_TABLE_ + 8
\\ ori r5, r1, 0
\\ andi r1, r1, -4
\\ brlid r15, %[posixCallMainAndExit]
,