Deleted Added
full compact
btxsys.s (43561) btxsys.s (50477)
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
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# $Id: btxsys.s,v 1.1 1998/09/14 10:37:00 rnordier Exp $
16# $FreeBSD: head/sys/boot/pc98/btx/lib/btxsys.s 50477 1999-08-28 01:08:13Z peter $
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
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