ARM: First round of cpufunc.* cleaning. All abort_fixup functions are
not currently used or defined. Delete them.
This commit is contained in:
parent
83242da4a9
commit
24338d26d4
@ -155,9 +155,6 @@ struct cpu_functions arm9_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
arm9_context_switch, /* context_switch */
|
||||
|
||||
arm9_setup /* cpu setup */
|
||||
@ -220,9 +217,6 @@ struct cpu_functions armv5_ec_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
arm10_context_switch, /* context_switch */
|
||||
|
||||
arm10_setup /* cpu setup */
|
||||
@ -283,9 +277,6 @@ struct cpu_functions sheeva_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
arm10_context_switch, /* context_switch */
|
||||
|
||||
arm10_setup /* cpu setup */
|
||||
@ -345,10 +336,6 @@ struct cpu_functions pj4bv7_cpufuncs = {
|
||||
(void *)cpufunc_nullop, /* sleep */
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
armv7_context_switch, /* context_switch */
|
||||
|
||||
pj4bv7_setup /* cpu setup */
|
||||
@ -412,9 +399,6 @@ struct cpu_functions xscale_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
xscale_context_switch, /* context_switch */
|
||||
|
||||
xscale_setup /* cpu setup */
|
||||
@ -477,9 +461,6 @@ struct cpu_functions xscalec3_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
xscalec3_context_switch, /* context_switch */
|
||||
|
||||
xscale_setup /* cpu setup */
|
||||
@ -541,8 +522,6 @@ struct cpu_functions fa526_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
fa526_context_switch, /* context_switch */
|
||||
|
||||
@ -605,9 +584,6 @@ struct cpu_functions arm1176_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
arm11_context_switch, /* context_switch */
|
||||
|
||||
arm11x6_setup /* cpu setup */
|
||||
@ -677,9 +653,6 @@ struct cpu_functions cortexa_cpufuncs = {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
cpufunc_null_fixup, /* dataabt_fixup */
|
||||
cpufunc_null_fixup, /* prefetchabt_fixup */
|
||||
|
||||
armv7_context_switch, /* context_switch */
|
||||
|
||||
cortexa_setup /* cpu setup */
|
||||
@ -994,27 +967,6 @@ set_cpufuncs()
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Fixup routines for data and prefetch aborts.
|
||||
*
|
||||
* Several compile time symbols are used
|
||||
*
|
||||
* DEBUG_FAULT_CORRECTION - Print debugging information during the
|
||||
* correction of registers after a fault.
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Null abort fixup routine.
|
||||
* For use when no fixup is required.
|
||||
*/
|
||||
int
|
||||
cpufunc_null_fixup(arg)
|
||||
void *arg;
|
||||
{
|
||||
return(ABORT_FIXUP_OK);
|
||||
}
|
||||
|
||||
/*
|
||||
* CPU Setup code
|
||||
*/
|
||||
|
@ -164,9 +164,6 @@ struct cpu_functions {
|
||||
|
||||
/* Soft functions */
|
||||
|
||||
int (*cf_dataabt_fixup) (void *arg);
|
||||
int (*cf_prefetchabt_fixup) (void *arg);
|
||||
|
||||
void (*cf_context_switch) (void);
|
||||
|
||||
void (*cf_setup) (void);
|
||||
@ -215,12 +212,6 @@ extern u_int cputype;
|
||||
|
||||
#define cpu_sleep(m) cpufuncs.cf_sleep(m)
|
||||
|
||||
#define cpu_dataabt_fixup(a) cpufuncs.cf_dataabt_fixup(a)
|
||||
#define cpu_prefetchabt_fixup(a) cpufuncs.cf_prefetchabt_fixup(a)
|
||||
#define ABORT_FIXUP_OK 0 /* fixup succeeded */
|
||||
#define ABORT_FIXUP_FAILED 1 /* fixup failed */
|
||||
#define ABORT_FIXUP_RETURN 2 /* abort handler should return */
|
||||
|
||||
#define cpu_setup() cpufuncs.cf_setup()
|
||||
|
||||
int set_cpufuncs (void);
|
||||
@ -228,9 +219,6 @@ int set_cpufuncs (void);
|
||||
#define ARCHITECTURE_NOT_SUPPORTED 2 /* not known */
|
||||
|
||||
void cpufunc_nullop (void);
|
||||
int cpufunc_null_fixup (void *);
|
||||
int early_abort_fixup (void *);
|
||||
int late_abort_fixup (void *);
|
||||
u_int cpufunc_id (void);
|
||||
u_int cpufunc_cpuid (void);
|
||||
u_int cpufunc_control (u_int clear, u_int bic);
|
||||
|
Loading…
Reference in New Issue
Block a user