xref: /titanic_53/usr/src/boot/sys/boot/i386/libi386/pxetramp.s (revision 4a5d661a82b942b6538acd26209d959ce98b593a)
1*4a5d661aSToomas Soome#
2*4a5d661aSToomas Soome# Copyright (c) 2000 Peter Wemm
3*4a5d661aSToomas Soome# All rights reserved.
4*4a5d661aSToomas Soome#
5*4a5d661aSToomas Soome# Redistribution and use in source and binary forms are freely
6*4a5d661aSToomas Soome# permitted provided that the above copyright notice and this
7*4a5d661aSToomas Soome# paragraph and the following disclaimer are duplicated in all
8*4a5d661aSToomas Soome# such forms.
9*4a5d661aSToomas Soome#
10*4a5d661aSToomas Soome# This software is provided "AS IS" and without any express or
11*4a5d661aSToomas Soome# implied warranties, including, without limitation, the implied
12*4a5d661aSToomas Soome# warranties of merchantability and fitness for a particular
13*4a5d661aSToomas Soome# purpose.
14*4a5d661aSToomas Soome#
15*4a5d661aSToomas Soome# $FreeBSD$
16*4a5d661aSToomas Soome
17*4a5d661aSToomas Soome# ph33r this
18*4a5d661aSToomas Soome
19*4a5d661aSToomas Soome		.globl  __bangpxeentry, __bangpxeseg, __bangpxeoff
20*4a5d661aSToomas Soome		.globl  __pxenventry, __pxenvseg, __pxenvoff
21*4a5d661aSToomas Soome
22*4a5d661aSToomas Soome		.code16
23*4a5d661aSToomas Soome		.p2align 4,0x90
24*4a5d661aSToomas Soome__bangpxeentry:
25*4a5d661aSToomas Soome		push    %dx			# seg:data
26*4a5d661aSToomas Soome		push    %ax			# off:data
27*4a5d661aSToomas Soome		push    %bx			# int16 func
28*4a5d661aSToomas Soome		.byte   0x9a			# far call
29*4a5d661aSToomas Soome__bangpxeoff:	.word   0x0000			# offset
30*4a5d661aSToomas Soome__bangpxeseg:	.word   0x0000			# segment
31*4a5d661aSToomas Soome		add	$6, %sp			# restore stack
32*4a5d661aSToomas Soome		.byte	0xcb			# to vm86int
33*4a5d661aSToomas Soome#
34*4a5d661aSToomas Soome__pxenventry:
35*4a5d661aSToomas Soome		.byte   0x9a			# far call
36*4a5d661aSToomas Soome__pxenvoff:	.word   0x0000			# offset
37*4a5d661aSToomas Soome__pxenvseg:	.word   0x0000			# segment
38*4a5d661aSToomas Soome		.byte	0xcb			# to vm86int
39