summaryrefslogtreecommitdiff
path: root/asm/asm_usermode.h
diff options
context:
space:
mode:
Diffstat (limited to 'asm/asm_usermode.h')
-rw-r--r--asm/asm_usermode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/asm/asm_usermode.h b/asm/asm_usermode.h
new file mode 100644
index 0000000..16597f2
--- /dev/null
+++ b/asm/asm_usermode.h
@@ -0,0 +1,8 @@
+/**
+ * @file
+ * Switch to User Mode and iret to function given by pointer
+ * provide the address of a void func() that will be called without
+ * any params via iret.
+ */
+
+void asm_usermode(uint32_t func);