lkml.org 
[lkml]   [2006]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Linux Kernel Markers 0.13 for 2.6.17
Mathieu Desnoyers wrote:
> +/* Note : max 256 bytes between over_label and near_jump */
> +#define MARK_JUMP(name, format, args...) \
> + do { \
> + asm volatile( ".section .markers, \"a\";\n\t" \
> + ".long 0f, 1f, 2f;\n\t" \
> + ".previous;\n\t" \
> + ".align 16;\n\t" \
> + ".byte 0xeb;\n\t" \
> + "0:\n\t" \
> + ".byte 2f-1f;\n\t" \
> + "1:\n\t" \
> + : "+m" (__marker_sequencer) : ); \
> + MARK_CALL(name, format, ## args); \
> + asm volatile ( "2:\n\t" : "+m" (__marker_sequencer) : ); \
>

Unfortunately this doesn't work either. The two asms are ordered with
respect to each other, but there's nothing to 1) stop the MARK_CALL from
being moved out between them, 2) something else being moved in between
them. I don't really see a way out of this without implementing the
whole call in assembler as well, which is a big pain.

J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-09-26 02:17    [W:0.100 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site