Re: [edk2] Where do I find the system table address for an EFI app ?

2015-12-03 Thread Shubha Ramani
Thank you Michael - that helped a lot. I will let you know what happens...
Shubha Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com 


On Wednesday, December 2, 2015 6:59 PM, "Kinney, Michael D" 
<michael.d.kin...@intel.com> wrote:
 

 Shubha,

You can run the dmem command from the UEFI shell with no parameters, and it 
will show the UFI System Table address along with other standard table 
addresses.

Shell> dmem
Memory Address 0FD6E010 200 Bytes
  0FD6E010: 49 42 49 20 53 59 53 54-32 00 02 00 48 00 00 00  *IBI SYST2...H...*
. . .
  0FD6E200: AA AA 55 55 AA AA 55 55-55 55 AA AA 55 55 AA AA  *..UU....UU..*

Valid EFI Header at Address 0FD6E010
-
System: Table Structure size 0048 revision 00020032
ConIn (0F50A28C) ConOut (0F497054) StdErr (0F50A37C)
Runtime Services 0FD6EF90
Boot Services    0F89B5C0
SAL System Table 
ACPI Table      0FCEE000
ACPI 2.0 Table  0FCEE014
MPS Table        
SMBIOS Table    0FD63000

For a debugger, a platform can produce the EFI_DEBUG_IMAGE_INFO_TABLE.  UEFI 
Specification Section 17.4.2 describes how a debugger can find the UEFI System 
Table address from a structure that is on a 4MB boundary with a signature and a 
CRC.  This table also provides the list of LOADED_IMAGE_PROTOCOLs for PE/COFF 
images that have been loaded, so a debugger can load symbols.

Mike 

> -Original Message-
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of 
> Carsey, Jaben
> Sent: Wednesday, December 2, 2015 9:42 AM
> To: Shubha Ramani <shubharam...@yahoo.com>; edk2-devel@lists.01.org
> Cc: Carsey, Jaben <jaben.car...@intel.com>
> Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
> 
> I am pretty sure it’s there in a shell app also.  What entry point lib are 
> you using to build your app?
> 
> -Jaben
> 
> From: Shubha Ramani [mailto:shubharam...@yahoo.com]
> Sent: Wednesday, December 02, 2015 9:11 AM
> To: Carsey, Jaben <jaben.car...@intel.com>; edk2-devel@lists.01.org
> Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
> Importance: High
> 
> Not in a Shell App though. How do you answer to the debugger when it's asking 
> for the System Table address for a shell app ?
> 
> Thanks,
> 
> Shubha
> 
> Shubha D. Ramani
> shubharam...@gmail.com<mailto:shubharam...@gmail.com>
> shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
> 
> 
> On Tuesday, December 1, 2015 8:39 AM, "Carsey, Jaben" 
> <jaben.car...@intel.com<mailto:jaben.car...@intel.com>> wrote:
> 
> Its passed as a parameter to the "main" function when your app starts.
> 
> -Jaben
> 
> > -Original Message-
> > From: edk2-devel 
> > [mailto:edk2-devel-boun...@lists.01.org<mailto:edk2-devel-boun...@lists.01.org>]
> >  On Behalf Of
> > Shubha Ramani
> > Sent: Tuesday, December 01, 2015 8:35 AM
> > To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > Subject: Re: [edk2] Where do I find the system table address for an EFI app 
> > ?
> > Importance: High
> >
> >  I'm sorry but this was unclear. I meant where do I find the System Table
> > address for a UEFI Shell App ?The debugger is asking for it. I couldn't 
> > find it in
> > the generated *.map file.
> > Thanks
> > Shubha
> > Shubha D. ramanishubharam...@gmail.com<mailto:ramanishubharam...@gmail.com>
> > shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
> >
> >
> >    On Monday, November 30, 2015 3:00 PM, Shubha Ramani
> > <shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>> wrote:
> >
> >
> >  I'm trying to debug it using a debugger and the debugger is asking me this
> > question.
> > I looked at the *.map file which is generated and I could not locate the 
> > System
> > Table address.
> > Thanks,
> > Shubha Shubha D. 
> > ramanishubharam...@gmail.com<mailto:ramanishubharam...@gmail.com>
> > shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
> 
> >
> >
> > ___
> > edk2-devel mailing list
> > edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > https://lists.01.org/mailman/listinfo/edk2-devel
> 
> 
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


  
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] Where do I find the system table address for an EFI app ?

