summaryrefslogtreecommitdiff
path: root/sample/c32exit.S
diff options
context:
space:
mode:
authorhpa <hpa>2003-12-13 02:22:56 +0000
committerhpa <hpa>2003-12-13 02:22:56 +0000
commit71f30d9fccf71b4c6be7a01a3b47deaa2e5ab3c6 (patch)
tree4e43f678e8a4ef37a4417fd302ff404f87b16cdc /sample/c32exit.S
parent1419b1baf164fa130f47178d28cbe516fe5b3c6c (diff)
downloadsyslinux-71f30d9fccf71b4c6be7a01a3b47deaa2e5ab3c6.tar.gz
Minor com32 wrapper code cleanup
Diffstat (limited to 'sample/c32exit.S')
-rw-r--r--sample/c32exit.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/sample/c32exit.S b/sample/c32exit.S
new file mode 100644
index 00000000..5c5ba030
--- /dev/null
+++ b/sample/c32exit.S
@@ -0,0 +1,10 @@
+# $Id#
+#
+# Implementation of exit() for com32 based on c32entry.S
+#
+ .text
+ .globl exit
+exit:
+ movl 4(%esp),%eax # Exit code in %eax = return value
+ movl (__entry_esp),%esp # Return stack pointer to entry value
+ ret # Return to termination address