summaryrefslogtreecommitdiff
path: root/sample/c32exit.S
blob: 5c5ba0307df3d3192c0233c70870a9807152d5b7 (plain)
1
2
3
4
5
6
7
8
9
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