Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/stand/i386/libi386/pxetramp.S
34889 views
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
16
# ph33r this
17
18
.globl __bangpxeentry, __bangpxeseg, __bangpxeoff
19
.globl __pxenventry, __pxenvseg, __pxenvoff
20
21
.code16
22
.p2align 4,0x90
23
__bangpxeentry:
24
push %dx # seg:data
25
push %ax # off:data
26
push %bx # int16 func
27
.byte 0x9a # far call
28
__bangpxeoff: .word 0x0000 # offset
29
__bangpxeseg: .word 0x0000 # segment
30
add $6, %sp # restore stack
31
.byte 0xcb # to vm86int
32
#
33
__pxenventry:
34
.byte 0x9a # far call
35
__pxenvoff: .word 0x0000 # offset
36
__pxenvseg: .word 0x0000 # segment
37
.byte 0xcb # to vm86int
38
39