Do not use __SIZEOF_POINTER__, as it is not compatible with older gcc's
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 13 Jan 2010 19:50:44 +0000 (14:50 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 13 Jan 2010 19:51:18 +0000 (14:51 -0500)
include/ust/marker.h

index d9c0e5f0f48bdce650fa9b380b9acd7b20af7a3a..577b2fb4985cfcaaab23f75ff937085cf734cf56 100644 (file)
@@ -32,6 +32,8 @@
 #include <kcompat/list.h>
 #include <ust/processor.h>
 
+#include <bits/wordsize.h>
+
 //ust// struct module;
 //ust// struct task_struct;
 struct marker;
@@ -113,7 +115,7 @@ struct marker {
                     ".byte 0\n\t" /* ptype */                                                  \
                     ".word 0\n\t" /* channel_id */                                             \
                     ".word 0\n\t" /* event_id */                                               \
-                    ".align " XSTR(__SIZEOF_POINTER__) "\n\t" /* alignment */                  \
+                    ".align " XSTR(__WORDSIZE) " / 8\n\t" /* alignment */                      \
                     _ASM_PTR "(marker_probe_cb)\n\t" /* call */                                \
                     _ASM_PTR "(__mark_empty_function)\n\t" /* marker_probe_closure single.field1 */ \
                     _ASM_PTR "0\n\t" /* marker_probe_closure single.field2 */                  \
This page took 0.024783 seconds and 4 git commands to generate.