Module Name: src
Committed By: dholland
Date: Sat Jun 28 21:13:12 UTC 2014
Modified Files:
src/sys/arch/x86/x86: sys_machdep.c
Log Message:
If we're going to use just the name of the dying function as a panic
string, it should at least be the name of the *right* function. ish.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/x86/x86/sys_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/sys_machdep.c
diff -u src/sys/arch/x86/x86/sys_machdep.c:1.27 src/sys/arch/x86/x86/sys_machdep.c:1.28
--- src/sys/arch/x86/x86/sys_machdep.c:1.27 Thu Mar 20 20:44:42 2014
+++ src/sys/arch/x86/x86/sys_machdep.c Sat Jun 28 21:13:12 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.27 2014/03/20 20:44:42 christos Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.28 2014/06/28 21:13:12 dholland Exp $ */
/*-
* Copyright (c) 1998, 2007, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.27 2014/03/20 20:44:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.28 2014/06/28 21:13:12 dholland Exp $");
#include "opt_mtrr.h"
#include "opt_perfctrs.h"
@@ -695,7 +695,7 @@ x86_set_sdbase(void *arg, char which, lw
wrmsr(MSR_KERNELGSBASE, pcb->pcb_gs);
break;
default:
- panic("x86_get_sdbase");
+ panic("x86_set_sdbase");
}
kpreempt_enable();
@@ -717,7 +717,7 @@ x86_get_sdbase32(void *arg, char which)
sd = (void *)&curpcb->pcb_gsd;
break;
default:
- panic("x86_get_sdbase");
+ panic("x86_get_sdbase32");
}
base = sd->sd_hibase << 24 | sd->sd_lobase;