sdm845Pkg: Library: sdm845Lib: sdm845Helper.S: save fdt address

This commit is contained in:
BigfootACA 2022-02-07 22:00:59 +08:00
parent d315c5c4e7
commit 8dc1d36bab
3 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,8 @@ startlabel:
bne docopy
ret
docopy:
mov x10, FixedPcdGet64 (DeviceTreeStore)
str x0, [x10] // oh my fdt
// find our start address by getting our expected offset, then subtracting it from our actual address
ldr x6, =FixedPcdGet64 (PcdFdBaseAddress)
sub x5, x5, x6 // x5 now holds offset of ArmPlatformPeiBootAction from start of FD base

View File

@ -44,3 +44,4 @@
gArmTokenSpaceGuid.PcdSystemMemorySize
gArmTokenSpaceGuid.PcdFdBaseAddress
gArmTokenSpaceGuid.PcdFdSize
gsdm845PkgTokenSpaceGuid.DeviceTreeStore

View File

@ -63,3 +63,5 @@
gsdm845PkgTokenSpaceGuid.PcdDeviceVendor|"Qualcomm"|VOID*|0x0000a301
gsdm845PkgTokenSpaceGuid.PcdDeviceProduct|"Snapdragon 845 Device"|VOID*|0x0000a302
gsdm845PkgTokenSpaceGuid.PcdDeviceCodeName|"sdm845"|VOID*|0x0000a303
gsdm845PkgTokenSpaceGuid.DeviceTreeStore|0x83300000|UINT64|0x0000a501