diff options
author | Wolfgang Denk <wd@denx.de> | 2009-07-26 22:54:23 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-07-26 22:54:23 +0200 |
commit | 4e37963af708198f3a5c187edaaf584115ac1df6 (patch) | |
tree | 329d38f27fe2c13a43c57f80a611a7ebb25abddd /post/cpu/ppc4xx/fpu.c | |
parent | 2050826982f329a87c3a504add701aa2233e9067 (diff) | |
parent | 4b1389e0ceb19e9b50b96fd3908483a6c2274fb0 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Diffstat (limited to 'post/cpu/ppc4xx/fpu.c')
-rw-r--r-- | post/cpu/ppc4xx/fpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/post/cpu/ppc4xx/fpu.c b/post/cpu/ppc4xx/fpu.c index fff4169976..e9b96dde8d 100644 --- a/post/cpu/ppc4xx/fpu.c +++ b/post/cpu/ppc4xx/fpu.c @@ -34,7 +34,7 @@ int fpu_status(void) { - if (mfspr(ccr0) & CCR0_DAPUIB) + if (mfspr(SPRN_CCR0) & CCR0_DAPUIB) return 0; /* Disabled */ else return 1; /* Enabled */ @@ -43,14 +43,14 @@ int fpu_status(void) void fpu_disable(void) { - mtspr(ccr0, mfspr(ccr0) | CCR0_DAPUIB); + mtspr(SPRN_CCR0, mfspr(SPRN_CCR0) | CCR0_DAPUIB); mtmsr(mfmsr() & ~MSR_FP); } void fpu_enable(void) { - mtspr(ccr0, mfspr(ccr0) & ~CCR0_DAPUIB); + mtspr(SPRN_CCR0, mfspr(SPRN_CCR0) & ~CCR0_DAPUIB); mtmsr(mfmsr() | MSR_FP); } |