2006-04-22 00:54:32 +02:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (c) 2006, Intel Corporation
|
|
|
|
# All rights reserved. This program and the accompanying materials
|
|
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
|
|
#
|
|
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
#
|
|
|
|
# Module Name:
|
|
|
|
#
|
|
|
|
# Thunk.asm
|
|
|
|
#
|
|
|
|
# Abstract:
|
|
|
|
#
|
|
|
|
# Real mode thunk
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2006-07-11 12:25:13 +02:00
|
|
|
.global _m16Start, _m16Size, _mThunk16Attr, _m16GdtBase, _m16Gdt, _m16GdtrBase, _mTransition
|
|
|
|
##########
|
|
|
|
# FIXME! #
|
|
|
|
##########
|
|
|
|
# The following data are INVALID!!
|
|
|
|
# They just follow GAS syntax.
|
|
|
|
_m16Start: .byte 0x00
|
|
|
|
_m16Size: .word 0x00
|
|
|
|
_mThunk16Attr: .word 0x00
|
|
|
|
_m16Gdt: .word 0x00
|
|
|
|
_m16GdtrBase: .word 0x00
|
|
|
|
_mTransition: .word 0x00
|
2006-04-22 00:54:32 +02:00
|
|
|
|
2006-07-11 12:25:13 +02:00
|
|
|
.global _InternalAsmThunk16
|
|
|
|
_InternalAsmThunk16:
|
2006-04-22 00:54:32 +02:00
|
|
|
|
2006-05-19 17:25:52 +02:00
|
|
|
##########
|
|
|
|
# FIXME! #
|
|
|
|
##########
|
2006-07-11 12:25:13 +02:00
|
|
|
# This function won't work for now.
|
|
|
|
# it will directly enter dead loop.
|
|
|
|
jmp .
|
|
|
|
|