Re: [PATCH 1/3] x86: allow kernel exception fixup for divide errors(#DE)

From: Avi Kivity
Date: Tue Aug 24 2010 - 08:48:08 EST


On 08/24/2010 02:22 PM, Brian Gerst wrote:

+dotraplinkage void do_divide_error(struct pt_regs *regs, long error_code)
+{
+ if (!user_mode_vm(regs)&& fixup_exception(regs))
+ return;
+ do_divide_error_user(regs, error_code);
+}
+
#ifdef CONFIG_X86_64
/* Runs on IST stack */
dotraplinkage void do_stack_segment(struct pt_regs *regs, long error_code)
Kernel mode exceptions should already be handled by do_trap(). This
is unnecessary.

Correct. Please ignore this patch. I've verified that the other two work without it.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/