diff options
author | Andrzej Janik <[email protected]> | 2022-02-04 00:50:25 +0100 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2022-02-04 00:50:25 +0100 |
commit | 2753d956df0ee3d68c3961f7b64e65df9f06bb0b (patch) | |
tree | 41219283991590c4f6e84d1b141185e93d059f31 /zluda_inject/tests/helpers/do_cuinit_early.rs | |
parent | c869a0d6110fe703057ce0a3979e4f10c34038a7 (diff) | |
download | ZLUDA-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.rs | 10 |
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) };
+}
|