Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips cpu_number() returns a u_int
details: https://anonhg.NetBSD.org/src/rev/65a2ae89e55b
branches: trunk
changeset: 764270:65a2ae89e55b
user: matt <matt%NetBSD.org@localhost>
date: Thu Apr 14 17:42:00 2011 +0000
description:
cpu_number() returns a u_int
diffstat:
sys/arch/mips/mips/ipifuncs.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r c26c4391a495 -r 65a2ae89e55b sys/arch/mips/mips/ipifuncs.c
--- a/sys/arch/mips/mips/ipifuncs.c Thu Apr 14 17:41:32 2011 +0000
+++ b/sys/arch/mips/mips/ipifuncs.c Thu Apr 14 17:42:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipifuncs.c,v 1.4 2011/04/14 16:58:58 matt Exp $ */
+/* $NetBSD: ipifuncs.c,v 1.5 2011/04/14 17:42:00 matt Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.4 2011/04/14 16:58:58 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipifuncs.c,v 1.5 2011/04/14 17:42:00 matt Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -47,10 +47,8 @@
#include <mips/db_machdep.h>
#endif
-
static void ipi_halt(void) __dead;
-
static const char * const ipi_names[] = {
[IPI_NOP] = "ipi nop",
[IPI_AST] = "ipi ast",
@@ -97,8 +95,8 @@
static void
ipi_halt(void)
{
- const int my_cpu = cpu_number();
- printf("cpu%d: shutting down\n", my_cpu);
+ const u_int my_cpu = cpu_number();
+ printf("cpu%u: shutting down\n", my_cpu);
CPUSET_ADD(cpus_halted, my_cpu);
splhigh();
for (;;)
Home |
Main Index |
Thread Index |
Old Index