diff options
author | Sergei Poselenov <sposelenov@emcraft.com> | 2007-07-05 08:17:37 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-07-05 08:17:37 +0200 |
commit | b44896215a09c60fa40cae906f7ed207bbc2c492 (patch) | |
tree | f3c10a507342d083a17dbd7f98e5c662a8f2432e /post/cpu/ppc4xx/fpu.c | |
parent | f780b83316d9af1f61d71cc88b1917b387b9b995 (diff) | |
download | u-boot-imx-b44896215a09c60fa40cae906f7ed207bbc2c492.zip u-boot-imx-b44896215a09c60fa40cae906f7ed207bbc2c492.tar.gz u-boot-imx-b44896215a09c60fa40cae906f7ed207bbc2c492.tar.bz2 |
Merged POST framework with the current TOT.
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
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 1935c01..c2eb4a9 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 */ |