summaryrefslogtreecommitdiff
path: root/kern_funcs.h
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-12-20 16:05:22 -1000
committerSam Bingner <sam@bingner.com>2018-12-20 16:05:22 -1000
commitcf517d0809b21acd87c3df7acb7552d6226b0e2c (patch)
tree133c0c69c9d87dc2178935af22075c6c61ef3a97 /kern_funcs.h
parentdd6856043a7cb9814a4aeab48e8cf4222438647c (diff)
Update to work properly with dual-hash binaries and fix Copyright info filesv0.1
Diffstat (limited to 'kern_funcs.h')
-rw-r--r--kern_funcs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kern_funcs.h b/kern_funcs.h
new file mode 100644
index 0000000..e37ef1d
--- /dev/null
+++ b/kern_funcs.h
@@ -0,0 +1,13 @@
+#ifndef _KERN_FUNCS_H_
+#define _KERN_FUNCS_H_
+
+void wk32(uint64_t kaddr, uint32_t val);
+void wk64(uint64_t kaddr, uint64_t val);
+uint32_t rk32(uint64_t kaddr);
+uint64_t rk64(uint64_t kaddr);
+uint64_t kmem_alloc(uint64_t size);
+vm_address_t get_kernel_base(mach_port_t tfp0);
+size_t kread(uint64_t where, void *p, size_t size);
+size_t kwrite(uint64_t where, const void *p, size_t size);
+
+#endif // _KERN_FUNCS_H_