diff options
author | Stefan Roese <sr@denx.de> | 2007-07-06 14:49:28 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-07-06 14:49:28 +0200 |
commit | 461f2274f8d5e15a354ff92648f17c7b2aa76faa (patch) | |
tree | 86b6b095749fcb9faca5858fe05b7b991b50bce9 /post/cpu/ppc4xx/fpu.c | |
parent | 8e990cb076a1c77daf3a50cc0df9732135e9eef5 (diff) | |
parent | e80955f07de03fef0196353e77534b2300193c1c (diff) |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'post/cpu/ppc4xx/fpu.c')
-rw-r--r-- | post/cpu/ppc4xx/fpu.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/post/cpu/ppc4xx/fpu.c b/post/cpu/ppc4xx/fpu.c index 1935c011ba..c2eb4a9bf0 100644 --- a/post/cpu/ppc4xx/fpu.c +++ b/post/cpu/ppc4xx/fpu.c @@ -1,5 +1,8 @@ /* - * Copyright (C) 2007 Wolfgang Denk <wd@denx.de> + * (C) Copyright 2007 + * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * Author: Sergei Poselenov <sposelenov@emcraft.com> * * See file CREDITS for list of people who contributed to this * project. @@ -34,7 +37,7 @@ int fpu_status(void) { if (mfspr(ccr0) & CCR0_DAPUIB) return 0; /* Disabled */ - else + else return 1; /* Enabled */ } @@ -51,5 +54,6 @@ void fpu_enable(void) mtspr(ccr0, mfspr(ccr0) & ~CCR0_DAPUIB); mtmsr(mfmsr() | MSR_FP); } + #endif -#endif +#endif /* CONFIG_POST */ |