public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch V1 1/1] \Silicon\Intel\Tools\FitGen: Add extra parameter to the Fit Gen Tool to input the Higher Flash Address
@ 2020-10-05 14:13 cbduggap
  2020-10-05 14:13 ` [Patch V4 1/1] Tools\FitGen: Add extra parameter " cbduggap
  2020-10-05 14:13 ` [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top " cbduggap
  0 siblings, 2 replies; 5+ messages in thread
From: cbduggap @ 2020-10-05 14:13 UTC (permalink / raw)
  To: devel; +Cc: cbduggap

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2981

Add extra parameter to the Fit Gen Tool to input the Higher Address.
Default Address should be 4GB and if some one inputs new address,
tool must consume that address instead of Default address (4GB).

Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
---
 Silicon/Intel/Tools/FitGen/FitGen.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/Silicon/Intel/Tools/FitGen/FitGen.c b/Silicon/Intel/Tools/FitGen/FitGen.c
index c4006e69c8..c17a0fabc0 100644
--- a/Silicon/Intel/Tools/FitGen/FitGen.c
+++ b/Silicon/Intel/Tools/FitGen/FitGen.c
@@ -209,10 +209,12 @@ typedef struct {
 #define DEFAULT_FIT_TABLE_POINTER_OFFSET  0x40
 #define DEFAULT_FIT_ENTRY_VERSION         0x0100
 
+#define HIGHER_FLASH_ADDRESS  (gFitTableContext.HigherAddressRemapValue)
+
 #define MEMORY_TO_FLASH(FileBuffer, FvBuffer, FvSize)  \
-                 (UINTN)(0x100000000 - ((UINTN)(FvBuffer) + (UINTN)(FvSize) - (UINTN)(FileBuffer)))
+                 (UINTN)(HIGHER_FLASH_ADDRESS - ((UINTN)(FvBuffer) + (UINTN)(FvSize) - (UINTN)(FileBuffer)))
 #define FLASH_TO_MEMORY(Address, FvBuffer, FvSize)  \
-                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) - (0x100000000 - (UINTN)(Address)))
+                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) - (HIGHER_FLASH_ADDRESS - (UINTN)(Address)))
 
 #define FIT_TABLE_TYPE_HEADER                 0
 #define FIT_TABLE_TYPE_MICROCODE              1
@@ -268,6 +270,7 @@ typedef struct {
   UINT32                     MicrocodeVersion;
   FIT_TABLE_CONTEXT_ENTRY    OptionalModule[MAX_OPTIONAL_ENTRY];
   FIT_TABLE_CONTEXT_ENTRY    PortModule[MAX_PORT_ENTRY];
+  UINT64                      HigherAddressRemapValue;
 } FIT_TABLE_CONTEXT;
 
 FIT_TABLE_CONTEXT   gFitTableContext = {0};
@@ -330,6 +333,7 @@ Returns:
           "\t[-F <FitTablePointerOffset>] [-F <FitTablePointerOffset>] [-V <FitHeaderVersion>]\n"
           "\t[-NA]\n"
           "\t[-A <MicrocodeAlignment>]\n"
+           "\t[-REMAP <FlashHigherAddress>\n"
           "\t[-CLEAR]\n"
           "\t[-L <MicrocodeSlotSize> <MicrocodeFfsGuid>]\n"
           "\t[-I <BiosInfoGuid>]\n"
@@ -986,6 +990,21 @@ Returns:
     Index += 2;
   }
 
+  if ((Index >= argc) ||
+      ((strcmp (argv[Index], "-REMAP") == 0) ||
+       (strcmp (argv[Index], "-remap") == 0)) ) {
+    //
+    // by pass
+    //
+    gFitTableContext.HigherAddressRemapValue = xtoi (argv[Index + 1]);
+    Index += 2;
+  } else {
+    //
+    // no remapping
+    //
+    gFitTableContext.HigherAddressRemapValue = 0x100000000;
+  }
+  printf ("Higher Address Value : 0x%llx\n", gFitTableContext.HigherAddressRemapValue);
   //
   // 0.4 Clear FIT table related memory
   //
