Re: RFC: Support x86 interrupt and exception handlers

2015-09-21 Thread H.J. Lu
On Thu, Sep 17, 2015 at 12:26 PM, H.J. Lu wrote: > On Tue, Sep 15, 2015 at 1:11 PM, H.J. Lu wrote: >>> To implement interrupt and exception handlers for x86 processors, a >>> compiler should support: >>> >>> 1. void * __builtin_ia32_interrupt_data (void) >> >> I got a feedback on the name of this

Re: RFC: Support x86 interrupt and exception handlers

2015-09-17 Thread H.J. Lu
On Tue, Sep 15, 2015 at 1:11 PM, H.J. Lu wrote: >> To implement interrupt and exception handlers for x86 processors, a >> compiler should support: >> >> 1. void * __builtin_ia32_interrupt_data (void) > > I got a feedback on the name of this builtin function. Since > it also works for 64-bit, we

Re: RFC: Support x86 interrupt and exception handlers

2015-09-16 Thread H.J. Lu
On Wed, Sep 16, 2015 at 12:07 AM, Matthew Fortune wrote: > H.J. Lu writes: >> On Tue, Sep 15, 2015 at 2:45 PM, Matthew Fortune >> wrote: >> > H.J. Lu writes: >> >> On Thu, Sep 3, 2015 at 10:37 AM, H.J. Lu wrote: >> >> > The interrupt and exception handlers are called by x86 processors. X86 >>

RE: RFC: Support x86 interrupt and exception handlers

2015-09-16 Thread Matthew Fortune
H.J. Lu writes: > On Tue, Sep 15, 2015 at 2:45 PM, Matthew Fortune > wrote: > > H.J. Lu writes: > >> On Thu, Sep 3, 2015 at 10:37 AM, H.J. Lu wrote: > >> > The interrupt and exception handlers are called by x86 processors. X86 > >> > hardware puts information on stack and calls the handler. T

Re: RFC: Support x86 interrupt and exception handlers

2015-09-15 Thread H.J. Lu
On Tue, Sep 15, 2015 at 2:45 PM, Matthew Fortune wrote: > H.J. Lu writes: >> On Thu, Sep 3, 2015 at 10:37 AM, H.J. Lu wrote: >> > The interrupt and exception handlers are called by x86 processors. X86 >> > hardware puts information on stack and calls the handler. The >> > requirements are >> >

RE: RFC: Support x86 interrupt and exception handlers

2015-09-15 Thread Matthew Fortune
H.J. Lu writes: > On Thu, Sep 3, 2015 at 10:37 AM, H.J. Lu wrote: > > The interrupt and exception handlers are called by x86 processors. X86 > > hardware puts information on stack and calls the handler. The > > requirements are > > > > 1. Both interrupt and exception handlers must use the 'IRET

Re: RFC: Support x86 interrupt and exception handlers

2015-09-15 Thread H.J. Lu
On Thu, Sep 3, 2015 at 10:37 AM, H.J. Lu wrote: > The interrupt and exception handlers are called by x86 processors. X86 > hardware puts information on stack and calls the handler. The > requirements are > > 1. Both interrupt and exception handlers must use the 'IRET' instruction, > instead of t