hi, Oliver:
I have a problem about stack setup for an ARM platform.
Based on an OrigenBoard(with a DualCore , supports TrustZone), and use
SamsungPlatformPkg code.
During the boot procedure, there are 3 places to setup stacks:
1. _ModuleEntryPoint
Used these pcds to setup stack:
gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x4B000000
gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x10000
gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x1000
2. enter_monitor_mode()
Used these pcds to setup stack:
gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x4A000000
gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x2000
3. ArmPlatformPkg\PrePeiCore
Used these pcds to setup stack:
gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x48000000
gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
So, my question is:
1. Setting up stack every time, do we need to migrate old stack's content to
new stack?
2. Based on ArmPlatformLib-Full-Boot.png, these 3 stacks's regions didn't
locate in normal dram region.
But, on OrigenBoard, they all located in dram region, are they ok?
3. Secure RAM and SRAM
Are they different ram?
I didn't find Secure RAM description on S5PV310 chip user manual.
4. Secure Firmware's scope
It seems only SEC phase code is defined as secure firmware, and it needs to
setup stack in secure ram, and running in secure mode.
Why not include PEI/DXE/BDS into secure firmware's scope, and the whole
uefi bios runs in secure mode?
best wishes,
best wishes,
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel