]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data: Put phys_addr fields near the top
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:19:21 +0000 (10:19 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:06:08 +0000 (14:06 -0600)
Put these fields near the top and together, since they have the same
alignment.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/asm-generic/global_data.h

index b33e4e98efc19f87f61b4f91a975356f019d7f1c..841c1b355140e9c9661d38a386a70de10be5ab08 100644 (file)
@@ -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
         */