probably fix linux waterbox issue

This commit is contained in:
nattthebear 2020-07-12 07:49:18 -04:00
parent dc8615ca06
commit d354faeec1
5 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -0,0 +1,4 @@
#!/bin/sh
cargo b --features "no-dirty-detection"
cp target/debug/libwaterboxhost.so ../../Assets
cp target/debug/libwaterboxhost.so ../../output

View File

@ -1,3 +1,4 @@
#!/bin/sh
cargo b
cp target/debug/libwaterboxhost.so ../../Assets
cp target/debug/libwaterboxhost.so ../../output

View File

@ -1,3 +1,4 @@
#!/bin/sh
cargo b --release
cp target/release/libwaterboxhost.so ../../Assets
cp target/release/libwaterboxhost.so ../../output

View File

@ -107,7 +107,7 @@ pub fn prepare_thread() {
assert_eq!(syscall(SYS_arch_prctl, 0x1004 /*ARCH_GET_GS*/, &gs), 0);
if gs == 0 {
TIB.with(|b| {
gs = b.as_ref()[0] as *const usize as usize;
gs = b.as_ref() as *const usize as usize;
assert_eq!(syscall(SYS_arch_prctl, 0x1001 /*ARCH_SET_GS*/, gs), 0);
});
}