diff options
author | hpa <hpa> | 2003-12-13 02:22:56 +0000 |
---|---|---|
committer | hpa <hpa> | 2003-12-13 02:22:56 +0000 |
commit | 71f30d9fccf71b4c6be7a01a3b47deaa2e5ab3c6 (patch) | |
tree | 4e43f678e8a4ef37a4417fd302ff404f87b16cdc /sample/c32exit.S | |
parent | 1419b1baf164fa130f47178d28cbe516fe5b3c6c (diff) | |
download | syslinux-71f30d9fccf71b4c6be7a01a3b47deaa2e5ab3c6.tar.gz |
Minor com32 wrapper code cleanup
Diffstat (limited to 'sample/c32exit.S')
-rw-r--r-- | sample/c32exit.S | 10 |
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 |