x86: rename the struct pt_regs members for 32/64-bit consistency
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / mm / extable_32.c
blob41685461f8b2e4f08d3222b3977c38ebbc58d49e
1 /*
2 * linux/arch/i386/mm/extable.c
3 */
5 #include <linux/module.h>
6 #include <linux/spinlock.h>
7 #include <asm/uaccess.h>
9 int fixup_exception(struct pt_regs *regs)
11 const struct exception_table_entry *fixup;
13 #ifdef CONFIG_PNPBIOS
14 if (unlikely(SEGMENT_IS_PNP_CODE(regs->cs)))
16 extern u32 pnp_bios_fault_eip, pnp_bios_fault_esp;
17 extern u32 pnp_bios_is_utter_crap;
18 pnp_bios_is_utter_crap = 1;
19 printk(KERN_CRIT "PNPBIOS fault.. attempting recovery.\n");
20 __asm__ volatile(
21 "movl %0, %%esp\n\t"
22 "jmp *%1\n\t"
23 : : "g" (pnp_bios_fault_esp), "g" (pnp_bios_fault_eip));
24 panic("do_trap: can't hit this");
26 #endif
28 fixup = search_exception_tables(regs->ip);
29 if (fixup) {
30 regs->ip = fixup->fixup;
31 return 1;
34 return 0;