Skip to contentSkip to conversation

UML - Reenable SysRq support

PATCH In review Jeff Dike 3 participants 5 messages Jul 12, 2006 – Jul 13, 2006

Subsystems (2)
lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 4/5 UML - Reenable SysRq support

Sysrq works fine on UML.

lib/Kconfig.debug +0 -1
Index: linux-2.6.17/lib/Kconfig.debug
===================================================================
@@ -18,7 +18,6 @@ config ENABLE_MUST_CHECK
 
 config MAGIC_SYSRQ
 	bool "Magic SysRq key"
-	depends on !UML
 	help
 	  If you say Y here, you will have some control over the system even
 	  if the system crashes for example during kernel debugging (e.g., you

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 9 lines · Jeff Dike

Sysrq works fine on UML.

Index: linux-2.6.17/lib/Kconfig.debug
===================================================================

lib/Kconfig.debug config ENABLE_MUST_CHECK · line 23

Quoted 7 lines
lib/Kconfig.debug +0 -1
@@ -18,7 +18,6 @@ config ENABLE_MUST_CHECK
 
 config MAGIC_SYSRQ
 	bool "Magic SysRq key"
-	depends on !UML
 	help
 	  If you say Y here, you will have some control over the system even
 	  if the system crashes for example during kernel debugging (e.g., you

Please reject this patch, the setting for UML is just elsewhere, in arch/um/Kconfig (and depends on MCONSOLE).

If kbuild doesn't handle well having an option declared twice now (it isn't very happy but it worked when I added the above dependency) we can rename the one in arch/um/Kconfig to MAGIC_SYSRQ_UML and make the one above like this (untested):

config MAGIC_SYSRQ
bool
prompt "Magic SysRq key" if !UML
depends on MAGIC_SYSRQ_UML || !UML
default y if UML

Signature · 5 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 
author
#2 lore raw
Quoted 2 lines · Blaisorblade

Please reject this patch, the setting for UML is just elsewhere, in arch/um/Kconfig (and depends on MCONSOLE).

Whoops, right.

I swear I did a search on SYSRQ in menuconfig and the only thing that came up was the lib/Kconfig.debug one.

I just checked, and it finds the arch/um one...

Jeff

#3 lore raw
In reply to Blaisorblade
Quoted 19 lines · Blaisorblade
Quoted 9 lines · Jeff Dike

Sysrq works fine on UML.

Index: linux-2.6.17/lib/Kconfig.debug
===================================================================

lib/Kconfig.debug config ENABLE_MUST_CHECK · line 23

Quoted 7 lines
lib/Kconfig.debug +0 -1
@@ -18,7 +18,6 @@ config ENABLE_MUST_CHECK
 
 config MAGIC_SYSRQ
 	bool "Magic SysRq key"
-	depends on !UML
 	help
 	  If you say Y here, you will have some control over the system even
 	  if the system crashes for example during kernel debugging (e.g., you

Please reject this patch, the setting for UML is just elsewhere, in arch/um/Kconfig (and depends on MCONSOLE).

Quoted 8 lines

If kbuild doesn't handle well having an option declared twice now (it isn't very happy but it worked when I added the above dependency) we can rename the one in arch/um/Kconfig to MAGIC_SYSRQ_UML and make the one above like this (untested):

config MAGIC_SYSRQ
bool
prompt "Magic SysRq key" if !UML
depends on MAGIC_SYSRQ_UML || !UML
default y if UML

Why not:

config MAGIC_SYSRQ
bool
prompt "Magic SysRq key"
depends on !UML || MCONSOLE
default y if UML

-hpa