[PATCH v2 29/35] global_data: Put phys_addr fields near the top
Simon Glass
sjg at chromium.org
Wed Aug 21 18:19:21 CEST 2024
Put these fields near the top and together, since they have the same
alignment.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
include/asm-generic/global_data.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 3296813e86a..774e757b179 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -49,6 +49,14 @@ struct global_data {
*/
struct board_f *boardf;
#endif
+ /**
+ * @ram_size: RAM size in bytes
+ */
+ phys_size_t ram_size;
+ /**
+ * @ram_top: top address of RAM used by U-Boot
+ */
+ phys_addr_t ram_top;
/**
* @flags: global data flags
*
@@ -102,10 +110,6 @@ struct global_data {
* @ram_base: base address of RAM used by U-Boot
*/
unsigned long ram_base;
- /**
- * @ram_top: top address of RAM used by U-Boot
- */
- phys_addr_t ram_top;
/**
* @relocaddr: start address of U-Boot in RAM
*
@@ -115,10 +119,6 @@ struct global_data {
* GDB using the 'add-symbol-file u-boot <relocaddr>' command.
*/
unsigned long relocaddr;
- /**
- * @ram_size: RAM size in bytes
- */
- phys_size_t ram_size;
/**
* @irq_sp: IRQ stack pointer
*/
--
2.34.1
More information about the U-Boot
mailing list