syslinux-3.08-2 sources from FC4
[bootcd.git] / syslinux / sample / c32exit.S
1 # $Id#
2 #
3 # Implementation of exit() for com32 based on c32entry.S
4 #
5         .text
6         .globl exit
7 exit:
8         movl 4(%esp),%eax               # Exit code in %eax = return value
9         movl (__entry_esp),%esp         # Return stack pointer to entry value
10         ret                             # Return to termination address