btxsys.s revision 50477
157434Smarkm# 257434Smarkm# Copyright (c) 1998 Robert Nordier 3156813Sru# All rights reserved. 4156813Sru# 557434Smarkm# Redistribution and use in source and binary forms are freely 6156813Sru# permitted provided that the above copyright notice and this 757434Smarkm# paragraph and the following disclaimer are duplicated in all 857434Smarkm# such forms. 957434Smarkm# 1057434Smarkm# 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: head/sys/boot/i386/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 41