]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/jdb/sparc/jdb_tbuf-sparc.cpp
Update
[l4.git] / kernel / fiasco / src / jdb / sparc / jdb_tbuf-sparc.cpp
1 INTERFACE [sparc && jdb_logging]:
2
3 #define BEGIN_LOG_EVENT(name, sc, fmt)                          \
4   do                                                            \
5     {                                                           \
6       Mword __do_log__;                                         \
7       asm volatile ("1:  mov    0, %0           \n\t"           \
8                     ".pushsection \".debug.jdb.log_table\" \n\t"        \
9                     "3: .long 2f                \n\t"           \
10                     "   .long 1b                \n\t"           \
11                     "   .long %c[xfmt]          \n\t"           \
12                     ".section \".rodata.log.str\" \n\t"         \
13                     "2: .asciz "#name"          \n\t"           \
14                     "   .asciz "#sc"            \n\t"           \
15                     ".popsection                \n\t"           \
16                     : "=r"(__do_log__)                          \
17                     : [xfmt] "i" (&Tb_entry_formatter_t<fmt>::singleton));  \
18       if (EXPECT_FALSE( __do_log__ ))                           \
19         {
20