Remove print_kernel_section_addr(). All statements in that function

expand to uncompilable code when the kernel configuration contains
"options DEBUG", such as it is for LINT. The toolchain is often a
better approach to figure this out, as it doesn't require one to
boot the kernel.
This commit is contained in:
Marcel Moolenaar 2012-11-27 01:05:07 +00:00
parent dfad92447b
commit b6628f1837

View File

@ -1037,18 +1037,6 @@ print_kenv(void)
debugf(" %x %s\n", (uint32_t)cp, cp);
}
static void
print_kernel_section_addr(void)
{
debugf("kernel image addresses:\n");
debugf(" kernbase = 0x%08x\n", (uint32_t)kernbase);
debugf(" _etext (sdata) = 0x%08x\n", (uint32_t)_etext);
debugf(" _edata = 0x%08x\n", (uint32_t)_edata);
debugf(" __bss_start = 0x%08x\n", (uint32_t)__bss_start);
debugf(" _end = 0x%08x\n", (uint32_t)_end);
}
static void
physmap_init(struct mem_region *availmem_regions, int availmem_regions_sz)
{
@ -1344,7 +1332,6 @@ initarm(struct arm_boot_params *abp)
debugf(" arg1 kmdp = 0x%08x\n", (uint32_t)kmdp);
debugf(" boothowto = 0x%08x\n", boothowto);
debugf(" dtbp = 0x%08x\n", (uint32_t)dtbp);
print_kernel_section_addr();
print_kenv();
env = getenv("kernelname");