diff options
author | ache <ache@FreeBSD.org> | 1994-09-16 01:00:38 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-09-16 01:00:38 +0000 |
commit | 0b6872d87aa60f3b4c83826793ea8b267a5717f8 (patch) | |
tree | 7f52d111247fedb0e2451a063229cec8bdc709f1 | |
parent | ba25185ec9dd7f6cfa23a141ee47738134d0eae5 (diff) | |
download | FreeBSD-src-0b6872d87aa60f3b4c83826793ea8b267a5717f8.zip FreeBSD-src-0b6872d87aa60f3b4c83826793ea8b267a5717f8.tar.gz |
CPU_ADJKERNTZ added to cpu_sysctl
-rw-r--r-- | sys/amd64/amd64/machdep.c | 6 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index f9086b0..9fec7cb 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.62 1994/09/14 23:55:53 wollman Exp $ + * $Id: machdep.c,v 1.63 1994/09/15 10:52:46 davidg Exp $ */ #include "npx.h" @@ -134,6 +134,8 @@ extern int freebufspace; int msgbufmapped = 0; /* set when safe to use msgbuf */ int _udatasel, _ucodesel; +extern int adjkerntz; + /* * Machine-dependent startup code */ @@ -916,6 +918,8 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) case CPU_CONSDEV: return (sysctl_rdstruct(oldp, oldlenp, newp, &cn_tty->t_dev, sizeof cn_tty->t_dev)); + case CPU_ADJKERNTZ: + return (sysctl_int(oldp, oldlenp, newp, newlen, &adjkerntz)); default: return (EOPNOTSUPP); } diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index f9086b0..9fec7cb 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.62 1994/09/14 23:55:53 wollman Exp $ + * $Id: machdep.c,v 1.63 1994/09/15 10:52:46 davidg Exp $ */ #include "npx.h" @@ -134,6 +134,8 @@ extern int freebufspace; int msgbufmapped = 0; /* set when safe to use msgbuf */ int _udatasel, _ucodesel; +extern int adjkerntz; + /* * Machine-dependent startup code */ @@ -916,6 +918,8 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) case CPU_CONSDEV: return (sysctl_rdstruct(oldp, oldlenp, newp, &cn_tty->t_dev, sizeof cn_tty->t_dev)); + case CPU_ADJKERNTZ: + return (sysctl_int(oldp, oldlenp, newp, newlen, &adjkerntz)); default: return (EOPNOTSUPP); } |