Prem,

I've not run the emulator on Windows in a very very long time. But lets take a 
look at your error message. 

/Volumes/Case/UDK2018(vUDK2018)>git grep "Could not allocate 
PeiServicesTablePage"
EmulatorPkg/Unix/Host/Host.c:508:      printf ("MapFd0(): Could not allocate 
PeiServicesTablePage @ %lx\n", (long unsigned int)EmuMagicPage);

That seems to point to PcdPeiServicesTablePage
/Volumes/Case/UDK2018(vUDK2018)>git grep PcdPeiServicesTablePage -- *.dec
EmulatorPkg/EmulatorPkg.dec:73:  
gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage|0x1003000000|UINT64|0x0000101b

Which has a default value of 0x1003000000. But since you built for IA32 it gets 
truncated to 0x03000000

Do you need 32-bit IA32? Can do a 64-bit build and use X64. Something like:

build -p EmulatorPkg\EmulatorPkg.dsc -t VS2015x86 -D WIN_SEC_BUILD -a X64 -m 
EmulatorPkg/Win/Host/WinHost.inf

It looks like that is hard coded address that needs to get allocated in the 
emulator, and in your case that allocation is failing. 

Thanks,

Andrew Fish

PS I'm not sure the printf is correct:       printf ("MapFd0(): Could not 
allocate PeiServicesTablePage @ %lx\n", (long unsigned int)EmuMagicPage);
Given the width of long is different on different platforms. UINT64 uses long 
long to make sure things are 64-bits. Not to mention EmuMagicPage is a pointer, 
not an long unsigned int.


> On Nov 3, 2018, at 12:26 PM, Prem Kumar <perry.p...@gmail.com> wrote:
> 
> Hi Andrew,
>  Thanks for your reply.
> 
> Below is the error when trying to launch Emulator after successful build,
> 
> 1.Launching Emulator using below command:
> C:\UEFIWorkspace\edk2-master_2018_Latest>cd 
> Build\EmulatorIA32\DEBUG_VS2015x86\IA32\ && WinHost.exe
> 
> EDK II WIN Host Emulation Environment from http://www.tianocore.org/edk2/ 
> <http://www.tianocore.org/edk2/>
>   BootMode 0x00
>   OS Emulator passing in 128 KB of temp RAM at 0x04400000 to SEC
> ERROR : Could not allocate PeiServicesTablePage @ 03000000
> 
> 2. Launching WinHose.exe directly:
> C:\UEFIWorkspace\edk2-master_2018_Latest\Build\EmulatorIA32\DEBUG_VS2015x86\IA32>WinHost.exe
> 
> EDK II WIN Host Emulation Environment from http://www.tianocore.org/edk2/ 
> <http://www.tianocore.org/edk2/>
>   BootMode 0x00
>   OS Emulator passing in 128 KB of temp RAM at 0x04ab0000 to SEC
> ERROR : Could not allocate PeiServicesTablePage @ 03000000
> 
> 
> 
> --
> Regards,
> Prem.

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

Reply via email to