Fully synchronize sys/boot from FreeBSD-5.x, but add / to the module path
[dragonfly.git] / sys / boot / pc98 / btx / lib / btxsys.s
CommitLineData
984263bc
MD
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: src/sys/boot/pc98/btx/lib/btxsys.s,v 1.2 1999/08/28 00:40:32 peter Exp $
5ee58eed 17# $DragonFly: src/sys/boot/pc98/btx/lib/Attic/btxsys.s,v 1.3 2003/11/10 06:08:39 dillon Exp $
984263bc
MD
18
19#
20# BTX system calls.
21#
22
23#
24# Globals.
25#
26 .global __exit
27 .global __exec
28#
29# Constants.
30#
31 .set INT_SYS,0x30 # Interrupt number
32#
33# System call: exit
34#
35__exit: xorl %eax,%eax # BTX system
36 int $INT_SYS # call 0x0
37#
38# System call: exec
39#
40__exec: movl $0x1,%eax # BTX system
41 int $INT_SYS # call 0x1