On Feb 11, 2014, at 4:34 PM, John Davis <[email protected]> wrote:

> Hello
> 
> Can you use the emulator to dump memory associated with roms?
> 

The “emulator” is not a VM. If you want to assume magic addresses and hardware 
exist you need to run the OVFM, as it runs in a VM.

The “emulator” is an OS application where there are drivers that abstract 
POSIX/Win32 APIs as hardware devices. For example on a Mac a 64-bit application 
can not map any memory < 4G (hard to have a pointer bug you don’t notice 
porting from 32-bit). 

If you run a memmap command in the Shell you can generally find the ROM as it 
will have a MemMapIO type and the upper bit of the attribute will be set.

Thanks,

Andrew Fish

PS The EFI memory map is not used to tell the OS about MMIO, it is just used to 
get virtual MMIO mapping for EFI runtime services. So at a minimum the variable 
services need an virtual mapping to make the EFI Variable services to work. 
Note there is no requirement that the EFI Variables are in the same device as 
the Firmware code, but it is a common implementation. 

> For instance, dmem fff3c9e8 is a region where I believe I have a rom mapped, 
> but that command will crash the emulator.
> 
> -- 
> John F. Davis
> 6 Kandes Court
> Durham, NC 27713
> 919-888-8358
> 
> 独树一帜
> 
> 
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience.  Start now.
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to