Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/include don't expose cpu_info and friends to ...
details: https://anonhg.NetBSD.org/src/rev/f9a4a8a799f9
branches: trunk
changeset: 570128:f9a4a8a799f9
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Sep 25 11:08:47 2004 +0000
description:
don't expose cpu_info and friends to userland.
diffstat:
sys/arch/amd64/include/cpu.h | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 88c095dde619 -r f9a4a8a799f9 sys/arch/amd64/include/cpu.h
--- a/sys/arch/amd64/include/cpu.h Sat Sep 25 10:47:29 2004 +0000
+++ b/sys/arch/amd64/include/cpu.h Sat Sep 25 11:08:47 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.5 2004/09/25 03:05:23 yamt Exp $ */
+/* $NetBSD: cpu.h,v 1.6 2004/09/25 11:08:47 yamt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -37,6 +37,7 @@
#ifndef _AMD64_CPU_H_
#define _AMD64_CPU_H_
+#if defined(_KERNEL)
#if defined(_KERNEL_OPT)
#include "opt_multiprocessor.h"
#include "opt_lockdebug.h"
@@ -164,13 +165,10 @@
#define X86_MAXPROCS 1
-#ifdef _KERNEL
extern struct cpu_info cpu_info_primary;
#define curcpu() (&cpu_info_primary)
-#endif
-
/*
* definitions of cpu-dependent requirements
* referenced in generic code
@@ -247,7 +245,6 @@
* pull in #defines for kinds of processors
*/
-#ifdef _KERNEL
extern int biosbasemem;
extern int biosextmem;
extern int cpu;
Home |
Main Index |
Thread Index |
Old Index