realloc(): better implementation allowing in-place growth
[syslinux.git] / sample / c32exit.S
blob5c5ba0307df3d3192c0233c70870a9807152d5b7
1 # $Id#
3 # Implementation of exit() for com32 based on c32entry.S
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