HAMMER 59C/Many: Stabilization pass - fixes for large file issues
[dragonfly.git] / sys / boot / pc32 / libi386 / pxetramp.s
blob7f666bc6e4ce23d90a2b063e3a42ddeb8ab0f94e
2 # Copyright (c) 2000 Peter Wemm
3 # All rights reserved.
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.
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.
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 $
18 # ph33r this
20 .globl __bangpxeentry, __bangpxeseg, __bangpxeoff
21 .globl __pxenventry, __pxenvseg, __pxenvoff
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
35 __pxenventry:
36 .byte 0x9a # far call
37 __pxenvoff: .word 0x0000 # offset
38 __pxenvseg: .word 0x0000 # segment
39 .byte 0xcb # to vm86int