diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:23 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:23 +1100 |
commit | 7228efa3cb6e05b9a120f26456fd3ffed9afe2ba (patch) | |
tree | 9ef3efdca7f5a58fde3b7f2602a505e4b13f0857 /arch/i386/include | |
parent | 5c161653db3aa585f3e47a650ae177ba9ffb7232 (diff) | |
download | bootable_bootloader_goldelico_gta04-7228efa3cb6e05b9a120f26456fd3ffed9afe2ba.zip bootable_bootloader_goldelico_gta04-7228efa3cb6e05b9a120f26456fd3ffed9afe2ba.tar.gz bootable_bootloader_goldelico_gta04-7228efa3cb6e05b9a120f26456fd3ffed9afe2ba.tar.bz2 |
x86: Fix %ss and %esp in register structure for interrupts
Diffstat (limited to 'arch/i386/include')
-rw-r--r-- | arch/i386/include/asm/interrupt.h | 2 | ||||
-rw-r--r-- | arch/i386/include/asm/ptrace.h | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/arch/i386/include/asm/interrupt.h b/arch/i386/include/asm/interrupt.h index 99ae843..d32ef8b 100644 --- a/arch/i386/include/asm/interrupt.h +++ b/arch/i386/include/asm/interrupt.h @@ -27,6 +27,8 @@ #ifndef __ASM_INTERRUPT_H_ #define __ASM_INTERRUPT_H_ 1 +#include <asm/types.h> + /* arch/i386/cpu/interrupts.c */ void set_vector(u8 intnum, void *routine); diff --git a/arch/i386/include/asm/ptrace.h b/arch/i386/include/asm/ptrace.h index 750e40d..a727dbf 100644 --- a/arch/i386/include/asm/ptrace.h +++ b/arch/i386/include/asm/ptrace.h @@ -1,6 +1,8 @@ #ifndef _I386_PTRACE_H #define _I386_PTRACE_H +#include <asm/types.h> + #define EBX 0 #define ECX 1 #define EDX 2 @@ -43,6 +45,28 @@ struct pt_regs { int xss; } __attribute__ ((packed)); +struct irq_regs { + /* Pushed by irq_common_entry */ + long ebx; + long ecx; + long edx; + long esi; + long edi; + long ebp; + long esp; + long eax; + long xds; + long xes; + long xfs; + long xgs; + long xss; + /* Pushed by vector handler (irq_<num>) */ + long irq_id; + /* Pushed by cpu in response to interrupt */ + long eip; + long xcs; + long eflags; +} __attribute__ ((packed)); /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ #define PTRACE_GETREGS 12 |