[OpenBIOS] [PATCH 3/9] SPARC64: comment out the context switch debug message

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Oct 23 16:22:38 CEST 2016


Debugging under kmdb is constantly switching context upon entry/exit which causes
a lot of noise on the console.

This matches all other archs which don't emit a similar message upon switch.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 arch/sparc64/context.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sparc64/context.c b/arch/sparc64/context.c
index 30b19ea..48dae3d 100644
--- a/arch/sparc64/context.c
+++ b/arch/sparc64/context.c
@@ -127,7 +127,7 @@ struct context *switch_to(struct context *ctx)
     volatile struct context *save;
     struct context *ret;
 
-    debug("switching to new context: entry point %#llx stack 0x%016llx\n", ctx->pc, ctx->regs[REG_SP]);
+    //debug("switching to new context: entry point %#llx stack 0x%016llx\n", ctx->pc, ctx->regs[REG_SP]);
     save = __context;
     __context = ctx;
     //asm ("pushl %cs; call __switch_context");
-- 
1.7.10.4




More information about the OpenBIOS mailing list