summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/btx/lib/btxsys.s
blob: 6273bfa45e7db4603de4a5fc4dc25d00139d77c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Copyright (c) 1998 Robert Nordier
# All rights reserved.
#
# Redistribution and use in source and binary forms are freely
# permitted provided that the above copyright notice and this
# paragraph and the following disclaimer are duplicated in all
# such forms.
#
# This software is provided "AS IS" and without any express or
# implied warranties, including, without limitation, the implied
# warranties of merchantability and fitness for a particular
# purpose.
#

#	$Id: btxsys.s,v 1.1 1998/09/14 10:37:00 rnordier Exp $

#
# BTX system calls.
#

#
# Globals.
#
		.global __exit
		.global __exec
#
# Constants.
#
		.set INT_SYS,0x30		# Interrupt number
#
# System call: exit
#
__exit: 	xorl %eax,%eax			# BTX system
		int $INT_SYS			#  call 0x0
#
# System call: exec
#
__exec: 	movl $0x1,%eax			# BTX system
		int $INT_SYS			#  call 0x1
OpenPOWER on IntegriCloud