aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-17 01:25:48 +0000
committerH. Peter Anvin <hpa@zytor.com>2001-10-17 01:25:48 +0000
commitc4c07523bf866b969581a126b43be1f4ef632123 (patch)
tree51947c60bfe947004dadaa98578b440fa39296f0
parent9466634b21f2e936b4d6f5ddca0df095e33add89 (diff)
downloadlpsm-c4c07523bf866b969581a126b43be1f4ef632123.tar.gz
lpsm-c4c07523bf866b969581a126b43be1f4ef632123.tar.xz
lpsm-c4c07523bf866b969581a126b43be1f4ef632123.zip
Move i386 system dependencies into a separate file.
-rw-r--r--sysdep/i386.h23
-rw-r--r--system.h11
2 files changed, 29 insertions, 5 deletions
diff --git a/sysdep/i386.h b/sysdep/i386.h
new file mode 100644
index 0000000..91accc9
--- /dev/null
+++ b/sysdep/i386.h
@@ -0,0 +1,23 @@
+#ident "$Id$"
+/* ----------------------------------------------------------------------- *
+ *
+ * Copyright 2000-2001 H. Peter Anvin - All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
+ * USA; either version 2 of the License, or (at your option) any later
+ * version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+/*
+ * sysdep/i386.h
+ *
+ * System-specific constants for i386, included from system.h
+ */
+
+/* These constants are appropriate for Linux/i386 */
+
+/* This is where we map the database file - must be constant */
+#define ARENA_ADDRESS ((void *)0x58000000UL)
diff --git a/system.h b/system.h
index 4a3e5c1..9fcda97 100644
--- a/system.h
+++ b/system.h
@@ -1,7 +1,7 @@
#ident "$Id$"
/* ----------------------------------------------------------------------- *
*
- * Copyright 2000 H. Peter Anvin - All Rights Reserved
+ * Copyright 2001 H. Peter Anvin - All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,10 +20,11 @@
#ifndef SYSTEM_H
#define SYSTEM_H
-/* These constants are appropriate for Linux/i386 */
-
-/* This is where we map the database file - must be constant */
-#define ARENA_ADDRESS ((void *)0x60000000UL)
+#ifdef __i386__
+#include "sysdep/i386.h"
+#else
+#error "No sysdep file defined for this machine architecture"
+#endif
#endif /* SYSTEM_H */