From 10e6c623b3806e14b0b917e860b25056ea4d37c9 Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 3 Jul 2000 17:52:33 +0000 Subject: [PATCH] Print the system serial number. --- sys/arch/alpha/alpha/machdep.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 43241ef6c5c0..831c6e12914b 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.217 2000/06/29 09:02:54 mrg Exp $ */ +/* $NetBSD: machdep.c,v 1.218 2000/07/03 17:52:33 thorpej Exp $ */ /*- * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc. @@ -73,7 +73,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.217 2000/06/29 09:02:54 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.218 2000/07/03 17:52:33 thorpej Exp $"); #include #include @@ -986,6 +986,7 @@ void identifycpu() { char *s; + int i; /* * print out CPU identification information. @@ -996,6 +997,9 @@ identifycpu() goto skipMHz; printf(", %ldMHz", hwrpb->rpb_cc_freq / 1000000); skipMHz: + printf(", s/n "); + for (i = 0; i < 10; i++) + printf("%c", hwrpb->rpb_ssn[i]); printf("\n"); printf("%ld byte page size, %d processor%s.\n", hwrpb->rpb_page_size, ncpus, ncpus == 1 ? "" : "s");