xref: /dflybsd-src/stand/boot/pc32/libi386/pxetramp.s (revision 479ab7f0492f2a51b48e8537e4f1dc686fc6014b)
1#
2# Copyright (c) 2000 Peter Wemm
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# $FreeBSD: src/sys/boot/i386/libi386/pxetramp.s,v 1.3 2001/10/04 10:18:00 jhb Exp $
16# $DragonFly: src/sys/boot/pc32/libi386/pxetramp.s,v 1.3 2003/11/10 06:08:36 dillon Exp $
17
18# ph33r this
19
20		.globl  __bangpxeentry, __bangpxeseg, __bangpxeoff
21		.globl  __pxenventry, __pxenvseg, __pxenvoff
22
23		.code16
24		.p2align 4,0x90
25__bangpxeentry:
26		push    %dx			# seg:data
27		push    %ax			# off:data
28		push    %bx			# int16 func
29		.byte   0x9a			# far call
30__bangpxeoff:	.word   0x0000			# offset
31__bangpxeseg:	.word   0x0000			# segment
32		add	$6, %sp			# restore stack
33		.byte	0xcb			# to vm86int
34#
35__pxenventry:
36		.byte   0x9a			# far call
37__pxenvoff:	.word   0x0000			# offset
38__pxenvseg:	.word   0x0000			# segment
39		.byte	0xcb			# to vm86int
40