]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Universal/Ebc/Dxe/Ipf/EbcSupport.h
Make EdkModulePkg pass Intel IPF compiler with /W4 /WX switches, solving warning...
[mirror_edk2.git] / EdkModulePkg / Universal / Ebc / Dxe / Ipf / EbcSupport.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 EbcSupport.h
15
16 Abstract:
17
18 Definition of EBC Support function
19
20 Revision History
21
22 --*/
23
24 #ifndef _IPF_EBC_SUPPORT_H_
25 #define _IPF_EBC_SUPPORT_H_
26
27 #define VM_STACK_SIZE (1024 * 32)
28
29 #define EBC_THUNK_SIZE 128
30
31 //
32 // For code execution, thunks must be aligned on 16-byte boundary
33 //
34 #define EBC_THUNK_ALIGNMENT 16
35
36 //
37 // Opcodes for IPF instructions. We'll need to hand-create thunk code (stuffing
38 // bits) to insert a jump to the interpreter.
39 //
40 #define OPCODE_NOP (UINT64) 0x00008000000
41 #define OPCODE_BR_COND_SPTK_FEW (UINT64) 0x00100000000
42 #define OPCODE_MOV_BX_RX (UINT64) 0x00E00100000
43
44 //
45 // Opcode for MOVL instruction
46 //
47 #define MOVL_OPCODE 0x06
48
49 VOID
50 EbcAsmLLCALLEX (
51 IN UINTN CallAddr,
52 IN UINTN EbcSp
53 );
54
55 #endif