Make this compile when DDB is not defined by conditionally compiling
all references to ksym_start and ksym_end.
This commit is contained in:
parent
b75331ccf2
commit
90329307e1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user