__stop_bug_frames_2 = .;
*(.rodata)
*(.rodata.*)
+
+#ifdef LOCK_PROFILE
+ . = ALIGN(POINTER_ALIGN);
+ __lock_profile_start = .;
+ *(.lockprofile.data)
+ __lock_profile_end = .;
+#endif
+
_erodata = .; /* End of read-only data */
} :text
*(.data.rel.ro.*)
} :text
-#ifdef LOCK_PROFILE
- . = ALIGN(32);
- __lock_profile_start = .;
- .lockprofile.data : { *(.lockprofile.data) } :text
- __lock_profile_end = .;
-#endif
-
. = ALIGN(8);
.arch.info : {
_splatform = .;
*(.rodata)
*(.rodata.*)
+
+#ifdef LOCK_PROFILE
+ . = ALIGN(POINTER_ALIGN);
+ __lock_profile_start = .;
+ *(.lockprofile.data)
+ __lock_profile_end = .;
+#endif
} :text
. = ALIGN(SMP_CACHE_BYTES);
CONSTRUCTORS
} :text
-#ifdef LOCK_PROFILE
- . = ALIGN(32);
- __lock_profile_start = .;
- .lockprofile.data : { *(.lockprofile.data) } :text
- __lock_profile_end = .;
-#endif
-
. = ALIGN(PAGE_SIZE); /* Init code and data */
__init_begin = .;
.init.text : {
#define BYTES_PER_LONG (1 << LONG_BYTEORDER)
#define BITS_PER_LONG (BYTES_PER_LONG << 3)
+#define POINTER_ALIGN BYTES_PER_LONG
/* xen_ulong_t is always 64 bits */
#define BITS_PER_XEN_ULONG 64
#define BYTES_PER_LONG (1 << LONG_BYTEORDER)
#define BITS_PER_LONG (BYTES_PER_LONG << 3)
#define BITS_PER_BYTE 8
+#define POINTER_ALIGN BYTES_PER_LONG
#define BITS_PER_XEN_ULONG BITS_PER_LONG
#define _LOCK_PROFILE(name) { 0, #name, &name, 0, 0, 0, 0, 0 }
#define _LOCK_PROFILE_PTR(name) \
- static struct lock_profile *__lock_profile_##name \
+ static struct lock_profile * const __lock_profile_##name \
__used_section(".lockprofile.data") = \
&__lock_profile_data_##name
#define _SPIN_LOCK_UNLOCKED(x) { { 0 }, SPINLOCK_NO_CPU, 0, _LOCK_DEBUG, x }