]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/i386/btx/lib/btxsys.s
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / i386 / btx / lib / btxsys.s
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
16 # $FreeBSD$
17
18 #
19 # BTX system calls.
20 #
21
22 #
23 # Globals.
24 #
25                 .global __exit
26                 .global __exec
27 #
28 # Constants.
29 #
30                 .set INT_SYS,0x30               # Interrupt number
31 #
32 # System call: exit
33 #
34 __exit:         xorl %eax,%eax                  # BTX system
35                 int $INT_SYS                    #  call 0x0
36 #
37 # System call: exec
38 #
39 __exec:         movl $0x1,%eax                  # BTX system
40                 int $INT_SYS                    #  call 0x1