summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/include
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-09 14:57:27 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-09 14:57:27 +0000
commit742d43747326c808a6f441af721d78525f69f4a8 (patch)
treedf270ec266f214aeb803b1ee29decdc03b1da0aa /sys/arch/sgi/include
parentac8a30a6ca44a9d5f639c96c1c8fb2cf08ca1677 (diff)
Big cleanup. Removed some unused obsolete stuff and fixed copyrights
on some files. Arcbios support is now in, thus detects memorysize and cpu clock frequency.
Diffstat (limited to 'sys/arch/sgi/include')
-rw-r--r--sys/arch/sgi/include/autoconf.h14
-rw-r--r--sys/arch/sgi/include/dlfcn.h5
-rw-r--r--sys/arch/sgi/include/exec.h3
3 files changed, 10 insertions, 12 deletions
diff --git a/sys/arch/sgi/include/autoconf.h b/sys/arch/sgi/include/autoconf.h
index 8761e9ac4da..046b369c77c 100644
--- a/sys/arch/sgi/include/autoconf.h
+++ b/sys/arch/sgi/include/autoconf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.h,v 1.1 2004/08/06 21:12:18 pefo Exp $ */
+/* $OpenBSD: autoconf.h,v 1.2 2004/08/09 14:57:26 pefo Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -43,20 +43,24 @@
/*
* Structure holding all misc config information.
*/
+#define MAX_CPUS 4
struct sys_rec {
int system_type;
struct {
- u_int32_t type;
- u_int32_t vers_maj;
- u_int32_t vers_min;
+ u_int16_t type;
+ u_int8_t vers_maj;
+ u_int8_t vers_min;
+ u_int16_t fptype;
+ u_int8_t fpvers_maj;
+ u_int8_t fpvers_min;
u_int32_t clock;
u_int32_t clock_bus;
u_int32_t tlbsize;
u_int32_t tlbwired;
u_int32_t cfg_reg;
u_int32_t stat_reg;
- } cpu;
+ } cpu[MAX_CPUS];
struct mips_bus_space local;
struct mips_bus_space isa_io;
struct mips_bus_space isa_mem;
diff --git a/sys/arch/sgi/include/dlfcn.h b/sys/arch/sgi/include/dlfcn.h
deleted file mode 100644
index 815cef633e1..00000000000
--- a/sys/arch/sgi/include/dlfcn.h
+++ /dev/null
@@ -1,5 +0,0 @@
-/* $OpenBSD: dlfcn.h,v 1.1 2004/08/06 21:12:19 pefo Exp $ */
-
-/* Use Mips generic include file */
-
-#include <mips64/dlfcn.h>
diff --git a/sys/arch/sgi/include/exec.h b/sys/arch/sgi/include/exec.h
index 256af3ea9dd..75242789a88 100644
--- a/sys/arch/sgi/include/exec.h
+++ b/sys/arch/sgi/include/exec.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.h,v 1.1 2004/08/06 21:12:19 pefo Exp $ */
+/* $OpenBSD: exec.h,v 1.2 2004/08/09 14:57:26 pefo Exp $ */
/*
* Copyright (c) 1996-2003 Per Fogelstrom
@@ -56,7 +56,6 @@
#define _NLIST_DO_ELF
#define _NLIST_DO_ECOFF
-#define _KERN_DO_ECOFF /* XXX obsolete */
#define _KERN_DO_ELF
#if defined(_LP64)
#define _KERN_DO_ELF64