Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Only include machine/cpu.h if _KERNEL...
details: https://anonhg.NetBSD.org/src/rev/43b3d7d8de3a
branches: trunk
changeset: 783764:43b3d7d8de3a
user: dsl <dsl%NetBSD.org@localhost>
date: Mon Jan 07 23:40:52 2013 +0000
description:
Only include machine/cpu.h if _KERNEL is defined.
Fixes alpha userspace build (esp. pstat).
NFI why it worked before at all.
diffstat:
sys/arch/alpha/include/param.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r dbb1a557ea04 -r 43b3d7d8de3a sys/arch/alpha/include/param.h
--- a/sys/arch/alpha/include/param.h Mon Jan 07 23:24:28 2013 +0000
+++ b/sys/arch/alpha/include/param.h Mon Jan 07 23:40:52 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.41 2012/02/10 17:35:50 para Exp $ */
+/* $NetBSD: param.h,v 1.42 2013/01/07 23:40:52 dsl Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -47,7 +47,9 @@
#define MACHINE_ARCH "alpha"
#define MID_MACHINE MID_ALPHA
+#ifdef _KERNEL
#include <machine/cpu.h>
+#endif
#define NBPG (1 << ALPHA_PGSHIFT) /* bytes/page */
#define PGOFSET (NBPG-1) /* byte off. into pg */
Home |
Main Index |
Thread Index |
Old Index