summaryrefslogtreecommitdiff
path: root/Core/EM/AMIDebugRx/binaries/PeiAMIDebugRx/PeiDebugSupport/DbgrHelp.c
blob: fda070425f2aa9d19efc8c894d51df3ee3d1e750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//
//**                                                             **//
//**         (C)Copyright 2009, American Megatrends, Inc.        **//
//**                                                             **//
//**                     All Rights Reserved.                    **//
//**                                                             **//
//**   5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093  **//
//**                                                             **//
//**                     Phone (770)-246-8600                    **//
//**                                                             **//
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//
// $Header: /Alaska/BIN/Modules/AMIDebugRx/binaries/PeiAMIDebugRx/PeiDebugSupport/DbgrHelp.c 6     4/04/12 4:57p Sudhirv $
//
// $Revision: 6 $
//
// $Date: 4/04/12 4:57p $
//*****************************************************************
//*****************************************************************
//
// Revision History
// ----------------
// $Log: /Alaska/BIN/Modules/AMIDebugRx/binaries/PeiAMIDebugRx/PeiDebugSupport/DbgrHelp.c $
// 
// 6     4/04/12 4:57p Sudhirv
// To Avoid Build errors in special cases.
// 
// 5     3/13/12 10:47a Sudhirv
// [TAG]  		EIP60224
// [Category]  	Improvement
// [Description]  Function implement When broken in SMM, show the register
// context for 'outside' SMM.
// 
// [TAG]  		EIP80406
// [Category]  	Improvement
// [Description]  Debugger support for Dynamic pci express base token
// 
// [TAG]  		EIP81423
// [Category]  	Improvement
// [Description]  VeB Debugger - Improve the EFI tab's Handle Display
// feature
// 
// [TAG]  		EIP84201
// [Category]  	Improvement
// [Description]  AMIDebugRx\Debugger Target modules usage of the Port 80
// must be controlable
// 
// 4     5/13/11 4:13p Madhans
// [TAG]  		EIP60365 
// [Category]  	Bug Fix
// [Severity]  	Important
// [Symptom]  	LoadFV not working for PI 1.1 BIOS
// [RootCause]  	The SDK Token values need to come from the building
// project. But it was included with Binary so change SDL value cause the
// feature to break
// [Solution]  	SDL token values are will used be source.
// [Files]  		relocdbg.obj
// relocdbg_PI_1_1.obj
// dbghelp.c
// 
// 3     3/09/11 8:23a Sudhirv
// EIP 53658 - AMIDebugRx\Debugger support for PI 1.1
// 
// 2     7/17/09 7:15p Madhans
// DebugRx 1.30.0022
// 
// 2     7/13/09 2:50p Sudhirv
// Updated with Coding Standards
// 
// 1     7/07/09 4:46p Sudhirv
// Restructure Binaries Created
// 
// 1     5/01/09 7:48p Madhans
// AMIDebug Rx Module. Intial Checkin.
// 
// 1     4/29/09 7:52a Sudhirv
// AMI Debug Rx module created
// 
// 6     3/27/09 8:41a Sudhirv
// Updated Coding Standards.
// 
// 5     6/13/07 3:17p Madhans
// Copyright Year updated.
// 
// 4     1/22/07 11:42a Madhans
// Modification made for Binary Release 1.04.0003.
// 
// 4     1/05/07 6:15p Madhan
// 
// 3     1/05/07 1:05p Ashrafj
// Latest version 1.04.0001 Beta
// Known issues from previous 1.04.000 Beta release has been fixed.
// 
//
//*****************************************************************

//*****************************************************************

//**********************************************************************
//<AMI_FHDR_START>
//
// Name:		DbgHelp.c
//
// Description:	File containing the globals for CAR base address & size.
//
//<AMI_FHDR_END>
//**********************************************************************
#include "misc.h"
#include "AMIPeiDebug.h"

#if defined (PI_SPECIFICATION_VERSION) && (PI_SPECIFICATION_VERSION >= 0x00010000)
const UINTN	AMI_PEIDEBUGGER_DS_BASEADDRESS 	= 0;
const UINTN	AMI_PEIDEBUGGER_DS_SIZE			= 0x2048;
#else
const UINTN	AMI_PEIDEBUGGER_DS_BASEADDRESS 	= PEI_DEBUG_DATASECTION_BASEADDRESS;
const UINTN	AMI_PEIDEBUGGER_DS_SIZE			= PEI_DEBUG_DATASECTION_SIZE;
#endif

#ifndef ALASKA_SUPPORT

#define FV_MAIN_BLOCKS	FLASH_REGION_FVMAIN_SIZE_IN_BLOCKS
#define FV_BB_BLOCKS	FLASH_REGION_FV_RECOVERY_SIZE_IN_BLOCKS
#define FV_MAIN_BASE	FLASH_REGION_FVMAIN_BASE

#endif

#ifndef FV_MAIN_BASE
#define FV_MAIN_BASE 0
#endif
#ifndef FV_MAIN_BLOCKS
#define FV_MAIN_BLOCKS 0
#endif
#ifndef FV_BB_BLOCKS
#define FV_BB_BLOCKS 0
#endif
#ifndef FLASH_BLOCK_SIZE
#define FLASH_BLOCK_SIZE 0
#endif
#ifndef DBG_WRITE_IO_80_SUPPORT
#define DBG_WRITE_IO_80_SUPPORT 0
#endif

UINTN gFvMainBase = FV_MAIN_BASE;
UINTN gFvMainBlocks = FV_MAIN_BLOCKS;
UINTN gFvBBBlocks = FV_BB_BLOCKS;
UINTN gBlockSize = FLASH_BLOCK_SIZE;

volatile UINTN gDbgWriteIO80Support = DBG_WRITE_IO_80_SUPPORT;

//*****************************************************************//
//*****************************************************************//
//*****************************************************************//
//**                                                             **//
//**         (C)Copyright 2009, American Megatrends, Inc.        **//
//**                                                             **//
//**                     All Rights Reserved.                    **//
//**                                                             **//
//**   5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093  **//
//**                                                             **//
//**                     Phone (770)-246-8600                    **//
//**                                                             **//
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//