Remove mfsvr():
o The function is defined unconditionally but depends on SPR_SVR, which is defined conditionally. o spr.h defines mfspr() and mtspr(), which is no worse to use.
This commit is contained in:
parent
fa9e0a18af
commit
6937461ee9
@ -123,16 +123,6 @@ mfpvr(void)
|
||||
return (value);
|
||||
}
|
||||
|
||||
static __inline register_t
|
||||
mfsvr(void)
|
||||
{
|
||||
register_t value;
|
||||
|
||||
__asm __volatile ("mfspr %0, %1" : "=r"(value) : "K"(SPR_SVR));
|
||||
|
||||
return (value);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
eieio(void)
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ __FBSDID("$FreeBSD$");
|
||||
void
|
||||
cpu_reset()
|
||||
{
|
||||
uint32_t svr = mfsvr();
|
||||
uint32_t svr = mfspr(SPR_SVR);
|
||||
|
||||
if (svr == SVR_MPC8572E || svr == SVR_MPC8572)
|
||||
/* Systems with dedicated reset register */
|
||||
|
@ -233,7 +233,7 @@ ocpbus_probe (device_t dev)
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
svr = mfsvr();
|
||||
svr = mfspr(SPR_SVR);
|
||||
if (svr == SVR_MPC8572E || svr == SVR_MPC8572)
|
||||
law_max = 12;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user