svn commit: r258526 - projects/specific_leg/sys/arm/arm
Andrew Turner
andrew at FreeBSD.org
Sun Nov 24 15:03:27 UTC 2013
Author: andrew
Date: Sun Nov 24 15:03:26 2013
New Revision: 258526
URL: http://svnweb.freebsd.org/changeset/base/258526
Log:
Remove unused code.
Modified:
projects/specific_leg/sys/arm/arm/platform.c
projects/specific_leg/sys/arm/arm/platform_if.m
Modified: projects/specific_leg/sys/arm/arm/platform.c
==============================================================================
--- projects/specific_leg/sys/arm/arm/platform.c Sun Nov 24 12:48:55 2013 (r258525)
+++ projects/specific_leg/sys/arm/arm/platform.c Sun Nov 24 15:03:26 2013 (r258526)
@@ -64,112 +64,6 @@ static char plat_name[64] = "";
SYSCTL_STRING(_hw, OID_AUTO, platform, CTLFLAG_RD | CTLFLAG_TUN,
plat_name, 0, "Platform currently in use");
-static struct mem_region *pregions = NULL;
-static struct mem_region *aregions = NULL;
-static int npregions, naregions;
-
-void
-mem_regions(struct mem_region **phys, int *physsz, struct mem_region **avail,
- int *availsz)
-{
- if (pregions == NULL)
- PLATFORM_MEM_REGIONS(plat_obj, &pregions, &npregions,
- &aregions, &naregions);
-
- *phys = pregions;
- *avail = aregions;
- *physsz = npregions;
- *availsz = naregions;
-}
-
-#if 0
-int
-mem_valid(vm_offset_t addr, int len)
-{
- int i;
-
- if (pregions == NULL)
- PLATFORM_MEM_REGIONS(plat_obj, &pregions, &npregions,
- &aregions, &naregions);
-
- for (i = 0; i < npregions; i++)
- if ((addr >= pregions[i].mr_start)
- && (addr + len <= pregions[i].mr_start + pregions[i].mr_size))
- return (0);
-
- return (EFAULT);
-}
-#endif
-
-vm_offset_t
-platform_real_maxaddr(void)
-{
- return (PLATFORM_REAL_MAXADDR(plat_obj));
-}
-
-#if 0
-const char *
-installed_platform()
-{
- return (plat_def_impl->name);
-}
-
-u_long
-platform_timebase_freq(struct cpuref *cpu)
-{
- return (PLATFORM_TIMEBASE_FREQ(plat_obj, cpu));
-}
-
-int
-platform_smp_first_cpu(struct cpuref *cpu)
-{
- return (PLATFORM_SMP_FIRST_CPU(plat_obj, cpu));
-}
-
-int
-platform_smp_next_cpu(struct cpuref *cpu)
-{
- return (PLATFORM_SMP_NEXT_CPU(plat_obj, cpu));
-}
-
-int
-platform_smp_get_bsp(struct cpuref *cpu)
-{
- return (PLATFORM_SMP_GET_BSP(plat_obj, cpu));
-}
-
-int
-platform_smp_start_cpu(struct pcpu *cpu)
-{
- return (PLATFORM_SMP_START_CPU(plat_obj, cpu));
-}
-
-void
-platform_smp_ap_init()
-{
- PLATFORM_SMP_AP_INIT(plat_obj);
-}
-#endif
-
-#ifdef SMP
-struct cpu_group *
-cpu_topo(void)
-{
- return (PLATFORM_SMP_TOPO(plat_obj));
-}
-#endif
-
-#if 0
-/*
- * Reset back to firmware.
- */
-void
-cpu_reset()
-{
- PLATFORM_RESET(plat_obj);
-}
-#endif
-
/*
* Platform install routines. Highest priority wins, using the same
* algorithm as bus attachment.
Modified: projects/specific_leg/sys/arm/arm/platform_if.m
==============================================================================
--- projects/specific_leg/sys/arm/arm/platform_if.m Sun Nov 24 12:48:55 2013 (r258525)
+++ projects/specific_leg/sys/arm/arm/platform_if.m Sun Nov 24 15:03:26 2013 (r258526)
@@ -78,14 +78,6 @@ CODE {
#endif
}
#endif
- static vm_offset_t platform_null_real_maxaddr(platform_t plat)
- {
- return (VM_MAX_ADDRESS);
- }
- static void platform_null_smp_ap_init(platform_t plat)
- {
- return;
- }
};
/**
More information about the svn-src-projects
mailing list