aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/tests/helpers/do_cuinit_early.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2022-02-04 00:50:25 +0100
committerAndrzej Janik <[email protected]>2022-02-04 00:50:25 +0100
commit2753d956df0ee3d68c3961f7b64e65df9f06bb0b (patch)
tree41219283991590c4f6e84d1b141185e93d059f31 /zluda_inject/tests/helpers/do_cuinit_early.rs
parentc869a0d6110fe703057ce0a3979e4f10c34038a7 (diff)
downloadZLUDA-2753d956df0ee3d68c3961f7b64e65df9f06bb0b.tar.gz
ZLUDA-2753d956df0ee3d68c3961f7b64e65df9f06bb0b.zip
Overhaul DLL injection
Diffstat (limited to 'zluda_inject/tests/helpers/do_cuinit_early.rs')
-rw-r--r--zluda_inject/tests/helpers/do_cuinit_early.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/zluda_inject/tests/helpers/do_cuinit_early.rs b/zluda_inject/tests/helpers/do_cuinit_early.rs
new file mode 100644
index 0000000..9743f4a
--- /dev/null
+++ b/zluda_inject/tests/helpers/do_cuinit_early.rs
@@ -0,0 +1,10 @@
+#![crate_type = "bin"]
+
+#[link(name = "do_cuinit")]
+extern "system" {
+ fn do_cuinit(flags: u32) -> u32;
+}
+
+fn main() {
+ unsafe { do_cuinit(0) };
+}