This is the mail archive of the
mailing list for the GCC project.
Re: Why not implementation of interrupt attribute on IA32/x86-64
- From: Andi Kleen <andi at firstfloor dot org>
- To: Didier Garcin <didier dot garcin at club-internet dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 13 Mar 2015 07:08:33 -0700
- Subject: Re: Why not implementation of interrupt attribute on IA32/x86-64
- Authentication-results: sourceware.org; auth=none
- References: <5502B4D4 dot 9020905 at club-internet dot fr>
Didier Garcin <email@example.com> writes:
> many OS hobbyist developpers would be pleased GCC implements the
> interrupt or interrupt_handler attribute for Intel architecture.
> Would it be so difficult to implement for this architecture ?
There are lots of different ways to implement interrupts on x86
(e.g. what state to save, what registers to set up). It would
be unlikely that gcc would select a subset that worked for most
You're better off with a assembler wrapper that does exactly the
setup you want.