Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern print a bit more diagnostics when ...



details:   https://anonhg.NetBSD.org/src/rev/e324dc58d689
branches:  trunk
changeset: 759534:e324dc58d689
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Dec 12 13:18:07 2010 +0000

description:
print a bit more diagnostics when halting

diffstat:

 sys/rump/librump/rumpkern/rump.c |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 209a495ea6a3 -r e324dc58d689 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Sun Dec 12 12:53:35 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Sun Dec 12 13:18:07 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.208 2010/12/01 14:59:38 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.209 2010/12/12 13:18:07 pooka Exp $ */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.208 2010/12/01 14:59:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.209 2010/12/12 13:18:07 pooka Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -452,11 +452,14 @@
 void
 cpu_reboot(int howto, char *bootstr)
 {
+       int ruhow = 0;
+
+       printf("rump kernel halting...\n");
 
        /* dump means we really take the dive here */
        if ((howto & RB_DUMP) || panicstr) {
-               rumpuser_exit(RUMPUSER_PANIC);
-               /*NOTREACHED*/
+               ruhow = RUMPUSER_PANIC;
+               goto out;
        }
 
        /* try to sync */
@@ -476,7 +479,9 @@
        }
 
        /* this function is __dead, we must exit */
-       rumpuser_exit(0);
+ out:
+       printf("halted\n");
+       rumpuser_exit(ruhow);
 }
 
 struct uio *



Home | Main Index | Thread Index | Old Index