summaryrefslogtreecommitdiff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-08-21 10:19:21 -0600
committerTom Rini <[email protected]>2024-08-26 14:06:08 -0600
commitde869f7c583b55c50b7ff855ace77edaff0700c2 (patch)
treee8eafeba50d65839272f18917723abf962057961 /include/asm-generic
parent6120d45b706ec8024c3e4eee8091d9ecbf0a16f1 (diff)
global_data: Put phys_addr fields near the top
Put these fields near the top and together, since they have the same alignment. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/global_data.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index b33e4e98efc..841c1b35514 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -50,6 +50,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
*
* See &enum gd_flags
@@ -103,10 +111,6 @@ struct global_data {
*/
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
*
* After relocation this field indicates the address to which U-Boot
@@ -116,10 +120,6 @@ struct global_data {
*/
unsigned long relocaddr;
/**
- * @ram_size: RAM size in bytes
- */
- phys_size_t ram_size;
- /**
* @irq_sp: IRQ stack pointer
*/
unsigned long irq_sp;