diff options
author | marcel <marcel@FreeBSD.org> | 2012-11-27 01:05:07 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2012-11-27 01:05:07 +0000 |
commit | b0982c796a6309b4e95cdf5ba12e691c9d8ff42b (patch) | |
tree | fd1e4481ec72b3f58311f1d83256e8eb8909f7f6 | |
parent | 2749496c99359766a67ce2f3e2f9afc50ea772af (diff) | |
download | FreeBSD-src-b0982c796a6309b4e95cdf5ba12e691c9d8ff42b.zip FreeBSD-src-b0982c796a6309b4e95cdf5ba12e691c9d8ff42b.tar.gz |
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.
-rw-r--r-- | sys/arm/arm/machdep.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c index 17a60c2..08d6fc1 100644 --- a/sys/arm/arm/machdep.c +++ b/sys/arm/arm/machdep.c @@ -1038,18 +1038,6 @@ print_kenv(void) } 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) { int i, j, cnt; @@ -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"); |