From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] Re: [patch] 2.4.18-ia64-020226 generalize exception recovery
Date: Thu, 14 Mar 2002 03:13:44 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590701905271@msgid-missing> (raw)
>>>>> 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
next reply other threads:[~2002-03-14 3:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-14 3:13 David Mosberger [this message]
2002-03-14 5:51 ` [Linux-ia64] Re: [patch] 2.4.18-ia64-020226 generalize exception recovery Keith Owens
2002-03-14 6:46 ` David Mosberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590701905271@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.