summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1998-08-31 08:41:58 +0000
committerkato <kato@FreeBSD.org>1998-08-31 08:41:58 +0000
commit173369820ffebcaea03f21e11551083dda01b0fd (patch)
tree16c4b7356ea2313bd6e0106614e2234bcc10f3b9 /sys/pc98
parent6185272d7d0d6fcd90042bff942253302dab8a80 (diff)
downloadFreeBSD-src-173369820ffebcaea03f21e11551083dda01b0fd.zip
FreeBSD-src-173369820ffebcaea03f21e11551083dda01b0fd.tar.gz
- hw.machine_arch returns cpu architecture type.
- moved definition of MACHINE_ARCH from cpu.h to parm.h as alpha. - Added definitions of _MACHINE and _MACHINE_ARCH. - Added hw.ispc98. The hw.ispc98 is 1 in PC98 kernel and is 0 in IBM-PC kernel. Discussed with: John Birrell <jb@FreeBSD.ORG>
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c8
-rw-r--r--sys/pc98/pc98/machdep.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index 5e0c76a..26fae44 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.90 1998/07/11 17:00:33 kato Exp $
+ * $Id: machdep.c,v 1.91 1998/08/19 09:32:15 kato Exp $
*/
#include "apm.h"
@@ -179,6 +179,12 @@ SYSCTL_INT(_debug, OID_AUTO, tlb_flush_count,
CTLFLAG_RD, &tlb_flush_count, 0, "");
#endif
+#ifdef PC98
+int ispc98 = 1;
+#else
+int ispc98 = 0;
+#endif
+SYSCTL_INT(_hw, OID_AUTO, ispc98, CTLFLAG_RD, &ispc98, 0, "");
int physmem = 0;
int cold = 1;
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index 5e0c76a..26fae44 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
- * $Id: machdep.c,v 1.90 1998/07/11 17:00:33 kato Exp $
+ * $Id: machdep.c,v 1.91 1998/08/19 09:32:15 kato Exp $
*/
#include "apm.h"
@@ -179,6 +179,12 @@ SYSCTL_INT(_debug, OID_AUTO, tlb_flush_count,
CTLFLAG_RD, &tlb_flush_count, 0, "");
#endif
+#ifdef PC98
+int ispc98 = 1;
+#else
+int ispc98 = 0;
+#endif
+SYSCTL_INT(_hw, OID_AUTO, ispc98, CTLFLAG_RD, &ispc98, 0, "");
int physmem = 0;
int cold = 1;
OpenPOWER on IntegriCloud