Fix riscv trampoline

This commit is contained in:
LoveSy 2024-03-27 02:04:47 +08:00
parent 34b41249fa
commit 2cccfae8c1
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

3
.gitmodules vendored
View File

@ -8,3 +8,6 @@
[submodule "test/src/main/jni/external/lsparself"] [submodule "test/src/main/jni/external/lsparself"]
path = test/src/main/jni/external/lsparself path = test/src/main/jni/external/lsparself
url = git@github.com:LSPosed/lsparself.git url = git@github.com:LSPosed/lsparself.git
[submodule "test/src/main/jni/external/lsprism"]
path = test/src/main/jni/external/lsprism
url = git@github.com:LSPosed/lsprism.git

View File

@ -72,9 +72,9 @@ consteval inline auto GetTrampoline() {
} }
if constexpr (kArch == Arch::kRiscv64) { if constexpr (kArch == Arch::kRiscv64) {
return std::make_tuple( return std::make_tuple(
"\x17\x05\x00\x00\x03\x35\xc5\x00\x67\x00\x05\x00\x78\x56\x34\x12\x78\x56\x34\x12"_uarr, "\x17\x05\x00\x00\x03\x35\x05\x01\x83\x3f\x05\x00\x67\x80\x0f\x00\x78\x56\x34\x12\x78\x56\x34\x12"_uarr,
// NOLINTNEXTLINE // NOLINTNEXTLINE
uint8_t{84u}, uintptr_t{12u}); uint8_t{84u}, uintptr_t{16u});
} }
} }

1
test/src/main/jni/external/lsprism vendored Submodule

@ -0,0 +1 @@
Subproject commit ca815ab41425fbc3d8ddc9bfcec964848fc1ec23