svn commit: r243578 - head/sys/arm/arm
Marcel Moolenaar
marcel at FreeBSD.org
Tue Nov 27 01:05:07 UTC 2012
Author: marcel
Date: Tue Nov 27 01:05:07 2012
New Revision: 243578
URL: http://svnweb.freebsd.org/changeset/base/243578
Log:
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.
Modified:
head/sys/arm/arm/machdep.c
Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c Tue Nov 27 00:42:30 2012 (r243577)
+++ head/sys/arm/arm/machdep.c Tue Nov 27 01:05:07 2012 (r243578)
@@ -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");
More information about the svn-src-all
mailing list