On Mon, Feb 19, 2007 at 12:58:50AM +0900, Atsushi Nemoto wrote: > On Sun, 18 Feb 2007 15:54:08 +0000, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote: > > > Make __declare_dbe_table() static and call it explicitly to ensure not > > > optimized out. > > > > That's what __attribute_used__ was meant to be used for. > > But we do not need empty __declare_dbe_table() function body (jr ra + > nop) at all. If we called it explicitly, compiler will optimized it > out. Saves two instructions ;) _asm__( " .section __dbe_table, \"a\"\n" " .previous \n"); is even simpler :-) Ralf