xref: /dragonfly/stand/boot/pc32/btx/lib/btxsys.S (revision 7d3e9a5b)
1/*
2 * Copyright (c) 1998 Robert Nordier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms are freely
6 * permitted provided that the above copyright notice and this
7 * paragraph and the following disclaimer are duplicated in all
8 * such forms.
9 *
10 * This software is provided "AS IS" and without any express or
11 * implied warranties, including, without limitation, the implied
12 * warranties of merchantability and fitness for a particular
13 * purpose.
14 *
15 * $FreeBSD: src/sys/boot/i386/btx/lib/btxsys.s,v 1.2 1999/08/28 00:40:07 peter Exp $
16 * $DragonFly: src/sys/boot/pc32/btx/lib/btxsys.S,v 1.4 2004/07/19 01:25:02 dillon Exp $
17 */
18
19/*
20 * BTX system calls.
21 */
22
23#include "../../bootasm.h"
24
25		/*
26		 * Globals.
27		 */
28		.global __exit
29		.global __exec
30
31		/*
32		 * Constants.
33		 */
34		.set INT_SYS,0x30		# Interrupt number
35
36		/*
37		 * System call: exit
38		 */
39__exit: 	xorl %eax,%eax			# BTX system
40		int $INT_SYS			#  call 0x0
41
42		/*
43		 * System call: exec
44		 */
45__exec: 	movl $0x1,%eax			# BTX system
46		int $INT_SYS			#  call 0x1
47
48
49