summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-19 04:14:08 +0000
committermarcel <marcel@FreeBSD.org>2002-10-19 04:14:08 +0000
commit26dbe2eb12b32c3ce73ff82663045efbd83d165d (patch)
tree64619dcd53ec3f8a657a5845e1b7c7166ccb7073 /sys
parentfdc552bda2d0b199861013034ce47f65869860c4 (diff)
downloadFreeBSD-src-26dbe2eb12b32c3ce73ff82663045efbd83d165d.zip
FreeBSD-src-26dbe2eb12b32c3ce73ff82663045efbd83d165d.tar.gz
Make this compile when DDB is not defined by conditionally compiling
all references to ksym_start and ksym_end.
Diffstat (limited to 'sys')
-rw-r--r--sys/ia64/ia64/machdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index 5f44497..88083a3 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -518,9 +518,14 @@ ia64_init(u_int64_t arg1, u_int64_t arg2)
* Find the beginning and end of the kernel.
*/
kernstart = trunc_page(kernel_text);
+#ifdef DDB
ksym_start = (void *)bootinfo.bi_symtab;
- ksym_end = (void *)bootinfo.bi_esymtab;
+ ksym_end = (void *)bootinfo.bi_esymtab;
kernend = (vm_offset_t)round_page(ksym_end);
+#else
+ kernend = (vm_offset_t)round_page(_end);
+#endif
+
/* But if the bootstrap tells us otherwise, believe it! */
if (bootinfo.bi_kernend)
kernend = round_page(bootinfo.bi_kernend);
OpenPOWER on IntegriCloud