From 234d4c5fe6cc5856faf517ee404ac703d94d6702 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Mon, 14 Aug 2017 15:18:23 +0800 Subject: [PATCH] UefiCpuPkg: Add comments for PCDs definition. Add valid/default values for PCD PcdCpuProcTraceMemSize and PcdCpuProcTraceOutputScheme in the comment part. Cc: Liming Gao Cc: Ruiyu Ni Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong Reviewed-by: Liming Gao --- UefiCpuPkg/UefiCpuPkg.dec | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 2ddeab4cd9..b4e099d43e 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -285,12 +285,36 @@ # @ValidList 0x80000001 | 0 gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesSetting|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}|VOID*|0x00000019 - ## Contains the size of memory required when CPU processor trace is enabled. + ## Contains the size of memory required when CPU processor trace is enabled.

+ # Default value is 0x10 which disables the processor trace.
+ # 0x0 - 4K.
+ # 0x1 - 8K.
+ # 0x2 - 16K.
+ # 0x3 - 32K.
+ # 0x4 - 64K.
+ # 0x5 - 128K.
+ # 0x6 - 256K.
+ # 0x7 - 512K.
+ # 0x8 - 1M.
+ # 0x9 - 2M.
+ # 0xA - 4M.
+ # 0xB - 8M.
+ # 0xC - 16M.
+ # 0xD - 32M.
+ # 0xE - 64M.
+ # 0xF - 128M.
+ # 0x10 - ProcTraceMemDisable.
# @Prompt The memory size used for processor trace. + # @ValidRange 0x80000001 | 0 - 0x10 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceMemSize|0x10|UINT32|0x60000012 - ## Contains the processor trace output scheme when CPU processor trace is enabled. + ## Contains the processor trace output scheme when CPU processor trace is enabled.

+ # Default value is 2 which disables the processor trace.
+ # 0 - Single Range output scheme.
+ # 1 - ToPA(Table of physical address) scheme.
+ # 2 - Invalid scheme.
# @Prompt The processor trace output scheme. + # @ValidRange 0x80000001 | 0 - 2 gUefiCpuPkgTokenSpaceGuid.PcdCpuProcTraceOutputScheme|0x2|UINT8|0x60000015 [UserExtensions.TianoCore."ExtraFiles"] -- 2.39.2