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