-- 
2.26.2.windows.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Patch V4 1/1] Tools\FitGen: Add extra parameter to input the Higher Flash Address
  2020-10-05 14:13 [Patch V1 1/1] \Silicon\Intel\Tools\FitGen: Add extra parameter to the Fit Gen Tool to input the Higher Flash Address cbduggap
@ 2020-10-05 14:13 ` cbduggap
  2020-10-05 14:13 ` [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top " cbduggap
  1 sibling, 0 replies; 5+ messages in thread
From: cbduggap @ 2020-10-05 14:13 UTC (permalink / raw)
  To: devel; +Cc: cbduggap, Bob Feng, Liming Gao

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2981

Add extra parameter to the Fit Gen Tool to input the Higher Address.
Default Address should be 4GB and if some one inputs new address,
tool must consume that address instead of Default address (4GB).

Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>

Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
---
 Silicon/Intel/Tools/FitGen/FitGen.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/Silicon/Intel/Tools/FitGen/FitGen.c b/Silicon/Intel/Tools/FitGen/FitGen.c
index c4006e69c8..cb60a3c324 100644
--- a/Silicon/Intel/Tools/FitGen/FitGen.c
+++ b/Silicon/Intel/Tools/FitGen/FitGen.c
@@ -209,10 +209,12 @@ typedef struct {
 #define DEFAULT_FIT_TABLE_POINTER_OFFSET  0x40
 #define DEFAULT_FIT_ENTRY_VERSION         0x0100
 
+#define TOP_FLASH_ADDRESS  (gFitTableContext.TopFlashAddressRemapValue)
+
 #define MEMORY_TO_FLASH(FileBuffer, FvBuffer, FvSize)  \
-                 (UINTN)(0x100000000 - ((UINTN)(FvBuffer) + (UINTN)(FvSize) - (UINTN)(FileBuffer)))
+                 (UINTN)(TOP_FLASH_ADDRESS - ((UINTN)(FvBuffer) + (UINTN)(FvSize) - (UINTN)(FileBuffer)))
 #define FLASH_TO_MEMORY(Address, FvBuffer, FvSize)  \
-                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) - (0x100000000 - (UINTN)(Address)))
+                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) - (TOP_FLASH_ADDRESS - (UINTN)(Address)))
 
 #define FIT_TABLE_TYPE_HEADER                 0
 #define FIT_TABLE_TYPE_MICROCODE              1
@@ -268,6 +270,7 @@ typedef struct {
   UINT32                     MicrocodeVersion;
   FIT_TABLE_CONTEXT_ENTRY    OptionalModule[MAX_OPTIONAL_ENTRY];
   FIT_TABLE_CONTEXT_ENTRY    PortModule[MAX_PORT_ENTRY];
+  UINT64                     TopFlashAddressRemapValue;
 } FIT_TABLE_CONTEXT;
 
 FIT_TABLE_CONTEXT   gFitTableContext = {0};
@@ -330,6 +333,7 @@ Returns:
           "\t[-F <FitTablePointerOffset>] [-F <FitTablePointerOffset>] [-V <FitHeaderVersion>]\n"
           "\t[-NA]\n"
           "\t[-A <MicrocodeAlignment>]\n"
+           "\t[-REMAP <TopFlashAddress>\n"
           "\t[-CLEAR]\n"
           "\t[-L <MicrocodeSlotSize> <MicrocodeFfsGuid>]\n"
           "\t[-I <BiosInfoGuid>]\n"
@@ -986,6 +990,21 @@ Returns:
     Index += 2;
   }
 
+  if ((Index >= argc) ||
+      ((strcmp (argv[Index], "-REMAP") == 0) ||
+       (strcmp (argv[Index], "-remap") == 0)) ) {
+    //
+    // by pass
+    //
+    gFitTableContext.TopFlashAddressRemapValue = xtoi (argv[Index + 1]);
+    Index += 2;
+  } else {
+    //
+    // no remapping
+    //
+    gFitTableContext.TopFlashAddressRemapValue = 0x100000000;
+  }
+  printf ("Top Flash Address Value : 0x%llx\n", gFitTableContext.TopFlashAddressRemapValue);
   //
   // 0.4 Clear FIT table related memory
   //
