3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * Author: Sergei Poselenov <sposelenov@emcraft.com>
7 * See file CREDITS for list of people who contributed to this
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
31 * This test checks the arithmetic logic unit (ALU) of CPU.
32 * It tests independently various groups of instructions using
33 * run-time modification of the code to reduce the memory footprint.
34 * For more details refer to post/cpu/ *.c files.
39 #if CONFIG_POST & CONFIG_SYS_POST_FPU
45 extern int fpu_status (void);
46 extern void fpu_enable (void);
47 extern void fpu_disable (void);
49 extern int fpu_post_test_math1 (void);
50 extern int fpu_post_test_math2 (void);
51 extern int fpu_post_test_math3 (void);
52 extern int fpu_post_test_math4 (void);
53 extern int fpu_post_test_math5 (void);
54 extern int fpu_post_test_math6 (void);
55 extern int fpu_post_test_math7 (void);
57 int fpu_post_test (int flags)
59 int fpu = fpu_status ();
69 ret = fpu_post_test_math1 ();
71 ret = fpu_post_test_math2 ();
73 ret = fpu_post_test_math3 ();
75 ret = fpu_post_test_math4 ();
77 ret = fpu_post_test_math5 ();
79 ret = fpu_post_test_math6 ();
81 ret = fpu_post_test_math7 ();
91 #endif /* CONFIG_POST & CONFIG_SYS_POST_FPU */