public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: Use helper in fault_64.c
@ 2007-12-18 10:58 Harvey Harrison
  2007-12-18 11:19 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Harvey Harrison @ 2007-12-18 10:58 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: H. Peter Anvin, LKML, Thomas Gleixner

Use the fixup_exception() helper in fault_64.c

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
This is only appropriate if CONFIG_PNP_BIOS cannot be set on
X86_64, which looks to be the case, but needs confirmation.

 arch/x86/mm/fault_64.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/arch/x86/mm/fault_64.c b/arch/x86/mm/fault_64.c
index 121c7bd..3a94941 100644
--- a/arch/x86/mm/fault_64.c
+++ b/arch/x86/mm/fault_64.c
@@ -298,7 +298,6 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
 	struct mm_struct *mm;
 	struct vm_area_struct * vma;
 	unsigned long address;
-	const struct exception_table_entry *fixup;
 	int write, fault;
 	unsigned long flags;
 	siginfo_t info;
@@ -508,9 +507,7 @@ bad_area_nosemaphore:
 no_context:
 	
 	/* Are we prepared to handle this kernel fault?  */
-	fixup = search_exception_tables(regs->ip);
-	if (fixup) {
-		regs->ip = fixup->fixup;
+	if (fixup_exception(regs)) {
 		return;
 	}
 
-- 
1.5.4.rc0.1143.g1a8a




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86: Use helper in fault_64.c
  2007-12-18 10:58 [PATCH] x86: Use helper in fault_64.c Harvey Harrison
@ 2007-12-18 11:19 ` Ingo Molnar
  2007-12-18 11:23   ` Harvey Harrison
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2007-12-18 11:19 UTC (permalink / raw)
  To: Harvey Harrison; +Cc: H. Peter Anvin, LKML, Thomas Gleixner


* Harvey Harrison <harvey.harrison@gmail.com> wrote:

> Use the fixup_exception() helper in fault_64.c

thanks, applied.

> This is only appropriate if CONFIG_PNP_BIOS cannot be set on X86_64, 
> which looks to be the case, but needs confirmation.

yeah, that seems to be the case:

in drivers/pnp/pnpbios/Kconfig:

 config PNPBIOS
 ...
         depends on ISA && X86 && EXPERIMENTAL

in arch/x86/Kconfig:

 if X86_32
 config ISA

it seems the PNPBIOS has not infested the 64-bit world, so we wont ever 
see this with a 64-bit kernel:

                extern u32 pnp_bios_is_utter_crap;
                pnp_bios_is_utter_crap = 1;
                printk(KERN_CRIT "PNPBIOS fault.. attempting recovery.\n");

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86: Use helper in fault_64.c
  2007-12-18 11:19 ` Ingo Molnar
@ 2007-12-18 11:23   ` Harvey Harrison
  0 siblings, 0 replies; 3+ messages in thread
From: Harvey Harrison @ 2007-12-18 11:23 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: H. Peter Anvin, LKML, Thomas Gleixner

On Tue, 2007-12-18 at 12:19 +0100, Ingo Molnar wrote:
> * Harvey Harrison <harvey.harrison@gmail.com> wrote:
> 
> > Use the fixup_exception() helper in fault_64.c
> 
> thanks, applied.
> 
> > This is only appropriate if CONFIG_PNP_BIOS cannot be set on X86_64, 
> > which looks to be the case, but needs confirmation.
> 
> yeah, that seems to be the case:
> 
> in drivers/pnp/pnpbios/Kconfig:
> 
>  config PNPBIOS
>  ...
>          depends on ISA && X86 && EXPERIMENTAL
> 
> in arch/x86/Kconfig:
> 
>  if X86_32
>  config ISA

That's how I read it, just wanted a second opinion.

Harvey


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-18 11:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 10:58 [PATCH] x86: Use helper in fault_64.c Harvey Harrison
2007-12-18 11:19 ` Ingo Molnar
2007-12-18 11:23   ` Harvey Harrison

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox