1436aea4d5
MdeModulePkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the MdeModulePkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2021-12-07 17:24:28 +00:00
b04453d36b
MdeModulePkg/EbcDxe: Mitigate memcpy intrinsics
...
Assignments of structure values cause the emission of memcpy()
intrinsics by the CLANG38 toolchain. Substitute the assignments with
calls to CopyMem() to mitigate the issue.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Cc: Vitaly Cheptsov <vit9696@protonmail.com >
Signed-off-by: Marvin H?user <mhaeuser@posteo.de >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2021-08-30 01:58:31 +00:00
6a0b48873b
MdeModulePkg/EbcDxe: Fix spelling mistake
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2360
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2020-08-03 18:30:35 +00:00
a7d69b6aaf
MdeModulePkg/EbcDebugger: Add check for Entry and RetEntry
...
Entry and RetEntry might be NULL before used.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Hao A Wu <hao.a.wu@intel.com >
2019-11-06 13:26:27 +08:00
9d510e61fc
MdeModulePkg: Replace BSD License with BSD+Patent License
...
https://bugzilla.tianocore.org/show_bug.cgi?id=1373
Replace BSD 2-Clause License with BSD+Patent License. This change is
based on the following emails:
https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html
https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html
RFCs with detailed process for the license change:
V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html
V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html
V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jian J Wang <jian.j.wang@intel.com >
2019-04-09 10:58:08 -07:00
357fc11c35
MdeModulePkg/EbcDebugger: Use AsciiCharToUpper and CharToUpper
...
InternalUnicodeToUpper and InternalAsciiToUpper are internal functions,
so they are substituted by public functions AsciiCharToUpper and CharToUpper.
And their implements are removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1369
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2019-01-31 20:19:16 +08:00
cecbecb71d
MdeModulePkg/EbcDebugger: Change function names
...
Change UnicodeToUpper to InternalUnicodeToUpper.
Change AsciiToUpper to InternalAsciiToUpper.
These changes are committed for bisectability, or build failure will
occur when 2/7 is applied. Because the introduced function names in
2/7 are the same as ones in EdbSupporting.c.
https://bugzilla.tianocore.org/show_bug.cgi?id=1369
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Hao Wu <hao.a.wu@intel.com >
Cc: Ruiyu Ni <ruiyu.ni@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com >
Reviewed-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Ray Ni <ray.ni@intel.com >
2019-01-31 20:19:12 +08:00
131818ba5a
MdeModulePkg: Remove redundant library classes and GUIDs
...
Some redundant library classes and GUIDs
have been removed in inf, .c and .h files.
https://bugzilla.tianocore.org/show_bug.cgi?id=1044
https://bugzilla.tianocore.org/show_bug.cgi?id=1045
https://bugzilla.tianocore.org/show_bug.cgi?id=1047
https://bugzilla.tianocore.org/show_bug.cgi?id=1049
https://bugzilla.tianocore.org/show_bug.cgi?id=1051
https://bugzilla.tianocore.org/show_bug.cgi?id=1052
https://bugzilla.tianocore.org/show_bug.cgi?id=1053
https://bugzilla.tianocore.org/show_bug.cgi?id=1054
https://bugzilla.tianocore.org/show_bug.cgi?id=1055
https://bugzilla.tianocore.org/show_bug.cgi?id=1056
https://bugzilla.tianocore.org/show_bug.cgi?id=1017
https://bugzilla.tianocore.org/show_bug.cgi?id=1035
https://bugzilla.tianocore.org/show_bug.cgi?id=1033
https://bugzilla.tianocore.org/show_bug.cgi?id=1012
https://bugzilla.tianocore.org/show_bug.cgi?id=1011
https://bugzilla.tianocore.org/show_bug.cgi?id=1062
v2:
1. Correct copyright year.
2. Fix alignment issue in AcpiPlatformDxe.inf.
3. Add DevicePathLib which is removed before in I2cHostDxe.inf.
4. Update NvmExpressPei.inf, NvmExpressPei.h, IScsiDxe.inf,
IScsiDxe.inf, IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf
and PiSmmCore.h for https://bugzilla.tianocore.org/show_bug.cgi?id=1062 .
v3:
1. Add https://bugzilla.tianocore.org/show_bug.cgi?id=1062 to the
link list.
2. Remove DevicePathLib from I2cHostDxe.inf.
3. Update NvmExpressPei.inf, NvmExpressPei.h, UfsPciHcDxe.inf,
UfsPciHcDxe.h, I2cHostDxe.inf, AtaBusDxe.inf, IScsiDxe.inf,
IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf and PiSmmCore.h
for https://bugzilla.tianocore.org/show_bug.cgi?id=1062 .
(Forget to add UfsPciHcDxe.inf, UfsPciHcDxe.h, AtaBusDxe.inf,
and I2cHostDxe.inf previously.)
Cc: Star Zeng <star.zeng@intel.com >
Cc: Eric Dong <eric.dong@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
2018-08-20 14:53:45 +08:00
2464854888
MdeModulePkg: Fix some typos of "according"
...
Cc: Feng Tian <feng.tian@intel.com >
Cc: Star Zeng <star.zeng@intel.com >
Cc: Siyuan Fu <siyuan.fu@intel.com >
Cc: Jiaxin Wu <jiaxin.wu@intel.com >
Cc: Liming Gao <liming.gao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Rebecca Cran <rebecca@bluestop.org >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Star Zeng <star.zeng@intel.com >
Reviewed-by: Feng Tian <feng.tian@intel.com >
Reviewed-by: He Junjie <junjie.he@intel.com >
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com >
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com >
2017-02-08 14:48:02 +08:00
789b86acfb
MdeModulePkg/EbcDxe: Make variable name follow rules
...
For variable name, it should contain lower case characters.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-12-20 10:51:19 +08:00
9a7d1adf5d
MdeModulePkg EbcDxe: Fix CLANG38 build failure
...
Change structure value assignment with CopyMem() API.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-12-14 14:38:05 +08:00
f42f22f5dd
MdeModulePkg/EbcDxe: Fix incorrect Copyright format
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
2016-12-09 10:38:36 +08:00
d138a2e987
MdeModulePkg/EbcDxe: Add comments for functions
...
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Pete Batard <pete@akeo.ie >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen.yao@intel.com
2016-12-06 18:40:19 +08:00
532daaed0d
MdeModulePkg/EbcDxe: Avoid Non-Boolean type used as Boolean
...
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Pete Batard <pete@akeo.ie >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen.yao@intel.com
2016-12-06 18:40:19 +08:00
3e118ea87d
MdeModulePkg/EbcDxe: Make the variable name follow rules
...
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Pete Batard <pete@akeo.ie >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen.yao@intel.com
2016-12-06 18:40:15 +08:00
8fd543c77a
MdeModulePkg/EbcDxe: Initialize variable after declaration
...
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Pete Batard <pete@akeo.ie >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen.yao@intel.com
2016-12-06 18:40:14 +08:00
e8a5ac7c49
MdeModulePkg/EbcDxe: Make the comments align with EDKII coding style
...
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Pete Batard <pete@akeo.ie >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen.yao@intel.com
2016-12-06 18:40:13 +08:00
2b2efe33ea
MdeModulePkg/EbcDxe: add EBC Debugger configuration application
...
* Introduce a generic Debugger Configuration protocol.
* Add private configuration data in the EBC Debugger and make it
register the Debugger Configuration protocol on initialization.
* Add a shell application that uses the protocol above to access
the private data in order to configure the EBC debugger.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Pete Batard <pete@akeo.ie >
reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-29 12:48:33 +08:00
8ae1714047
MdeModulePkg: Fix GCC build failure
...
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Pete Batard <pete@akeo.ie >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com >
Reviewed-by: Jiewen.yao@intel.com
2016-11-29 09:42:54 +08:00
45b18ce5b1
MdeModulePkg/EbcDebugger: Compare ASCII char with '\0'
...
Current code is using L'\0' to compare with a ASCII char.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-25 13:34:28 +08:00
eebfb7b2a5
MdeModulePkg/EbcDebugger: Add ASSERT to ensure FieldBuffer is not NULL
...
In function EdbLoadCodBySymbolByIec(), AsciiStrGetNewTokenField() at line
1589 will return NULL if the first character in 'LineBuffer' is '\0'. But
the previous if statement at line 1576 ensures the above case will not
happen.
This commit adds ASSERT as warnings for the case that will not happen.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-25 13:34:24 +08:00
a8a624d0a4
MdeModulePkg/EbcDebugger: Add missing check for symbol not found
...
In function DebuggerDisplaySymbolAccrodingToAddress(), when variable
'CandidateAddress' (returned by EbdFindSymbolAddress function) equals
(UINTN) -1, it also indicates that the symbol is not found at the given
address.
This commit adds this missing check.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-25 13:34:21 +08:00
12f49354e6
MdeModulePkg/EbcDebugger: Add check for invalid 'CommandArg'
...
Add checks for the return value of function Atoi() in EdbCmdBreakpoint.c.
If the input parameter 'CommandArg' contains non-digit character, print
corresponding error message.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-25 13:34:17 +08:00
0978bd0dc1
MdeModulePkg/EbcDebugger: Operands of same size for bitwise operation
...
Operands in a bitwise operation should have the same size to eliminate
unexpected results.
Cc: Jiewen Yao <jiewen.yao@intel.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-25 13:34:13 +08:00
3e2c784302
MdeModulePkg/EbcDxe: reorganize EBC header definitions
...
VM related defs are now in EbcVmTest.h, and opocode related definitions in
Ebc.h.
Because it is used by both the EBC Debugger and driver,
EbcDebugSignalException() sees its definition factorized in
EbcDebuggerHook.h.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Pete Batard <pete@akeo.ie >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-23 10:20:28 +08:00
748edcd5eb
MdeModulePkg/EbcDxe: add EBC Debugger
...
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Pete Batard <pete@akeo.ie >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2016-11-23 10:20:26 +08:00