public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] Fix crash due to missing debugctlmsr on AMD K6-3
@ 2008-07-22 12:00 Jan Kratochvil
  2008-07-22 12:17 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kratochvil @ 2008-07-22 12:00 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

Hi,

currently if you use PTRACE_SINGLEBLOCK on AMD K6-3 (i586) it will crash.
Kernel now wrongly assumes existing DEBUGCTLMSR MSR register there.

Removed the assumption also for some other non-K6 CPUs but I am not sure there
(but it can only bring small inefficiency there if my assumption is wrong).

Based on info from Roland McGrath, Chuck Ebbert and Mikulas Patocka.
More info at:
	https://bugzilla.redhat.com/show_bug.cgi?id=456175

Please Cc me in a reply.


Regards,
Jan

[-- Attachment #2: linux-2.6.26-debugctlmsr-k6.patch --]
[-- Type: text/plain, Size: 480 bytes --]

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>

--- linux-2.6.26/arch/x86/Kconfig.cpu-orig	2008-07-13 23:51:29.000000000 +0200
+++ linux-2.6.26/arch/x86/Kconfig.cpu	2008-07-22 13:44:19.000000000 +0200
@@ -414,4 +414,4 @@ config X86_MINIMUM_CPU_FAMILY
 
 config X86_DEBUGCTLMSR
 	def_bool y
-	depends on !(M586MMX || M586TSC || M586 || M486 || M386)
+	depends on !(MK6 || MWINCHIPC6 || MWINCHIP2 || MWINCHIP3D || MCYRIXIII || M586MMX || M586TSC || M586 || M486 || M386)

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

end of thread, other threads:[~2008-07-22 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 12:00 [patch] Fix crash due to missing debugctlmsr on AMD K6-3 Jan Kratochvil
2008-07-22 12:17 ` Ingo Molnar

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