Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/stand/i386/btx/lib/btxsys.S
34879 views
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
#
17
# BTX system calls.
18
#
19
20
#
21
# Globals.
22
#
23
.global __exit
24
.global __exec
25
#
26
# Constants.
27
#
28
.set INT_SYS,0x30 # Interrupt number
29
#
30
# System call: exit
31
#
32
__exit: xorl %eax,%eax # BTX system
33
int $INT_SYS # call 0x0
34
#
35
# System call: exec
36
#
37
__exec: movl $0x1,%eax # BTX system
38
int $INT_SYS # call 0x1
39
40