lkml.org 
[lkml]   [2011]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] ARM: Use generic BUG() handler
On Mon, Feb 28, 2011 at 04:27:43PM -0800, Simon Glass wrote:
> + asm volatile("1:\t.word %c3\n" \
> + ".pushsection __bug_table,\"a\"\n" \
> + "2:\t.word 1b, %c0\n" \
> + "\t.hword %c1, 0\n" \
> + "\t.org 2b+%c2\n" \

%c doesn't work on lots of versions of gcc, which is why we can't use
the generic bug support. There's no way to reliably generate constants
without many compiler versions spitting out a '#' before them.


\
 
 \ /
  Last update: 2011-03-01 09:53    [W:0.057 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site