From 8255c56957718bc2f43c68cbb90d4ffe14d7437f Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Sun, 12 May 2013 23:55:22 +0000 Subject: ArmPkg/BdsLinuxFdt.c: Introduce cpu_to_fdtn() function. Introduce cpu_to_fdtn() function which will call the appropriate 32-bit or 64-bit version based on the size of a native integer. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin PhysicalStart); - Region.Size = cpu_to_fdt32((UINTN)Resource->ResourceLength); - } else { - Region.Base = cpu_to_fdt64((UINTN)Resource->PhysicalStart); - Region.Size = cpu_to_fdt64((UINTN)Resource->ResourceLength); - } + Region.Base = cpu_to_fdtn ((UINTN)Resource->PhysicalStart); + Region.Size = cpu_to_fdtn ((UINTN)Resource->ResourceLength); err = fdt_setprop(fdt, node, "reg", &Region, sizeof(Region)); if (err) { -- cgit v1.2.3