]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data: Move pointer members together
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:19:23 +0000 (10:19 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:06:08 +0000 (14:06 -0600)
Collect the pointer members near the top of global_data to help with
alignment.

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

index 05a0f6f0ff9bf1b6d7ee5e6d7f73488b411af10d..58dbfd6fa14c0470124bcd0f08738e9fd0c0393c 100644 (file)
@@ -43,6 +43,25 @@ struct global_data {
         * @bd: board information
         */
        struct bd_info *bd;
+       /**
+        * @new_gd: pointer to relocated global data
+        */
+       struct global_data *new_gd;
+       /**
+        * @fdt_blob: U-Boot's own device tree, NULL if none
+        */
+       const void *fdt_blob;
+       /**
+        * @jt: jump table
+        *
+        * The jump table contains pointers to exported functions. A pointer to
+        * the jump table is passed to standalone applications.
+        */
+       struct jt_funcs *jt;
+       /**
+        * @cur_serial_dev: current serial device
+        */
+       struct udevice *cur_serial_dev;
 #ifndef CONFIG_SPL_BUILD
        /**
         * @boardf: information only used before relocation
@@ -131,33 +150,14 @@ struct global_data {
         * @env_load_prio: priority of the loaded environment
         */
        char env_load_prio;
-       /**
-        * @new_gd: pointer to relocated global data
-        */
-       struct global_data *new_gd;
-       /**
-        * @fdt_blob: U-Boot's own device tree, NULL if none
-        */
-       const void *fdt_blob;
        /**
         * @fdt_src: Source of FDT
         */
        enum fdt_source_t fdt_src;
-       /**
-        * @jt: jump table
-        *
-        * The jump table contains pointers to exported functions. A pointer to
-        * the jump table is passed to standalone applications.
-        */
-       struct jt_funcs *jt;
        /**
         * @env_buf: buffer for env_get() before reloc
         */
        char env_buf[32];
-       /**
-        * @cur_serial_dev: current serial device
-        */
-       struct udevice *cur_serial_dev;
        /**
         * @arch: architecture-specific data
         */