2015-12-02 Thread Carsey, Jaben
I am pretty sure it’s there in a shell app also.  What entry point lib are you 
using to build your app?

-Jaben

From: Shubha Ramani [mailto:shubharam...@yahoo.com]
Sent: Wednesday, December 02, 2015 9:11 AM
To: Carsey, Jaben <jaben.car...@intel.com>; edk2-devel@lists.01.org
Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
Importance: High

Not in a Shell App though. How do you answer to the debugger when it's asking 
for the System Table address for a shell app ?

Thanks,

Shubha

Shubha D. Ramani
shubharam...@gmail.com<mailto:shubharam...@gmail.com>
shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>


On Tuesday, December 1, 2015 8:39 AM, "Carsey, Jaben" 
<jaben.car...@intel.com<mailto:jaben.car...@intel.com>> wrote:

Its passed as a parameter to the "main" function when your app starts.

-Jaben

> -Original Message-
> From: edk2-devel 
> [mailto:edk2-devel-boun...@lists.01.org<mailto:edk2-devel-boun...@lists.01.org>]
>  On Behalf Of
> Shubha Ramani
> Sent: Tuesday, December 01, 2015 8:35 AM
> To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
> Importance: High
>
>  I'm sorry but this was unclear. I meant where do I find the System Table
> address for a UEFI Shell App ?The debugger is asking for it. I couldn't find 
> it in
> the generated *.map file.
> Thanks
> Shubha
> Shubha D. ramanishubharam...@gmail.com<mailto:ramanishubharam...@gmail.com>
> shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
>
>
>On Monday, November 30, 2015 3:00 PM, Shubha Ramani
> <shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>> wrote:
>
>
>  I'm trying to debug it using a debugger and the debugger is asking me this
> question.
> I looked at the *.map file which is generated and I could not locate the 
> System
> Table address.
> Thanks,
> Shubha Shubha D. 
> ramanishubharam...@gmail.com<mailto:ramanishubharam...@gmail.com>
> shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>

>
>
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> https://lists.01.org/mailman/listinfo/edk2-devel


___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] Where do I find the system table address for an EFI app ?

2015-12-02 Thread Kinney, Michael D
Shubha,

You can run the dmem command from the UEFI shell with no parameters, and it 
will show the UFI System Table address along with other standard table 
addresses.

Shell> dmem
Memory Address 0FD6E010 200 Bytes
  0FD6E010: 49 42 49 20 53 59 53 54-32 00 02 00 48 00 00 00  *IBI SYST2...H...*
. . .
  0FD6E200: AA AA 55 55 AA AA 55 55-55 55 AA AA 55 55 AA AA  *..UU....UU..*

Valid EFI Header at Address 0FD6E010
-
System: Table Structure size 0048 revision 00020032
ConIn (0F50A28C) ConOut (0F497054) StdErr (0F50A37C)
Runtime Services 0FD6EF90
Boot Services0F89B5C0
SAL System Table 
ACPI Table   0FCEE000
ACPI 2.0 Table   0FCEE014
MPS Table
SMBIOS Table 0FD63000

For a debugger, a platform can produce the EFI_DEBUG_IMAGE_INFO_TABLE.  UEFI 
Specification Section 17.4.2 describes how a debugger can find the UEFI System 
Table address from a structure that is on a 4MB boundary with a signature and a 
CRC.  This table also provides the list of LOADED_IMAGE_PROTOCOLs for PE/COFF 
images that have been loaded, so a debugger can load symbols.

Mike 

