summaryrefslogtreecommitdiff
path: root/newlib/syscall.h
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-02 00:08:42 +0200
committerMiguel <m.i@gmx.at>2018-09-02 00:08:42 +0200
commit8e3411139b27a3421e9ac75c13f14f99f6dd3137 (patch)
treecf8b53ab02863117c310bde11ee4683e134cf1b2 /newlib/syscall.h
parent0fff2e6dc6fae82da1c7978918a490c25cc36f04 (diff)
syscalls
Diffstat (limited to 'newlib/syscall.h')
-rw-r--r--newlib/syscall.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/syscall.h b/newlib/syscall.h
new file mode 100644
index 0000000..2cadce4
--- /dev/null
+++ b/newlib/syscall.h
@@ -0,0 +1,11 @@
+/*
+ * Issue a System Call from Ring 3 / User Space
+ *
+ * Accepts up to 3 parameters.
+ * Check syscalls.h for details.
+ */
+
+uint32_t syscall(uint32_t code,
+ uint32_t param_1,
+ uint32_t param_2,
+ uint32_t param_3);