[libc-commits] [PATCH] D159110: [libc] Fix set_thread_ptr call in rv32 start up code
Mikhail Ramalho via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Aug 29 16:00:43 PDT 2023
mikhail.ramalho updated this revision to Diff 554514.
mikhail.ramalho added a comment.
- Implement code as suggested by reviewer
- Updated commit message to reflect new changes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159110/new/
https://reviews.llvm.org/D159110
Files:
libc/startup/linux/riscv/start.cpp
Index: libc/startup/linux/riscv/start.cpp
===================================================================
--- libc/startup/linux/riscv/start.cpp
+++ libc/startup/linux/riscv/start.cpp
@@ -80,7 +80,7 @@
}
static void set_thread_ptr(uintptr_t val) {
- LIBC_INLINE_ASM("ld tp, %0\n\t" : : "m"(val));
+ LIBC_INLINE_ASM("mv tp, %0\n\t" : : "r"(val));
}
using InitCallback = void(int, char **, char **);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159110.554514.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230829/4a45073c/attachment.bin>
More information about the libc-commits
mailing list