-- 
2.26.2.windows.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top Flash Address
  2020-10-05 14:13 [Patch V1 1/1] \Silicon\Intel\Tools\FitGen: Add extra parameter to the Fit Gen Tool to input the Higher Flash Address cbduggap
  2020-10-05 14:13 ` [Patch V4 1/1] Tools\FitGen: Add extra parameter " cbduggap
@ 2020-10-05 14:13 ` cbduggap
  2020-10-09 10:02   ` 回复: " gaoliming
       [not found]   ` <163C4ABEA87228CD.15658@groups.io>
  1 sibling, 2 replies; 5+ messages in thread
From: cbduggap @ 2020-10-05 14:13 UTC (permalink / raw)
  To: devel; +Cc: cbduggap, Bob Feng, Liming Gao

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2981

Add extra parameter to the Fit Gen Tool to input the Top Flash Address.
Default Address should be 4GB and if some one inputs new address,
tool must consume that address instead of Default address (4GB).

Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>

Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
---
 Silicon/Intel/Tools/FitGen/FitGen.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/Silicon/Intel/Tools/FitGen/FitGen.c b/Silicon/Intel/Tools/FitGen/FitGen.c
index c4006e69c8..cb60a3c324 100644
--- a/Silicon/Intel/Tools/FitGen/FitGen.c
+++ b/Silicon/Intel/Tools/FitGen/FitGen.c
@@ -209,10 +209,12 @@ typedef struct {
 #define DEFAULT_FIT_TABLE_POINTER_OFFSET  0x40
 #define DEFAULT_FIT_ENTRY_VERSION         0x0100
 
+#define TOP_FLASH_ADDRESS  (gFitTableContext.TopFlashAddressRemapValue)
+
 #define MEMORY_TO_FLASH(FileBuffer, FvBuffer, FvSize)  \
-                 (UINTN)(0x100000000 - ((UINTN)(FvBuffer) + (UINTN)(FvSize) - (UINTN)(FileBuffer)))
+                 (UINTN)(TOP_FLASH_ADDRESS - ((UINTN)(FvBuffer) + (UINTN)(FvSize) - (UINTN)(FileBuffer)))
 #define FLASH_TO_MEMORY(Address, FvBuffer, FvSize)  \
-                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) - (0x100000000 - (UINTN)(Address)))
+                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) - (TOP_FLASH_ADDRESS - (UINTN)(Address)))
 
 #define FIT_TABLE_TYPE_HEADER                 0
 #define FIT_TABLE_TYPE_MICROCODE              1
@@ -268,6 +270,7 @@ typedef struct {
   UINT32                     MicrocodeVersion;
   FIT_TABLE_CONTEXT_ENTRY    OptionalModule[MAX_OPTIONAL_ENTRY];
   FIT_TABLE_CONTEXT_ENTRY    PortModule[MAX_PORT_ENTRY];
+  UINT64                     TopFlashAddressRemapValue;
 } FIT_TABLE_CONTEXT;
 
 FIT_TABLE_CONTEXT   gFitTableContext = {0};
@@ -330,6 +333,7 @@ Returns:
           "\t[-F <FitTablePointerOffset>] [-F <FitTablePointerOffset>] [-V <FitHeaderVersion>]\n"
           "\t[-NA]\n"
           "\t[-A <MicrocodeAlignment>]\n"
+           "\t[-REMAP <TopFlashAddress>\n"
           "\t[-CLEAR]\n"
           "\t[-L <MicrocodeSlotSize> <MicrocodeFfsGuid>]\n"
           "\t[-I <BiosInfoGuid>]\n"
@@ -986,6 +990,21 @@ Returns:
     Index += 2;
   }
 
+  if ((Index >= argc) ||
+      ((strcmp (argv[Index], "-REMAP") == 0) ||
+       (strcmp (argv[Index], "-remap") == 0)) ) {
+    //
+    // by pass
+    //
+    gFitTableContext.TopFlashAddressRemapValue = xtoi (argv[Index + 1]);
+    Index += 2;
+  } else {
+    //
+    // no remapping
+    //
+    gFitTableContext.TopFlashAddressRemapValue = 0x100000000;
+  }
+  printf ("Top Flash Address Value : 0x%llx\n", gFitTableContext.TopFlashAddressRemapValue);
   //
   // 0.4 Clear FIT table related memory
   //