> -Original Message-
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of 
> Carsey, Jaben
> Sent: Wednesday, December 2, 2015 9:42 AM
> To: Shubha Ramani <shubharam...@yahoo.com>; edk2-devel@lists.01.org
> Cc: Carsey, Jaben <jaben.car...@intel.com>
> Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
> 
> I am pretty sure it’s there in a shell app also.  What entry point lib are 
> you using to build your app?
> 
> -Jaben
> 
> From: Shubha Ramani [mailto:shubharam...@yahoo.com]
> Sent: Wednesday, December 02, 2015 9:11 AM
> To: Carsey, Jaben <jaben.car...@intel.com>; edk2-devel@lists.01.org
> Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
> Importance: High
> 
> Not in a Shell App though. How do you answer to the debugger when it's asking 
> for the System Table address for a shell app ?
> 
> Thanks,
> 
> Shubha
> 
> Shubha D. Ramani
> shubharam...@gmail.com<mailto:shubharam...@gmail.com>
> shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
> 
> 
> On Tuesday, December 1, 2015 8:39 AM, "Carsey, Jaben" 
> <jaben.car...@intel.com<mailto:jaben.car...@intel.com>> wrote:
> 
> Its passed as a parameter to the "main" function when your app starts.
> 
> -Jaben
> 
> > -Original Message-
> > From: edk2-devel 
> > [mailto:edk2-devel-boun...@lists.01.org<mailto:edk2-devel-boun...@lists.01.org>]
> >  On Behalf Of
> > Shubha Ramani
> > Sent: Tuesday, December 01, 2015 8:35 AM
> > To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > Subject: Re: [edk2] Where do I find the system table address for an EFI app 
> > ?
> > Importance: High
> >
> >  I'm sorry but this was unclear. I meant where do I find the System Table
> > address for a UEFI Shell App ?The debugger is asking for it. I couldn't 
> > find it in
> > the generated *.map file.
> > Thanks
> > Shubha
> > Shubha D. ramanishubharam...@gmail.com<mailto:ramanishubharam...@gmail.com>
> > shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
> >
> >
> >On Monday, November 30, 2015 3:00 PM, Shubha Ramani
> > <shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>> wrote:
> >
> >
> >  I'm trying to debug it using a debugger and the debugger is asking me this
> > question.
> > I looked at the *.map file which is generated and I could not locate the 
> > System
> > Table address.
> > Thanks,
> > Shubha Shubha D. 
> > ramanishubharam...@gmail.com<mailto:ramanishubharam...@gmail.com>
> > shubharam...@yahoo.com<mailto:shubharam...@yahoo.com>
> 
> >
> >
> > ___
> > edk2-devel mailing list
> > edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> > https://lists.01.org/mailman/listinfo/edk2-devel
> 
> 
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] Where do I find the system table address for an EFI app ?

2015-12-01 Thread Shubha Ramani
 I'm sorry but this was unclear. I meant where do I find the System Table 
address for a UEFI Shell App ?The debugger is asking for it. I couldn't find it 
in the generated *.map file.
Thanks
Shubha
Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com 


On Monday, November 30, 2015 3:00 PM, Shubha Ramani 
 wrote:
 

 I'm trying to debug it using a debugger and the debugger is asking me this 
question.
I looked at the *.map file which is generated and I could not locate the System 
Table address.
Thanks,
Shubha Shubha D. ramanishubharam...@gmail.com
shubharam...@yahoo.com

  
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] Where do I find the system table address for an EFI app ?

2015-12-01 Thread Carsey, Jaben
Its passed as a parameter to the "main" function when your app starts.

-Jaben

> -Original Message-
> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of
> Shubha Ramani
> Sent: Tuesday, December 01, 2015 8:35 AM
> To: edk2-devel@lists.01.org
> Subject: Re: [edk2] Where do I find the system table address for an EFI app ?
> Importance: High
> 
>  I'm sorry but this was unclear. I meant where do I find the System Table
> address for a UEFI Shell App ?The debugger is asking for it. I couldn't find 
> it in
> the generated *.map file.
> Thanks
> Shubha
> Shubha D. ramanishubharam...@gmail.com
> shubharam...@yahoo.com
> 
> 
> On Monday, November 30, 2015 3:00 PM, Shubha Ramani
> <shubharam...@yahoo.com> wrote:
> 
> 
>  I'm trying to debug it using a debugger and the debugger is asking me this
> question.
> I looked at the *.map file which is generated and I could not locate the 
> System
> Table address.
> Thanks,
> Shubha Shubha D. ramanishubharam...@gmail.com
> shubharam...@yahoo.com
> 
> 
> ___
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel