btxsys.s revision 225736
1136384Srwatson# 2136384Srwatson# Copyright (c) 1998 Robert Nordier 3136384Srwatson# All rights reserved. 4136384Srwatson# 5136384Srwatson# Redistribution and use in source and binary forms are freely 6139103Sru# permitted provided that the above copyright notice and this 7136384Srwatson# paragraph and the following disclaimer are duplicated in all 8136384Srwatson# 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: stable/9/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 41