aboutsummaryrefslogtreecommitdiff
path: root/system/i386/mmap.S
diff options
context:
space:
mode:
authorKlaatu <[email protected]>2015-05-17 15:33:21 +1200
committerKlaatu <[email protected]>2015-05-17 15:33:21 +1200
commitb0de699679e8f1e39af847ed172d1ba605b4370c (patch)
tree01dac00471d61f727394e508c613b29cff0ceae5 /system/i386/mmap.S
bulk upload of source
Diffstat (limited to 'system/i386/mmap.S')
-rw-r--r--system/i386/mmap.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/i386/mmap.S b/system/i386/mmap.S
new file mode 100644
index 0000000..c2b375e
--- /dev/null
+++ b/system/i386/mmap.S
@@ -0,0 +1,11 @@
+.text
+.global mmap
+.type mmap,@function
+mmap:
+ mov $__NR_mmap,%al
+ lea 0x4(%esp,1),%edx
+ push %edx
+ call __unified_syscall
+ pop %ecx
+ ret
+.size mmap,.-mmap