Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev Print when the cpu_trampoline is called()
details: https://anonhg.NetBSD.org/src/rev/f4e08694a88f
branches: trunk
changeset: 768838:f4e08694a88f
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sat Aug 27 21:15:07 2011 +0000
description:
Print when the cpu_trampoline is called()
diffstat:
sys/arch/usermode/dev/cpu.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 9a9417253bb0 -r f4e08694a88f sys/arch/usermode/dev/cpu.c
--- a/sys/arch/usermode/dev/cpu.c Sat Aug 27 21:14:15 2011 +0000
+++ b/sys/arch/usermode/dev/cpu.c Sat Aug 27 21:15:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.17 2011/08/27 20:49:36 jmcneill Exp $ */
+/* $NetBSD: cpu.c,v 1.18 2011/08/27 21:15:07 reinoud Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.17 2011/08/27 20:49:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.18 2011/08/27 21:15:07 reinoud Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -50,7 +50,7 @@
#include <uvm/uvm_extern.h>
#include <uvm/uvm_page.h>
-/* #define CPU_DEBUG */
+#define CPU_DEBUG
static int cpu_match(device_t, cfdata_t, void *);
static void cpu_attach(device_t, device_t, void *);
@@ -269,6 +269,9 @@
static void
cpu_lwp_trampoline(void (*func)(void *), void *arg)
{
+#ifdef CPU_DEBUG
+ printf("cpu_lwp_trampoline called with func %p, arg %p\n", (void *) func, arg);
+#endif
lwp_startup(curcpu()->ci_stash, curlwp);
func(arg);
Home |
Main Index |
Thread Index |
Old Index