2 * Copyright (c) 1998 Robert Nordier
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
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
15 * $FreeBSD: src/sys/boot/i386/btx/lib/btxsys.s,v 1.2 1999/08/28 00:40:07 peter Exp $
16 * $DragonFly: src/sys/boot/pc32/btx/lib/btxsys.S,v 1.4 2004/07/19 01:25:02 dillon Exp $
23 #include "../../bootasm.h"
34 .set INT_SYS,0x30 # Interrupt number
39 __exit: xorl %eax,%eax # BTX system
40 int $INT_SYS # call 0x0
45 __exec: movl $0x1,%eax # BTX system
46 int $INT_SYS # call 0x1