]> Pileus Git - ~andy/linux/blobdiff - arch/arm/include/asm/mach/arch.h
ARM: introduce atag_offset to replace boot_params
[~andy/linux] / arch / arm / include / asm / mach / arch.h
index 3281fb4b12e3342a6dd45af7c17bcf5d16aec4fe..cc240c03efeca996d7c9e4647687ee971e2a8b3a 100644 (file)
@@ -18,6 +18,7 @@ struct machine_desc {
        unsigned int            nr;             /* architecture number  */
        const char              *name;          /* architecture name    */
        unsigned long           boot_params;    /* tagged list          */
+       unsigned long           atag_offset;    /* tagged list (relative) */
        const char              **dt_compat;    /* array of device tree
                                                 * 'compatible' strings */
 
@@ -74,4 +75,11 @@ static const struct machine_desc __mach_desc_##_type \
 #define MACHINE_END                            \
 };
 
+#define DT_MACHINE_START(_name, _namestr)              \
+static const struct machine_desc __mach_desc_##_name   \
+ __used                                                        \
+ __attribute__((__section__(".arch.info.init"))) = {   \
+       .nr             = ~0,                           \
+       .name           = _namestr,
+
 #endif