From c7f1462f3eade4c955e3755ab2b6bd68fb9d218f Mon Sep 17 00:00:00 2001 From: fvdl Date: Wed, 17 Jan 2001 00:07:18 +0000 Subject: [PATCH] Add machdep file for procfs. Currently only used for linux-style /proc/cpuinfo (only active when procfs is mounted with -o linux). For ports other than the i386 this currently produces an empty string. --- sys/arch/alpha/alpha/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/alpha/conf/files.alpha | 3 ++- sys/arch/amiga/amiga/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/amiga/conf/files.amiga | 3 ++- sys/arch/arc/arc/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/arc/conf/files.arc | 3 ++- sys/arch/arm26/arm26/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/arm26/conf/files.arm26 | 3 ++- sys/arch/arm32/arm32/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/arm32/conf/files.arm32 | 3 ++- sys/arch/atari/atari/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/atari/conf/files.atari | 3 ++- sys/arch/bebox/bebox/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/bebox/conf/files.bebox | 3 ++- sys/arch/cobalt/cobalt/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/cobalt/conf/files.cobalt | 3 ++- sys/arch/dreamcast/conf/files.dreamcast | 3 ++- sys/arch/dreamcast/dreamcast/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/evbsh3/conf/files.evbsh3 | 3 ++- sys/arch/evbsh3/evbsh3/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/hp300/conf/files.hp300 | 3 ++- sys/arch/hp300/hp300/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/hpcmips/conf/files.hpcmips | 3 ++- sys/arch/hpcmips/hpcmips/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/i386/conf/files.i386 | 3 ++- sys/arch/i386/i386/machdep.c | 6 ++++-- sys/arch/i386/i386/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/luna68k/conf/files.luna68k | 3 ++- sys/arch/luna68k/luna68k/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/mac68k/conf/files.mac68k | 3 ++- sys/arch/mac68k/mac68k/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/macppc/conf/files.macppc | 3 ++- sys/arch/macppc/macppc/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/mipsco/conf/files.mipsco | 3 ++- sys/arch/mipsco/mipsco/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/mmeye/conf/files.mmeye | 3 ++- sys/arch/mmeye/mmeye/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/mvme68k/conf/files.mvme68k | 3 ++- sys/arch/mvme68k/mvme68k/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/news68k/conf/files.news68k | 3 ++- sys/arch/news68k/news68k/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/newsmips/conf/files.newsmips | 3 ++- sys/arch/newsmips/newsmips/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/next68k/conf/files.next68k | 3 ++- sys/arch/next68k/next68k/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/ofppc/conf/files.ofppc | 3 ++- sys/arch/ofppc/ofppc/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/pc532/conf/files.pc532 | 3 ++- sys/arch/pc532/pc532/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/pmax/conf/files.pmax | 3 ++- sys/arch/pmax/pmax/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/prep/conf/files.prep | 3 ++- sys/arch/prep/prep/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/sgimips/conf/files.sgimips | 3 ++- sys/arch/sgimips/sgimips/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/sh3/sh3/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/sparc/conf/files.sparc | 3 ++- sys/arch/sparc/sparc/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/sparc64/conf/files.sparc64 | 3 ++- sys/arch/sparc64/sparc64/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/sun3/conf/files.sun3 | 3 ++- sys/arch/sun3/sun3/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/vax/conf/files.vax | 3 ++- sys/arch/vax/vax/procfs_machdep.c | 20 +++++++++++++++++++ sys/arch/x68k/conf/files.x68k | 3 ++- sys/arch/x68k/x68k/procfs_machdep.c | 20 +++++++++++++++++++ 66 files changed, 728 insertions(+), 34 deletions(-) create mode 100644 sys/arch/alpha/alpha/procfs_machdep.c create mode 100644 sys/arch/amiga/amiga/procfs_machdep.c create mode 100644 sys/arch/arc/arc/procfs_machdep.c create mode 100644 sys/arch/arm26/arm26/procfs_machdep.c create mode 100644 sys/arch/arm32/arm32/procfs_machdep.c create mode 100644 sys/arch/atari/atari/procfs_machdep.c create mode 100644 sys/arch/bebox/bebox/procfs_machdep.c create mode 100644 sys/arch/cobalt/cobalt/procfs_machdep.c create mode 100644 sys/arch/dreamcast/dreamcast/procfs_machdep.c create mode 100644 sys/arch/evbsh3/evbsh3/procfs_machdep.c create mode 100644 sys/arch/hp300/hp300/procfs_machdep.c create mode 100644 sys/arch/hpcmips/hpcmips/procfs_machdep.c create mode 100644 sys/arch/i386/i386/procfs_machdep.c create mode 100644 sys/arch/luna68k/luna68k/procfs_machdep.c create mode 100644 sys/arch/mac68k/mac68k/procfs_machdep.c create mode 100644 sys/arch/macppc/macppc/procfs_machdep.c create mode 100644 sys/arch/mipsco/mipsco/procfs_machdep.c create mode 100644 sys/arch/mmeye/mmeye/procfs_machdep.c create mode 100644 sys/arch/mvme68k/mvme68k/procfs_machdep.c create mode 100644 sys/arch/news68k/news68k/procfs_machdep.c create mode 100644 sys/arch/newsmips/newsmips/procfs_machdep.c create mode 100644 sys/arch/next68k/next68k/procfs_machdep.c create mode 100644 sys/arch/ofppc/ofppc/procfs_machdep.c create mode 100644 sys/arch/pc532/pc532/procfs_machdep.c create mode 100644 sys/arch/pmax/pmax/procfs_machdep.c create mode 100644 sys/arch/prep/prep/procfs_machdep.c create mode 100644 sys/arch/sgimips/sgimips/procfs_machdep.c create mode 100644 sys/arch/sh3/sh3/procfs_machdep.c create mode 100644 sys/arch/sparc/sparc/procfs_machdep.c create mode 100644 sys/arch/sparc64/sparc64/procfs_machdep.c create mode 100644 sys/arch/sun3/sun3/procfs_machdep.c create mode 100644 sys/arch/vax/vax/procfs_machdep.c create mode 100644 sys/arch/x68k/x68k/procfs_machdep.c diff --git a/sys/arch/alpha/alpha/procfs_machdep.c b/sys/arch/alpha/alpha/procfs_machdep.c new file mode 100644 index 000000000000..fc009c937530 --- /dev/null +++ b/sys/arch/alpha/alpha/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:18 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/alpha/conf/files.alpha b/sys/arch/alpha/conf/files.alpha index 8f8ddb9a40b4..87b74268d3eb 100644 --- a/sys/arch/alpha/conf/files.alpha +++ b/sys/arch/alpha/conf/files.alpha @@ -1,4 +1,4 @@ -# $NetBSD: files.alpha,v 1.131 2001/01/01 23:43:06 mrg Exp $ +# $NetBSD: files.alpha,v 1.132 2001/01/17 00:07:19 fvdl Exp $ # # alpha-specific configuration info @@ -470,6 +470,7 @@ file arch/alpha/alpha/mainbus.c file arch/alpha/alpha/mem.c file arch/alpha/alpha/pmap.c file arch/alpha/alpha/process_machdep.c +file arch/alpha/alpha/procfs_machdep.c procfs file arch/alpha/alpha/prom.c file arch/alpha/alpha/support.c file arch/alpha/alpha/sys_machdep.c diff --git a/sys/arch/amiga/amiga/procfs_machdep.c b/sys/arch/amiga/amiga/procfs_machdep.c new file mode 100644 index 000000000000..160f69aa52bd --- /dev/null +++ b/sys/arch/amiga/amiga/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:19 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/amiga/conf/files.amiga b/sys/arch/amiga/conf/files.amiga index 9ea43f95ba41..c05ca7f2b43e 100644 --- a/sys/arch/amiga/conf/files.amiga +++ b/sys/arch/amiga/conf/files.amiga @@ -1,4 +1,4 @@ -# $NetBSD: files.amiga,v 1.100 2000/09/03 19:07:05 is Exp $ +# $NetBSD: files.amiga,v 1.101 2001/01/17 00:07:20 fvdl Exp $ # maxpartitions must be first item in files.${ARCH}.newconf maxpartitions 16 # NOTE THAT AMIGA IS SPECIAL! @@ -410,6 +410,7 @@ file arch/amiga/amiga/dkbad.c file arch/amiga/amiga/machdep.c file arch/amiga/amiga/mem.c file arch/amiga/amiga/pmap.c +file arch/amiga/amiga/process_machdep.c procfs file arch/amiga/amiga/sys_machdep.c file arch/amiga/amiga/trap.c file arch/amiga/amiga/vm_machdep.c diff --git a/sys/arch/arc/arc/procfs_machdep.c b/sys/arch/arc/arc/procfs_machdep.c new file mode 100644 index 000000000000..c07977f3d51a --- /dev/null +++ b/sys/arch/arc/arc/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:20 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/arc/conf/files.arc b/sys/arch/arc/conf/files.arc index 6c7e55dd2975..87a22a57d726 100644 --- a/sys/arch/arc/conf/files.arc +++ b/sys/arch/arc/conf/files.arc @@ -1,4 +1,4 @@ -# $NetBSD: files.arc,v 1.26 2000/12/24 09:35:28 ur Exp $ +# $NetBSD: files.arc,v 1.27 2001/01/17 00:07:20 fvdl Exp $ # $OpenBSD: files.arc,v 1.21 1999/09/11 10:20:20 niklas Exp $ # # maxpartitions must be first item in files.${ARCH} @@ -19,6 +19,7 @@ file arch/arc/arc/bus_space.c file arch/arc/arc/bus_space_sparse.c file arch/arc/arc/bus_space_large.c file arch/arc/arc/bus_dma.c +file arch/arc/arc/procfs_machdep.c procfs file arch/arc/arc/wired_map.c file arch/arc/arc/arcbios.c diff --git a/sys/arch/arm26/arm26/procfs_machdep.c b/sys/arch/arm26/arm26/procfs_machdep.c new file mode 100644 index 000000000000..c07977f3d51a --- /dev/null +++ b/sys/arch/arm26/arm26/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:20 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/arm26/conf/files.arm26 b/sys/arch/arm26/conf/files.arm26 index 35c7b82633a4..6695060f8df3 100644 --- a/sys/arch/arm26/conf/files.arm26 +++ b/sys/arch/arm26/conf/files.arm26 @@ -1,4 +1,4 @@ -# $NetBSD: files.arm26,v 1.16 2001/01/12 21:31:52 bjh21 Exp $ +# $NetBSD: files.arm26,v 1.17 2001/01/17 00:07:21 fvdl Exp $ # Copyright (c) 1997, 1998, 2000 Ben Harris # All rights reserved. @@ -232,6 +232,7 @@ file arch/arm26/arm26/machdep.c file arch/arm26/arm26/mem.c file arch/arm26/arm26/pmap.c file arch/arm26/arm26/process_machdep.c +file arch/arm26/arm26/procfs_machdep.c procfs #file arch/arm26/arm26/rscons.c file arch/arm26/arm26/softintr.c file arch/arm26/arm26/stubs.c diff --git a/sys/arch/arm32/arm32/procfs_machdep.c b/sys/arch/arm32/arm32/procfs_machdep.c new file mode 100644 index 000000000000..c43d78017e9b --- /dev/null +++ b/sys/arch/arm32/arm32/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:21 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/arm32/conf/files.arm32 b/sys/arch/arm32/conf/files.arm32 index ca388faebeb4..e29a38fc2491 100644 --- a/sys/arch/arm32/conf/files.arm32 +++ b/sys/arch/arm32/conf/files.arm32 @@ -1,4 +1,4 @@ -# $NetBSD: files.arm32,v 1.86 2001/01/12 21:31:53 bjh21 Exp $ +# $NetBSD: files.arm32,v 1.87 2001/01/17 00:07:21 fvdl Exp $ # # First try for arm-specific configuration info # @@ -347,6 +347,7 @@ file arch/arm32/arm32/fault.c file arch/arm32/arm32/undefined.c file arch/arm32/arm32/mem.c file arch/arm32/arm32/process_machdep.c +file arch/arm32/arm32/procfs_machdep.c procfs file arch/arm32/arm32/machdep.c file arch/arm32/arm32/sys_machdep.c file arch/arm32/arm32/vm_machdep.c diff --git a/sys/arch/atari/atari/procfs_machdep.c b/sys/arch/atari/atari/procfs_machdep.c new file mode 100644 index 000000000000..28dff8e096b6 --- /dev/null +++ b/sys/arch/atari/atari/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:22 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/atari/conf/files.atari b/sys/arch/atari/conf/files.atari index e0b00a89c636..c4d319862f19 100644 --- a/sys/arch/atari/conf/files.atari +++ b/sys/arch/atari/conf/files.atari @@ -1,5 +1,5 @@ # -# $NetBSD: files.atari,v 1.70 2000/11/21 13:34:57 tsutsui Exp $ +# $NetBSD: files.atari,v 1.71 2001/01/17 00:07:22 fvdl Exp $ maxpartitions 16 @@ -186,6 +186,7 @@ file arch/atari/atari/machdep.c file arch/atari/atari/mainbus.c file arch/atari/atari/mem.c file arch/atari/atari/pmap.c +file arch/atari/atari/procfs_machdep.c procfs file arch/atari/atari/sys_machdep.c file arch/atari/atari/trap.c file arch/atari/atari/stalloc.c diff --git a/sys/arch/bebox/bebox/procfs_machdep.c b/sys/arch/bebox/bebox/procfs_machdep.c new file mode 100644 index 000000000000..28dff8e096b6 --- /dev/null +++ b/sys/arch/bebox/bebox/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:22 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/bebox/conf/files.bebox b/sys/arch/bebox/conf/files.bebox index 82fd63ffe95f..833ebb3a485e 100644 --- a/sys/arch/bebox/conf/files.bebox +++ b/sys/arch/bebox/conf/files.bebox @@ -1,4 +1,4 @@ -# $NetBSD: files.bebox,v 1.21 2000/11/08 19:48:52 ad Exp $ +# $NetBSD: files.bebox,v 1.22 2001/01/17 00:07:22 fvdl Exp $ # # First try for bebox specific configuration info # @@ -13,6 +13,7 @@ file arch/bebox/bebox/conf.c file arch/bebox/bebox/disksubr.c disk file arch/bebox/bebox/extintr.c file arch/bebox/bebox/machdep.c +file arch/bebox/bebox/procfs_machdep.c procfs # General files file dev/cons.c diff --git a/sys/arch/cobalt/cobalt/procfs_machdep.c b/sys/arch/cobalt/cobalt/procfs_machdep.c new file mode 100644 index 000000000000..fcf2529177fd --- /dev/null +++ b/sys/arch/cobalt/cobalt/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:23 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/cobalt/conf/files.cobalt b/sys/arch/cobalt/conf/files.cobalt index f51a5aaa2bd7..acee8c42372c 100644 --- a/sys/arch/cobalt/conf/files.cobalt +++ b/sys/arch/cobalt/conf/files.cobalt @@ -1,4 +1,4 @@ -# $NetBSD: files.cobalt,v 1.9 2000/11/26 17:44:08 ad Exp $ +# $NetBSD: files.cobalt,v 1.10 2001/01/17 00:07:23 fvdl Exp $ maxpartitions 16 @@ -34,6 +34,7 @@ file arch/cobalt/cobalt/conf.c file arch/cobalt/cobalt/console.c file arch/cobalt/cobalt/disksubr.c file arch/cobalt/cobalt/machdep.c +file arch/cobalt/cobalt/procfs_machdep.c procfs file dev/md_root.c memory_disk_hooks major {md = 2} diff --git a/sys/arch/dreamcast/conf/files.dreamcast b/sys/arch/dreamcast/conf/files.dreamcast index c6367c8011bf..6ad00d613f22 100644 --- a/sys/arch/dreamcast/conf/files.dreamcast +++ b/sys/arch/dreamcast/conf/files.dreamcast @@ -1,4 +1,4 @@ -# $NetBSD: files.dreamcast,v 1.2 2001/01/16 00:33:50 marcus Exp $ +# $NetBSD: files.dreamcast,v 1.3 2001/01/17 00:07:23 fvdl Exp $ # # new style config file for sh3 architecture # @@ -9,6 +9,7 @@ include "dev/wscons/files.wscons" file arch/dreamcast/dreamcast/conf.c file arch/dreamcast/dreamcast/machdep.c +file arch/dreamcast/dreamcast/procfs_machdep.c procfs defopt opt_memsize.h IOM_ROM_BEGIN IOM_ROM_SIZE IOM_RAM_BEGIN IOM_RAM_SIZE defopt opt_led_addr.h LED_ADDR diff --git a/sys/arch/dreamcast/dreamcast/procfs_machdep.c b/sys/arch/dreamcast/dreamcast/procfs_machdep.c new file mode 100644 index 000000000000..fcf2529177fd --- /dev/null +++ b/sys/arch/dreamcast/dreamcast/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:23 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/evbsh3/conf/files.evbsh3 b/sys/arch/evbsh3/conf/files.evbsh3 index 6504fd14cb06..aebcc5188b8b 100644 --- a/sys/arch/evbsh3/conf/files.evbsh3 +++ b/sys/arch/evbsh3/conf/files.evbsh3 @@ -1,4 +1,4 @@ -# $NetBSD: files.evbsh3,v 1.4 2000/03/25 02:51:57 msaitoh Exp $ +# $NetBSD: files.evbsh3,v 1.5 2001/01/17 00:07:24 fvdl Exp $ # # new style config file for sh3 architecture # @@ -7,6 +7,7 @@ include "arch/evbsh3/conf/files.shbus" file arch/evbsh3/evbsh3/conf.c file arch/evbsh3/evbsh3/machdep.c +file arch/evbsh3/evbsh3/procfs_machdep.c procfs defopt opt_memsize.h IOM_ROM_BEGIN IOM_ROM_SIZE IOM_RAM_BEGIN IOM_RAM_SIZE defopt opt_led_addr.h LED_ADDR diff --git a/sys/arch/evbsh3/evbsh3/procfs_machdep.c b/sys/arch/evbsh3/evbsh3/procfs_machdep.c new file mode 100644 index 000000000000..6545068a9237 --- /dev/null +++ b/sys/arch/evbsh3/evbsh3/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:24 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/hp300/conf/files.hp300 b/sys/arch/hp300/conf/files.hp300 index 865c14a29304..36fea2db8238 100644 --- a/sys/arch/hp300/conf/files.hp300 +++ b/sys/arch/hp300/conf/files.hp300 @@ -1,4 +1,4 @@ -# $NetBSD: files.hp300,v 1.43 2001/01/02 04:28:38 simonb Exp $ +# $NetBSD: files.hp300,v 1.44 2001/01/17 00:07:24 fvdl Exp $ # # hp300-specific configuration info @@ -196,6 +196,7 @@ file arch/hp300/hp300/leds.c useleds file arch/hp300/hp300/mem.c file arch/hp300/hp300/pmap.c file arch/hp300/hp300/pmap_bootstrap.c compile-with "${NOPROF_C}" +file arch/hp300/hp300/procfs_machdep.c procfs file arch/hp300/hp300/sys_machdep.c file arch/hp300/hp300/trap.c file arch/hp300/hp300/vm_machdep.c diff --git a/sys/arch/hp300/hp300/procfs_machdep.c b/sys/arch/hp300/hp300/procfs_machdep.c new file mode 100644 index 000000000000..2274c6dd73a3 --- /dev/null +++ b/sys/arch/hp300/hp300/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.3 2001/01/17 00:07:24 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/hpcmips/conf/files.hpcmips b/sys/arch/hpcmips/conf/files.hpcmips index 6ead663be398..403921c294b0 100644 --- a/sys/arch/hpcmips/conf/files.hpcmips +++ b/sys/arch/hpcmips/conf/files.hpcmips @@ -1,4 +1,4 @@ -# $NetBSD: files.hpcmips,v 1.42 2000/10/22 10:42:31 uch Exp $ +# $NetBSD: files.hpcmips,v 1.43 2001/01/17 00:07:25 fvdl Exp $ # maxpartitions must be first item in files.${ARCH}. maxpartitions 8 @@ -55,6 +55,7 @@ file arch/hpcmips/hpcmips/bus_space.c file arch/hpcmips/hpcmips/bus_dma.c file arch/hpcmips/hpcmips/disksubr.c disk file arch/hpcmips/hpcmips/config_hook.c +file arch/hpcmips/hpcmips/procfs_machdep.c procfs # Console autoconfiguration code: selects between a framebuffers file dev/cons.c diff --git a/sys/arch/hpcmips/hpcmips/procfs_machdep.c b/sys/arch/hpcmips/hpcmips/procfs_machdep.c new file mode 100644 index 000000000000..ef054543187d --- /dev/null +++ b/sys/arch/hpcmips/hpcmips/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:25 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/i386/conf/files.i386 b/sys/arch/i386/conf/files.i386 index 7b621c5f6bac..d9747bcbd370 100644 --- a/sys/arch/i386/conf/files.i386 +++ b/sys/arch/i386/conf/files.i386 @@ -1,4 +1,4 @@ -# $NetBSD: files.i386,v 1.179 2000/12/18 20:38:27 jdolecek Exp $ +# $NetBSD: files.i386,v 1.180 2001/01/17 00:07:25 fvdl Exp $ # # new style config file for i386 architecture # @@ -71,6 +71,7 @@ file arch/i386/i386/microtime.s file netns/ns_cksum.c ns file arch/i386/i386/pmap.c file arch/i386/i386/process_machdep.c +file arch/i386/i386/procfs_machdep.c procfs file arch/i386/i386/sys_machdep.c file arch/i386/i386/syscall.c file arch/i386/i386/trap.c diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index d488008543fe..546b72034415 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.427 2001/01/09 03:45:49 enami Exp $ */ +/* $NetBSD: machdep.c,v 1.428 2001/01/17 00:07:26 fvdl Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc. @@ -193,7 +193,9 @@ int dumpmem_low; int dumpmem_high; int boothowto; int cpu_class; -int i386_fpu_present = 0; +int i386_fpu_present; +int i386_fpu_exception; +int i386_fpu_fdivbug; #define CPUID2MODEL(cpuid) (((cpuid) >> 4) & 15) diff --git a/sys/arch/i386/i386/procfs_machdep.c b/sys/arch/i386/i386/procfs_machdep.c new file mode 100644 index 000000000000..a004cc62c061 --- /dev/null +++ b/sys/arch/i386/i386/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.3 2001/01/17 00:07:26 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/luna68k/conf/files.luna68k b/sys/arch/luna68k/conf/files.luna68k index 2c60d112525d..1b0efa5fad10 100644 --- a/sys/arch/luna68k/conf/files.luna68k +++ b/sys/arch/luna68k/conf/files.luna68k @@ -1,5 +1,5 @@ # -# $NetBSD: files.luna68k,v 1.3 2000/03/15 17:08:40 soren Exp $ +# $NetBSD: files.luna68k,v 1.4 2001/01/17 00:07:27 fvdl Exp $ # maxpartitions 8 maxusers 2 8 64 @@ -14,6 +14,7 @@ file arch/luna68k/luna68k/machdep.c file arch/luna68k/luna68k/mem.c file arch/luna68k/luna68k/pmap.c file arch/luna68k/luna68k/pmap_bootstrap.c +file arch/luna68k/luna68k/procfs_machdep.c procfs file arch/luna68k/luna68k/sys_machdep.c file arch/luna68k/luna68k/trap.c file arch/luna68k/luna68k/vm_machdep.c diff --git a/sys/arch/luna68k/luna68k/procfs_machdep.c b/sys/arch/luna68k/luna68k/procfs_machdep.c new file mode 100644 index 000000000000..ef3d161b9819 --- /dev/null +++ b/sys/arch/luna68k/luna68k/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:27 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/mac68k/conf/files.mac68k b/sys/arch/mac68k/conf/files.mac68k index 8817c30f98db..71889530041b 100644 --- a/sys/arch/mac68k/conf/files.mac68k +++ b/sys/arch/mac68k/conf/files.mac68k @@ -1,4 +1,4 @@ -# $NetBSD: files.mac68k,v 1.96 2000/07/30 21:36:04 briggs Exp $ +# $NetBSD: files.mac68k,v 1.97 2001/01/17 00:07:27 fvdl Exp $ # mac68k-specific configuration info @@ -163,6 +163,7 @@ file arch/mac68k/mac68k/pmap.c file arch/mac68k/mac68k/pmap_bootstrap.c compile-with "${NOPROF_C}" file arch/mac68k/mac68k/pram.c file arch/mac68k/mac68k/pramasm.s +file arch/mac68k/mac68k/procfs_machdep.c procfs file arch/mac68k/mac68k/psc.c file arch/mac68k/mac68k/sys_machdep.c file arch/mac68k/mac68k/trap.c diff --git a/sys/arch/mac68k/mac68k/procfs_machdep.c b/sys/arch/mac68k/mac68k/procfs_machdep.c new file mode 100644 index 000000000000..b24208eedc35 --- /dev/null +++ b/sys/arch/mac68k/mac68k/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:28 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/macppc/conf/files.macppc b/sys/arch/macppc/conf/files.macppc index ea814451d7bf..1e2a4380161c 100644 --- a/sys/arch/macppc/conf/files.macppc +++ b/sys/arch/macppc/conf/files.macppc @@ -1,4 +1,4 @@ -# $NetBSD: files.macppc,v 1.37 2000/11/15 00:39:32 matt Exp $ +# $NetBSD: files.macppc,v 1.38 2001/01/17 00:07:28 fvdl Exp $ # # macppc-specific configuration info @@ -18,6 +18,7 @@ file arch/macppc/macppc/conf.c file arch/macppc/macppc/disksubr.c disk file arch/macppc/macppc/extintr.c file arch/macppc/macppc/machdep.c +file arch/macppc/macppc/procfs_machdep.c procfs file arch/macppc/dev/dbdma.c file dev/cons.c diff --git a/sys/arch/macppc/macppc/procfs_machdep.c b/sys/arch/macppc/macppc/procfs_machdep.c new file mode 100644 index 000000000000..b24208eedc35 --- /dev/null +++ b/sys/arch/macppc/macppc/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:28 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/mipsco/conf/files.mipsco b/sys/arch/mipsco/conf/files.mipsco index 701bacfed739..c851c3730080 100644 --- a/sys/arch/mipsco/conf/files.mipsco +++ b/sys/arch/mipsco/conf/files.mipsco @@ -1,4 +1,4 @@ -# $NetBSD: files.mipsco,v 1.4 2000/10/03 09:38:20 wdk Exp $ +# $NetBSD: files.mipsco,v 1.5 2001/01/17 00:07:28 fvdl Exp $ # MIPS Computer Corp -specific configuration info @@ -46,6 +46,7 @@ file dev/ic/z8530tty.c zstty needs-count file arch/mipsco/mipsco/autoconf.c file arch/mipsco/mipsco/conf.c file arch/mipsco/mipsco/machdep.c +file arch/mipsco/mipsco/procfs_machdep.c procfs file arch/mipsco/mipsco/mips_3x30.c file arch/mipsco/mipsco/disksubr.c file arch/mipsco/mipsco/mainbus.c diff --git a/sys/arch/mipsco/mipsco/procfs_machdep.c b/sys/arch/mipsco/mipsco/procfs_machdep.c new file mode 100644 index 000000000000..438198434d59 --- /dev/null +++ b/sys/arch/mipsco/mipsco/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:29 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/mmeye/conf/files.mmeye b/sys/arch/mmeye/conf/files.mmeye index 08e24d975080..6f6edfc46f09 100644 --- a/sys/arch/mmeye/conf/files.mmeye +++ b/sys/arch/mmeye/conf/files.mmeye @@ -1,4 +1,4 @@ -# $NetBSD: files.mmeye,v 1.2 2000/02/24 19:42:36 msaitoh Exp $ +# $NetBSD: files.mmeye,v 1.3 2001/01/17 00:07:29 fvdl Exp $ # # config file for mmeye @@ -6,5 +6,6 @@ include "arch/mmeye/conf/files.shbus" file arch/mmeye/mmeye/conf.c file arch/mmeye/mmeye/machdep.c +file arch/mmeye/mmeye/procfs_machdep.c procfs defopt opt_memsize.h IOM_ROM_BEGIN IOM_ROM_SIZE IOM_RAM_BEGIN IOM_RAM_SIZE diff --git a/sys/arch/mmeye/mmeye/procfs_machdep.c b/sys/arch/mmeye/mmeye/procfs_machdep.c new file mode 100644 index 000000000000..438198434d59 --- /dev/null +++ b/sys/arch/mmeye/mmeye/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:29 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/mvme68k/conf/files.mvme68k b/sys/arch/mvme68k/conf/files.mvme68k index 3fceaa5f4843..490eb5bd298f 100644 --- a/sys/arch/mvme68k/conf/files.mvme68k +++ b/sys/arch/mvme68k/conf/files.mvme68k @@ -1,4 +1,4 @@ -# $NetBSD: files.mvme68k,v 1.41 2000/12/03 15:40:06 scw Exp $ +# $NetBSD: files.mvme68k,v 1.42 2001/01/17 00:07:29 fvdl Exp $ # config file for mvme68k @@ -125,6 +125,7 @@ file arch/mvme68k/mvme68k/machdep.c file arch/mvme68k/mvme68k/mem.c file arch/mvme68k/mvme68k/pmap.c file arch/mvme68k/mvme68k/pmap_bootstrap.c compile-with "${NOPROF_C}" +file arch/mvme68k/mvme68k/procfs_machdep.c procfs file arch/mvme68k/mvme68k/softintr.c file arch/mvme68k/mvme68k/sys_machdep.c file arch/mvme68k/mvme68k/trap.c diff --git a/sys/arch/mvme68k/mvme68k/procfs_machdep.c b/sys/arch/mvme68k/mvme68k/procfs_machdep.c new file mode 100644 index 000000000000..9f90bcd54449 --- /dev/null +++ b/sys/arch/mvme68k/mvme68k/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:30 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/news68k/conf/files.news68k b/sys/arch/news68k/conf/files.news68k index 92eb45250851..bbf88655c0fb 100644 --- a/sys/arch/news68k/conf/files.news68k +++ b/sys/arch/news68k/conf/files.news68k @@ -1,4 +1,4 @@ -# $NetBSD: files.news68k,v 1.9 2000/10/04 16:35:43 tsutsui Exp $ +# $NetBSD: files.news68k,v 1.10 2001/01/17 00:07:30 fvdl Exp $ # NEWS68K-specific configuration info @@ -24,6 +24,7 @@ file arch/news68k/news68k/mainbus.c file arch/news68k/news68k/mem.c file arch/news68k/news68k/pmap.c file arch/news68k/news68k/pmap_bootstrap.c compile-with "${NOPROF_C}" +file arch/news68k/news68k/procfs_machdep.c procfs file arch/news68k/news68k/sys_machdep.c file arch/news68k/news68k/trap.c file arch/news68k/news68k/vm_machdep.c diff --git a/sys/arch/news68k/news68k/procfs_machdep.c b/sys/arch/news68k/news68k/procfs_machdep.c new file mode 100644 index 000000000000..9f90bcd54449 --- /dev/null +++ b/sys/arch/news68k/news68k/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:30 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/newsmips/conf/files.newsmips b/sys/arch/newsmips/conf/files.newsmips index b1236ece651b..9c0dc152d0e7 100644 --- a/sys/arch/newsmips/conf/files.newsmips +++ b/sys/arch/newsmips/conf/files.newsmips @@ -1,4 +1,4 @@ -# $NetBSD: files.newsmips,v 1.15 2000/11/15 14:29:40 tsubai Exp $ +# $NetBSD: files.newsmips,v 1.16 2001/01/17 00:07:31 fvdl Exp $ # NEWSMIPS-specific configuration info @@ -96,6 +96,7 @@ file arch/newsmips/newsmips/news5000.c ap file arch/newsmips/newsmips/disksubr.c file arch/newsmips/newsmips/mainbus.c file arch/newsmips/newsmips/cpu_cons.c +file arch/newsmips/newsmips/procfs_machdep.c procfs file dev/clock_subr.c file dev/cons.c diff --git a/sys/arch/newsmips/newsmips/procfs_machdep.c b/sys/arch/newsmips/newsmips/procfs_machdep.c new file mode 100644 index 000000000000..d6aff3978285 --- /dev/null +++ b/sys/arch/newsmips/newsmips/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:31 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/next68k/conf/files.next68k b/sys/arch/next68k/conf/files.next68k index e8e797ec66f2..7662a6a350bd 100644 --- a/sys/arch/next68k/conf/files.next68k +++ b/sys/arch/next68k/conf/files.next68k @@ -1,4 +1,4 @@ -# $NetBSD: files.next68k,v 1.17 2000/09/29 06:33:37 deberg Exp $ +# $NetBSD: files.next68k,v 1.18 2001/01/17 00:07:31 fvdl Exp $ # next68k-specific configuration info @@ -41,6 +41,7 @@ file arch/next68k/next68k/trap.c file arch/next68k/next68k/mem.c file arch/next68k/next68k/pmap.c file arch/next68k/next68k/pmap_bootstrap.c +file arch/next68k/next68k/procfs_machdep.c procfs file arch/next68k/next68k/vm_machdep.c file arch/next68k/next68k/machdep.c file arch/next68k/next68k/clock.c diff --git a/sys/arch/next68k/next68k/procfs_machdep.c b/sys/arch/next68k/next68k/procfs_machdep.c new file mode 100644 index 000000000000..d6aff3978285 --- /dev/null +++ b/sys/arch/next68k/next68k/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:31 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/ofppc/conf/files.ofppc b/sys/arch/ofppc/conf/files.ofppc index e97f88817f9a..7e2d48af870c 100644 --- a/sys/arch/ofppc/conf/files.ofppc +++ b/sys/arch/ofppc/conf/files.ofppc @@ -1,4 +1,4 @@ -# $NetBSD: files.ofppc,v 1.10 2000/03/14 15:56:57 oster Exp $ +# $NetBSD: files.ofppc,v 1.11 2001/01/17 00:07:32 fvdl Exp $ # # First try for ofppc-specific configuration info # @@ -11,6 +11,7 @@ file arch/ofppc/ofppc/clock.c file arch/ofppc/ofppc/conf.c file arch/ofppc/ofppc/disksubr.c disk file arch/ofppc/ofppc/machdep.c +file arch/ofppc/ofppc/procfs_machdep.c procfs file dev/cons.c file dev/cninit.c diff --git a/sys/arch/ofppc/ofppc/procfs_machdep.c b/sys/arch/ofppc/ofppc/procfs_machdep.c new file mode 100644 index 000000000000..0517db064d6e --- /dev/null +++ b/sys/arch/ofppc/ofppc/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:32 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/pc532/conf/files.pc532 b/sys/arch/pc532/conf/files.pc532 index 4e5b49d44cdc..dbc343cc8304 100644 --- a/sys/arch/pc532/conf/files.pc532 +++ b/sys/arch/pc532/conf/files.pc532 @@ -1,4 +1,4 @@ -# $NetBSD: files.pc532,v 1.43 2000/03/14 15:56:57 oster Exp $ +# $NetBSD: files.pc532,v 1.44 2001/01/17 00:07:32 fvdl Exp $ # # new style config file for pc532 architecture # @@ -68,6 +68,7 @@ file arch/pc532/pc532/machdep.c file arch/pc532/pc532/mem.c file arch/pc532/pc532/pmap.c file arch/pc532/pc532/process_machdep.c +file arch/pc532/pc532/procfs_machdep.c procfs file arch/pc532/pc532/sys_machdep.c file arch/pc532/pc532/trap.c file arch/pc532/pc532/vm_machdep.c diff --git a/sys/arch/pc532/pc532/procfs_machdep.c b/sys/arch/pc532/pc532/procfs_machdep.c new file mode 100644 index 000000000000..0517db064d6e --- /dev/null +++ b/sys/arch/pc532/pc532/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:32 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/pmax/conf/files.pmax b/sys/arch/pmax/conf/files.pmax index 640fa0025cb0..0f91085bdb38 100644 --- a/sys/arch/pmax/conf/files.pmax +++ b/sys/arch/pmax/conf/files.pmax @@ -1,4 +1,4 @@ -# $NetBSD: files.pmax,v 1.91 2001/01/16 04:34:47 thorpej Exp $ +# $NetBSD: files.pmax,v 1.92 2001/01/17 00:07:33 fvdl Exp $ # DECstation-specific configuration info # maxpartitions must be first item in files.${ARCH}. @@ -224,6 +224,7 @@ file arch/pmax/pmax/conf.c file arch/pmax/pmax/disksubr.c file arch/pmax/pmax/machdep.c file arch/pmax/pmax/mainbus.c +file arch/pmax/pmax/procfs_machdep.c procfs file arch/pmax/pmax/promcall.c file arch/pmax/pmax/sysconf.c file arch/pmax/stand/common/callvec.c diff --git a/sys/arch/pmax/pmax/procfs_machdep.c b/sys/arch/pmax/pmax/procfs_machdep.c new file mode 100644 index 000000000000..cef0bc97cb23 --- /dev/null +++ b/sys/arch/pmax/pmax/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:33 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/prep/conf/files.prep b/sys/arch/prep/conf/files.prep index b7eee3c720c2..fef4beae250a 100644 --- a/sys/arch/prep/conf/files.prep +++ b/sys/arch/prep/conf/files.prep @@ -1,4 +1,4 @@ -# $NetBSD: files.prep,v 1.13 2001/01/05 17:49:43 tsutsui Exp $ +# $NetBSD: files.prep,v 1.14 2001/01/17 00:07:36 fvdl Exp $ # # prep-specific configuration info # @@ -14,6 +14,7 @@ file arch/prep/prep/conf.c file arch/prep/prep/disksubr.c disk file arch/prep/prep/extintr.c file arch/prep/prep/machdep.c +file arch/prep/prep/procfs_machdep.c procfs file dev/clock_subr.c file dev/cons.c diff --git a/sys/arch/prep/prep/procfs_machdep.c b/sys/arch/prep/prep/procfs_machdep.c new file mode 100644 index 000000000000..c64ae314c3ba --- /dev/null +++ b/sys/arch/prep/prep/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:36 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/sgimips/conf/files.sgimips b/sys/arch/sgimips/conf/files.sgimips index e4408abba084..43a2d40b501d 100644 --- a/sys/arch/sgimips/conf/files.sgimips +++ b/sys/arch/sgimips/conf/files.sgimips @@ -1,4 +1,4 @@ -# $NetBSD: files.sgimips,v 1.7 2000/11/26 17:44:10 ad Exp $ +# $NetBSD: files.sgimips,v 1.8 2001/01/17 00:07:36 fvdl Exp $ maxpartitions 16 @@ -61,6 +61,7 @@ file arch/sgimips/sgimips/conf.c file arch/sgimips/sgimips/console.c file arch/sgimips/sgimips/disksubr.c file arch/sgimips/sgimips/machdep.c +file arch/sgimips/sgimips/procfs_machdep.c procfs file dev/md_root.c memory_disk_hooks major {md = 2} diff --git a/sys/arch/sgimips/sgimips/procfs_machdep.c b/sys/arch/sgimips/sgimips/procfs_machdep.c new file mode 100644 index 000000000000..c64ae314c3ba --- /dev/null +++ b/sys/arch/sgimips/sgimips/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:36 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/sh3/sh3/procfs_machdep.c b/sys/arch/sh3/sh3/procfs_machdep.c new file mode 100644 index 000000000000..0d42f5d80385 --- /dev/null +++ b/sys/arch/sh3/sh3/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:37 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/sparc/conf/files.sparc b/sys/arch/sparc/conf/files.sparc index 136abae38fca..bc98cb6ee584 100644 --- a/sys/arch/sparc/conf/files.sparc +++ b/sys/arch/sparc/conf/files.sparc @@ -1,4 +1,4 @@ -# $NetBSD: files.sparc,v 1.99 2000/11/14 11:34:51 kleink Exp $ +# $NetBSD: files.sparc,v 1.100 2001/01/17 00:07:37 fvdl Exp $ # @(#)files.sparc 8.1 (Berkeley) 7/19/93 # sparc-specific configuration info @@ -232,6 +232,7 @@ file arch/sparc/sparc/mem.c file arch/sparc/sparc/promlib.c file arch/sparc/sparc/openfirm.c file arch/sparc/sparc/openprom.c +file arch/sparc/sparc/procfs_machdep.c procfs file arch/sparc/sparc/pmap.c # the following overrides the generic "sys_process.c" # commented out by deraadt diff --git a/sys/arch/sparc/sparc/procfs_machdep.c b/sys/arch/sparc/sparc/procfs_machdep.c new file mode 100644 index 000000000000..0d42f5d80385 --- /dev/null +++ b/sys/arch/sparc/sparc/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:37 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/sparc64/conf/files.sparc64 b/sys/arch/sparc64/conf/files.sparc64 index 61c6242054b5..52e6fa16cd1d 100644 --- a/sys/arch/sparc64/conf/files.sparc64 +++ b/sys/arch/sparc64/conf/files.sparc64 @@ -1,4 +1,4 @@ -# $NetBSD: files.sparc64,v 1.41 2000/11/10 16:05:40 eeh Exp $ +# $NetBSD: files.sparc64,v 1.42 2001/01/17 00:07:38 fvdl Exp $ # @(#)files.sparc64 8.1 (Berkeley) 7/19/93 # sparc64-specific configuration info @@ -202,6 +202,7 @@ file arch/sparc64/sparc64/kgdb_machdep.c kgdb file arch/sparc64/sparc64/locore2.c file arch/sparc64/sparc64/machdep.c file arch/sparc64/sparc64/process_machdep.c +file arch/sparc64/sparc64/procfs_machdep.c procfs file arch/sparc64/sparc64/mem.c file arch/sparc64/sparc64/openprom.c file arch/sparc64/sparc64/openfirm.c diff --git a/sys/arch/sparc64/sparc64/procfs_machdep.c b/sys/arch/sparc64/sparc64/procfs_machdep.c new file mode 100644 index 000000000000..c33c6b59d4e7 --- /dev/null +++ b/sys/arch/sparc64/sparc64/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:38 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/sun3/conf/files.sun3 b/sys/arch/sun3/conf/files.sun3 index a10f96b76b22..81e7d5ee1f99 100644 --- a/sys/arch/sun3/conf/files.sun3 +++ b/sys/arch/sun3/conf/files.sun3 @@ -1,4 +1,4 @@ -# $NetBSD: files.sun3,v 1.58 2000/11/03 05:52:42 tsutsui Exp $ +# $NetBSD: files.sun3,v 1.59 2001/01/17 00:07:38 fvdl Exp $ # # sun3-specific configuration info @@ -40,6 +40,7 @@ file arch/sun3/sun3/fpu.c file arch/sun3/sun3/isr.c file arch/sun3/sun3/kgdb_machdep.c kgdb file arch/sun3/sun3/leds.c +file arch/sun3/sun3/procfs_machdep.c procfs file arch/sun3/sun3/stub.c file arch/sun3/sun3/sunmon.c file arch/sun3/sun3/sys_machdep.c diff --git a/sys/arch/sun3/sun3/procfs_machdep.c b/sys/arch/sun3/sun3/procfs_machdep.c new file mode 100644 index 000000000000..c33c6b59d4e7 --- /dev/null +++ b/sys/arch/sun3/sun3/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:38 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/vax/conf/files.vax b/sys/arch/vax/conf/files.vax index 50d98bdffb88..003684b93bd3 100644 --- a/sys/arch/vax/conf/files.vax +++ b/sys/arch/vax/conf/files.vax @@ -1,4 +1,4 @@ -# $NetBSD: files.vax,v 1.77 2000/12/02 17:15:37 ragge Exp $ +# $NetBSD: files.vax,v 1.78 2001/01/17 00:07:39 fvdl Exp $ # # new style config file for vax architecture # @@ -363,6 +363,7 @@ file arch/vax/vax/udiv.s file arch/vax/vax/trap.c file arch/vax/vax/bus_dma.c file arch/vax/vax/bus_mem.c +file arch/vax/vax/procfs_machdep.c procfs file arch/vax/vax/sgmap.c file arch/vax/vax/vm_machdep.c file arch/vax/vax/findcpu.c diff --git a/sys/arch/vax/vax/procfs_machdep.c b/sys/arch/vax/vax/procfs_machdep.c new file mode 100644 index 000000000000..a2f83fe815b2 --- /dev/null +++ b/sys/arch/vax/vax/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:39 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +} diff --git a/sys/arch/x68k/conf/files.x68k b/sys/arch/x68k/conf/files.x68k index 0e84cebbe30a..bdd00ecf977e 100644 --- a/sys/arch/x68k/conf/files.x68k +++ b/sys/arch/x68k/conf/files.x68k @@ -1,4 +1,4 @@ -# $NetBSD: files.x68k,v 1.35 2001/01/11 16:09:42 minoura Exp $ +# $NetBSD: files.x68k,v 1.36 2001/01/17 00:07:39 fvdl Exp $ # # new style config file for x68k architecture # @@ -34,6 +34,7 @@ file arch/x68k/x68k/machdep.c file arch/x68k/x68k/mem.c file arch/x68k/x68k/pmap_bootstrap.c compile-with "${NOPROF_C}" file arch/x68k/x68k/pmap.c +file arch/x68k/x68k/procfs_machdep.c procfs file arch/x68k/x68k/sys_machdep.c file arch/x68k/x68k/trap.c file arch/x68k/x68k/vm_machdep.c diff --git a/sys/arch/x68k/x68k/procfs_machdep.c b/sys/arch/x68k/x68k/procfs_machdep.c new file mode 100644 index 000000000000..a2f83fe815b2 --- /dev/null +++ b/sys/arch/x68k/x68k/procfs_machdep.c @@ -0,0 +1,20 @@ +/* $NetBSD: procfs_machdep.c,v 1.1 2001/01/17 00:07:39 fvdl Exp $ */ + +#include +#include +#include +#include +#include + + +/* + * Linux-style /proc/cpuinfo. + * Only used when procfs is mounted with -o linux. + */ +int +procfs_getcpuinfstr(char *buf, int *len) +{ + *len = 0; + + return 0; +}