Compiling with -m64 using attribute interrupt emits IRET not IRETQ
H.J. Lu
hjl.tools@gmail.com
Thu Jan 28 18:26:00 GMT 2016
On Thu, Jan 28, 2016 at 9:06 AM, Wink Saville <wink@saville.com> wrote:
> I using hjl/interrupt/gcc-5-branch and my program is crashing when I
> issue an INT xx. The problem appears to me to be that using
> __attribute__ ((interrupt)) causes the a IRET to be emitted when an
> IRETQ should be emitted. Below is my trivial do nothing main.c which I
> compile with and then use objdump to view the assembler source.
>
> I compiled x86_64-unknown-elf-xxxx using crosstool-ng, could that be a problem?
I fixed it on hjl/interrupt/gcc-5-branch branch. I will fix it for
hjl/interrupt/stage1 soon.
Thanks.
--
H.J.
More information about the Gcc
mailing list