-- 
2.26.2.windows.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* 回复: [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top Flash Address
  2020-10-05 14:13 ` [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top " cbduggap
@ 2020-10-09 10:02   ` gaoliming
       [not found]   ` <163C4ABEA87228CD.15658@groups.io>
  1 sibling, 0 replies; 5+ messages in thread
From: gaoliming @ 2020-10-09 10:02 UTC (permalink / raw)
  To: 'cbduggap', devel; +Cc: 'Bob Feng'

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: cbduggap <chinni.b.duggapu@intel.com>
> 发送时间: 2020年10月5日 22:13
> 收件人: devel@edk2.groups.io
> 抄送: cbduggap <chinni.b.duggapu@intel.com>; Bob Feng
> <bob.c.feng@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>
> 主题: [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top
Flash
> Address
> 
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2981
> 
> Add extra parameter to the Fit Gen Tool to input the Top Flash Address.
> Default Address should be 4GB and if some one inputs new address,
> tool must consume that address instead of Default address (4GB).
> 
> Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> 
> Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
> ---
>  Silicon/Intel/Tools/FitGen/FitGen.c | 23 +++++++++++++++++++++--
>  1 file changed, 21 insertions(+), 2 deletions(-)
> 
> diff --git a/Silicon/Intel/Tools/FitGen/FitGen.c
> b/Silicon/Intel/Tools/FitGen/FitGen.c
> index c4006e69c8..cb60a3c324 100644
> --- a/Silicon/Intel/Tools/FitGen/FitGen.c
> +++ b/Silicon/Intel/Tools/FitGen/FitGen.c
> @@ -209,10 +209,12 @@ typedef struct {
>  #define DEFAULT_FIT_TABLE_POINTER_OFFSET  0x40
> 
>  #define DEFAULT_FIT_ENTRY_VERSION         0x0100
> 
> 
> 
> +#define TOP_FLASH_ADDRESS
> (gFitTableContext.TopFlashAddressRemapValue)
> 
> +
> 
>  #define MEMORY_TO_FLASH(FileBuffer, FvBuffer, FvSize)  \
> 
> -                 (UINTN)(0x100000000 - ((UINTN)(FvBuffer) +
> (UINTN)(FvSize) - (UINTN)(FileBuffer)))
> 
> +                 (UINTN)(TOP_FLASH_ADDRESS - ((UINTN)(FvBuffer) +
> (UINTN)(FvSize) - (UINTN)(FileBuffer)))
> 
>  #define FLASH_TO_MEMORY(Address, FvBuffer, FvSize)  \
> 
> -                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) -
> (0x100000000 - (UINTN)(Address)))
> 
> +                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize) -
> (TOP_FLASH_ADDRESS - (UINTN)(Address)))
> 
> 
> 
>  #define FIT_TABLE_TYPE_HEADER                 0
> 
>  #define FIT_TABLE_TYPE_MICROCODE              1
> 
> @@ -268,6 +270,7 @@ typedef struct {
>    UINT32                     MicrocodeVersion;
> 
>    FIT_TABLE_CONTEXT_ENTRY
> OptionalModule[MAX_OPTIONAL_ENTRY];
> 
>    FIT_TABLE_CONTEXT_ENTRY    PortModule[MAX_PORT_ENTRY];
> 
> +  UINT64                     TopFlashAddressRemapValue;
> 
>  } FIT_TABLE_CONTEXT;
> 
> 
> 
>  FIT_TABLE_CONTEXT   gFitTableContext = {0};
> 
> @@ -330,6 +333,7 @@ Returns:
>            "\t[-F <FitTablePointerOffset>] [-F <FitTablePointerOffset>]
[-V
> <FitHeaderVersion>]\n"
> 
>            "\t[-NA]\n"
> 
>            "\t[-A <MicrocodeAlignment>]\n"
> 
> +           "\t[-REMAP <TopFlashAddress>\n"
> 
>            "\t[-CLEAR]\n"
> 
>            "\t[-L <MicrocodeSlotSize> <MicrocodeFfsGuid>]\n"
> 
>            "\t[-I <BiosInfoGuid>]\n"
> 
> @@ -986,6 +990,21 @@ Returns:
>      Index += 2;
> 
>    }
> 
> 
> 
> +  if ((Index >= argc) ||
> 
> +      ((strcmp (argv[Index], "-REMAP") == 0) ||
> 
> +       (strcmp (argv[Index], "-remap") == 0)) ) {
> 
> +    //
> 
> +    // by pass
> 
> +    //
> 
> +    gFitTableContext.TopFlashAddressRemapValue = xtoi (argv[Index + 1]);
> 
> +    Index += 2;
> 
> +  } else {
> 
> +    //
> 
> +    // no remapping
> 
> +    //
> 
> +    gFitTableContext.TopFlashAddressRemapValue = 0x100000000;
> 
> +  }
> 
> +  printf ("Top Flash Address Value : 0x%llx\n",
> gFitTableContext.TopFlashAddressRemapValue);
> 
>    //
> 
>    // 0.4 Clear FIT table related memory
> 
>    //
> 
> --
> 2.26.2.windows.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

* 回复: [edk2-devel] 回复: [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top Flash Address
       [not found]   ` <163C4ABEA87228CD.15658@groups.io>
@ 2020-10-10  0:48     ` gaoliming
  0 siblings, 0 replies; 5+ messages in thread
From: gaoliming @ 2020-10-10  0:48 UTC (permalink / raw)
  To: devel, gaoliming, 'cbduggap'; +Cc: 'Bob Feng'

Merge @ 4a53dbd24e11332767a1c20577f260bfb6feb702 on edk2-platforms.

> -----邮件原件-----
> 发件人: bounce+27952+66060+4905953+8761045@groups.io
> <bounce+27952+66060+4905953+8761045@groups.io> 代表 gaoliming
> 发送时间: 2020年10月9日 18:02
> 收件人: 'cbduggap' <chinni.b.duggapu@intel.com>; devel@edk2.groups.io
> 抄送: 'Bob Feng' <bob.c.feng@intel.com>
> 主题: [edk2-devel] 回复: [Patch V5 1/1] Tools\FitGen: Add extra parameter
> to input the Top Flash Address
> 
> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> 
> > -----邮件原件-----
> > 发件人: cbduggap <chinni.b.duggapu@intel.com>
> > 发送时间: 2020年10月5日 22:13
> > 收件人: devel@edk2.groups.io
> > 抄送: cbduggap <chinni.b.duggapu@intel.com>; Bob Feng
> > <bob.c.feng@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>
> > 主题: [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top
> Flash
> > Address
> >
> > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2981
> >
> > Add extra parameter to the Fit Gen Tool to input the Top Flash Address.
> > Default Address should be 4GB and if some one inputs new address,
> > tool must consume that address instead of Default address (4GB).
> >
> > Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
> > Cc: Bob Feng <bob.c.feng@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> >
> > Signed-off-by: cbduggap <chinni.b.duggapu@intel.com>
> > ---
> >  Silicon/Intel/Tools/FitGen/FitGen.c | 23 +++++++++++++++++++++--
> >  1 file changed, 21 insertions(+), 2 deletions(-)
> >
> > diff --git a/Silicon/Intel/Tools/FitGen/FitGen.c
> > b/Silicon/Intel/Tools/FitGen/FitGen.c
> > index c4006e69c8..cb60a3c324 100644
> > --- a/Silicon/Intel/Tools/FitGen/FitGen.c
> > +++ b/Silicon/Intel/Tools/FitGen/FitGen.c
> > @@ -209,10 +209,12 @@ typedef struct {
> >  #define DEFAULT_FIT_TABLE_POINTER_OFFSET  0x40
> >
> >  #define DEFAULT_FIT_ENTRY_VERSION         0x0100
> >
> >
> >
> > +#define TOP_FLASH_ADDRESS
> > (gFitTableContext.TopFlashAddressRemapValue)
> >
> > +
> >
> >  #define MEMORY_TO_FLASH(FileBuffer, FvBuffer, FvSize)  \
> >
> > -                 (UINTN)(0x100000000 - ((UINTN)(FvBuffer) +
> > (UINTN)(FvSize) - (UINTN)(FileBuffer)))
> >
> > +                 (UINTN)(TOP_FLASH_ADDRESS - ((UINTN)(FvBuffer) +
> > (UINTN)(FvSize) - (UINTN)(FileBuffer)))
> >
> >  #define FLASH_TO_MEMORY(Address, FvBuffer, FvSize)  \
> >
> > -                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize)
> -
> > (0x100000000 - (UINTN)(Address)))
> >
> > +                 (VOID *)(UINTN)((UINTN)(FvBuffer) + (UINTN)(FvSize)
> -
> > (TOP_FLASH_ADDRESS - (UINTN)(Address)))
> >
> >
> >
> >  #define FIT_TABLE_TYPE_HEADER                 0
> >
> >  #define FIT_TABLE_TYPE_MICROCODE              1
> >
> > @@ -268,6 +270,7 @@ typedef struct {
> >    UINT32                     MicrocodeVersion;
> >
> >    FIT_TABLE_CONTEXT_ENTRY
> > OptionalModule[MAX_OPTIONAL_ENTRY];
> >
> >    FIT_TABLE_CONTEXT_ENTRY    PortModule[MAX_PORT_ENTRY];
> >
> > +  UINT64                     TopFlashAddressRemapValue;
> >
> >  } FIT_TABLE_CONTEXT;
> >
> >
> >
> >  FIT_TABLE_CONTEXT   gFitTableContext = {0};
> >
> > @@ -330,6 +333,7 @@ Returns:
> >            "\t[-F <FitTablePointerOffset>] [-F <FitTablePointerOffset>]
> [-V
> > <FitHeaderVersion>]\n"
> >
> >            "\t[-NA]\n"
> >
> >            "\t[-A <MicrocodeAlignment>]\n"
> >
> > +           "\t[-REMAP <TopFlashAddress>\n"
> >
> >            "\t[-CLEAR]\n"
> >
> >            "\t[-L <MicrocodeSlotSize> <MicrocodeFfsGuid>]\n"
> >
> >            "\t[-I <BiosInfoGuid>]\n"
> >
> > @@ -986,6 +990,21 @@ Returns:
> >      Index += 2;
> >
> >    }
> >
> >
> >
> > +  if ((Index >= argc) ||
> >
> > +      ((strcmp (argv[Index], "-REMAP") == 0) ||
> >
> > +       (strcmp (argv[Index], "-remap") == 0)) ) {
> >
> > +    //
> >
> > +    // by pass
> >
> > +    //
> >
> > +    gFitTableContext.TopFlashAddressRemapValue = xtoi (argv[Index +
> 1]);
> >
> > +    Index += 2;
> >
> > +  } else {
> >
> > +    //
> >
> > +    // no remapping
> >
> > +    //
> >
> > +    gFitTableContext.TopFlashAddressRemapValue = 0x100000000;
> >
> > +  }
> >
> > +  printf ("Top Flash Address Value : 0x%llx\n",
> > gFitTableContext.TopFlashAddressRemapValue);
> >
> >    //
> >
> >    // 0.4 Clear FIT table related memory
> >
> >    //
> >
> > --
> > 2.26.2.windows.1
> 
> 
> 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-10  0:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-05 14:13 [Patch V1 1/1] \Silicon\Intel\Tools\FitGen: Add extra parameter to the Fit Gen Tool to input the Higher Flash Address cbduggap
2020-10-05 14:13 ` [Patch V4 1/1] Tools\FitGen: Add extra parameter " cbduggap
2020-10-05 14:13 ` [Patch V5 1/1] Tools\FitGen: Add extra parameter to input the Top " cbduggap
2020-10-09 10:02   ` 回复: " gaoliming
     [not found]   ` <163C4ABEA87228CD.15658@groups.io>
2020-10-10  0:48     ` 回复: [edk2-devel] " gaoliming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox