public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] Re: [patch] 2.4.18-ia64-020226 generalize exception recovery
@ 2002-03-14  3:13 David Mosberger
  2002-03-14  5:51 ` Keith Owens
  2002-03-14  6:46 ` David Mosberger
  0 siblings, 2 replies; 3+ messages in thread
From: David Mosberger @ 2002-03-14  3:13 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Thu, 14 Mar 2002 13:43:19 +1100, Keith Owens <kaos@sgi.com> said:

  Keith> +#ifdef GAS_HAS_LOCAL_TAGS
  Keith> +#define HANDLE_EXCEPTION_1(regs) search_exception_table(regs->cr_iip + ia64_psr(regs)->ri);
  Keith> +#else
  Keith> +#define HANDLE_EXCEPTION_1(regs) search_exception_table(regs->cr_iip);
  Keith> +#endif
  Keith> +#define HANDLE_EXCEPTION(regs)			\
  Keith> +{						\
  Keith> +	struct exception_fixup fix;		\
  Keith> +	fix = HANDLE_EXCEPTION_1(regs);		\
  Keith> +	if (fix.cont) {				\
  Keith> +		handle_exception(regs, fix);	\
  Keith> +		return;				\
  Keith> +	}					\
  Keith> +}

I'm OK with the first macro (rename it to SEARCH_EXCEPTION_TABLE,
though), but the HANDLE_EXCEPTION() macro is ugly: it looks like a
statement, when in fact it's a conditional return.

	--david


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-14  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-14  3:13 [Linux-ia64] Re: [patch] 2.4.18-ia64-020226 generalize exception recovery David Mosberger
2002-03-14  5:51 ` Keith Owens
2002-03-14  6:46 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox