summaryrefslogtreecommitdiff
path: root/asm/asm_usermode.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-03 15:18:16 +0200
committerMiguel <m.i@gmx.at>2018-09-03 15:18:16 +0200
commit7eb87bf3f3fa6226657a7106eb255cbfa97758d2 (patch)
tree2d7d2280d32180d18796999bf7687ebe5bf208df /asm/asm_usermode.h
parent76b3da6022310dd8edbbbfdf4f73f1696a559853 (diff)
big renaming
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);