sdm845Pkg: Library: sdm845Lib: sdm845Helper.S: save fdt address
authorBigfootACA <bigfoot@classfun.cn>
星期一, 7 Feb 2022 14:00:59 +0000 (22:00 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期三, 9 Feb 2022 18:33:38 +0000 (02:33 +0800)
sdm845Pkg/Library/sdm845Lib/sdm845Helper.S
sdm845Pkg/Library/sdm845Lib/sdm845Lib.inf
sdm845Pkg/sdm845Pkg.dec

index 487d06d0d5c25625299c2aa23a68024f52a5420f..1f274862564999520bacdd12cf630103a1c2b757 100644 (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
index 34734133203f5bbd5fd1f8a20886fbd0c4643021..856d5df106c8e7d539998f04e6d57d978f5bb384 100644 (file)
@@ -44,3 +44,4 @@
   gArmTokenSpaceGuid.PcdSystemMemorySize
   gArmTokenSpaceGuid.PcdFdBaseAddress
   gArmTokenSpaceGuid.PcdFdSize
+  gsdm845PkgTokenSpaceGuid.DeviceTreeStore
index 09633a438d28a85cfd1da3e681cd00c2734f5968..ca903a9828de33353a553e9ca8dab6d4cd513f59 100644 (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