Remove platform APIs which are not used by any code and which had only stub

implementations or no implementation on all platforms.

Some of these functions might be good ideas, but their semantics were unclear
given the lack of implementation, and an unlucky porter could be fooled into
trying to implement them or, worse, being baffled when something like
platform_trap_enter() failed to be called.
This commit is contained in:
Juli Mallett 2012-03-12 07:34:15 +00:00
parent 3907c073e5
commit 312af517e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232853
13 changed files with 4 additions and 255 deletions

View File

@ -115,19 +115,6 @@ mips_init(void)
#endif
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -136,18 +123,6 @@ platform_reset(void)
__asm __volatile("j $25");
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
void
platform_start(__register_t a0 __unused, __register_t a1 __unused,
__register_t a2 __unused, __register_t a3 __unused)

View File

@ -116,19 +116,6 @@ mips_init(void)
#endif
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -137,18 +124,6 @@ platform_reset(void)
__asm __volatile("j $25");
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
void
platform_start(__register_t a0 __unused, __register_t a1 __unused,
__register_t a2 __unused, __register_t a3 __unused)

View File

@ -105,18 +105,6 @@ platform_cpu_init()
/* Nothing special */
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -126,18 +114,6 @@ platform_reset(void)
;
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
/*
* Obtain the MAC address via the Redboot environment.
*/

View File

@ -81,19 +81,6 @@ platform_cpu_init()
/* Nothing special */
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -110,18 +97,6 @@ platform_reset(void)
__asm __volatile("j $25");
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
void
platform_start(__register_t a0, __register_t a1,
__register_t a2 __unused, __register_t a3 __unused)

View File

@ -30,14 +30,11 @@
#include <sys/_cpuset.h>
struct trapframe;
struct timecounter;
/*
* Hooks downward into hardware functionality.
*/
void platform_halt(void);
void platform_intr(struct trapframe *);
/*
* Hooks downward into platform functionality.
*/
void platform_reset(void);
void platform_start(__register_t, __register_t, __register_t, __register_t);
@ -48,7 +45,6 @@ unsigned platform_get_timecount(struct timecounter *);
/* For hardware specific CPU initialization */
void platform_cpu_init(void);
void platform_secondary_init(void);
#ifdef SMP
@ -100,6 +96,6 @@ extern void platform_cpu_mask(cpuset_t *mask);
*/
struct cpu_group *platform_smp_topo(void);
#endif /* SMP */
#endif /* !_MACHINE_HWFUNC_H_ */

View File

@ -76,9 +76,6 @@ void mips_pcpu0_init(void);
void mips_proc0_init(void);
void mips_postboot_fixup(void);
/* Platform call-downs. */
void platform_identify(void);
extern int busdma_swi_pending;
void busdma_swi(void);

View File

@ -118,10 +118,4 @@ void MipsUserIntr(void);
register_t trap(struct trapframe *);
#ifndef LOCORE /* XXX */
int check_address(void *);
void platform_trap_enter(void);
void platform_trap_exit(void);
#endif
#endif /* !_MACHINE_TRAP_H_ */

View File

@ -199,19 +199,6 @@ mips_init(void)
#endif
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
/*
* Perform a board-level soft-reset.
* Note that this is not emulated by gxemul.
@ -225,18 +212,6 @@ platform_reset(void)
*c = MALTA_GORESET;
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
static uint64_t
malta_cpu_freq(void)
{

View File

@ -560,22 +560,6 @@ platform_cpu_init()
{
}
void
platform_identify(void)
{
printf("XLP Eval Board\n");
}
/*
* XXX Maybe return the state of the watchdog in enter, and pass it to
* exit? Like spl().
*/
void
platform_trap_enter(void)
{
}
void
platform_reset(void)
{
@ -586,11 +570,6 @@ platform_reset(void)
__asm __volatile("wait");
}
void
platform_trap_exit(void)
{
}
#ifdef SMP
/*
* XLP threads are started simultaneously when we enable threads, this will

View File

@ -516,19 +516,6 @@ platform_cpu_init()
{
}
void
platform_identify(void)
{
printf("Board [%d:%d], processor 0x%08x\n", (int)xlr_boot1_info.board_major_version,
(int)xlr_boot1_info.board_minor_version, mips_rd_prid());
}
void
platform_trap_enter(void)
{
}
void
platform_reset(void)
{
@ -538,11 +525,6 @@ platform_reset(void)
xlr_write_reg(mmio, 8, 1);
}
void
platform_trap_exit(void)
{
}
#ifdef SMP
int xlr_ap_release[MAXCPU];

View File

@ -117,19 +117,6 @@ mips_init(void)
#endif
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -138,18 +125,6 @@ platform_reset(void)
__asm __volatile("j $25");
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
void
platform_start(__register_t a0 __unused, __register_t a1 __unused,
__register_t a2 __unused, __register_t a3 __unused)

View File

@ -143,19 +143,6 @@ mips_init(void)
#endif
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -167,18 +154,6 @@ platform_reset(void)
#endif
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
void
platform_start(__register_t a0, __register_t a1, __register_t a2,
__register_t a3)

View File

@ -271,19 +271,6 @@ mips_init(void)
#endif
}
void
platform_halt(void)
{
}
void
platform_identify(void)
{
}
void
platform_reset(void)
{
@ -295,18 +282,6 @@ platform_reset(void)
sb_system_reset();
}
void
platform_trap_enter(void)
{
}
void
platform_trap_exit(void)
{
}
static void
kseg0_map_coherent(void)
{