summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-24 08:29:54 +0000
committerpeter <peter@FreeBSD.org>2001-08-24 08:29:54 +0000
commitef6d8b9ba17818a35b10d11baed552a605621266 (patch)
treebcb1cdcdcd59a13dd68e737208b3946972b8f384
parent5ccbb1e22b45c1c388123f3802ea88c1fb9ac98f (diff)
downloadFreeBSD-src-ef6d8b9ba17818a35b10d11baed552a605621266.zip
FreeBSD-src-ef6d8b9ba17818a35b10d11baed552a605621266.tar.gz
Export the actual KERNBASE to the symbol table. We can use nlist() to get
this without having to second guess it in userland.
-rw-r--r--sys/amd64/amd64/locore.S6
-rw-r--r--sys/amd64/amd64/locore.s6
-rw-r--r--sys/i386/i386/locore.s6
3 files changed, 18 insertions, 0 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index 3007ee1..5549cba 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -101,6 +101,12 @@
#endif /* SMP */
/*
+ * Compiled KERNBASE location
+ */
+ .globl kernbase
+ .set kernbase,KERNBASE
+
+/*
* Globals
*/
.data
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index 3007ee1..5549cba 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -101,6 +101,12 @@
#endif /* SMP */
/*
+ * Compiled KERNBASE location
+ */
+ .globl kernbase
+ .set kernbase,KERNBASE
+
+/*
* Globals
*/
.data
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index 3007ee1..5549cba 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -101,6 +101,12 @@
#endif /* SMP */
/*
+ * Compiled KERNBASE location
+ */
+ .globl kernbase
+ .set kernbase,KERNBASE
+
+/*
* Globals
*/
.data
OpenPOWER on IntegriCloud