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:
Marcel Moolenaar 2008-04-27 17:13:22 +00:00
parent fa9e0a18af
commit 6937461ee9
3 changed files with 2 additions and 12 deletions

View File

@ -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)
{

View File

@ -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 */

View File

@ -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