2 * Copyright (C) 2002 Wolfgang Denk <wd@denx.de>
4 * See file CREDITS for list of people who contributed to this
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 #include <ppc_asm.tmpl>
28 #include <asm/cache.h>
30 #if CONFIG_POST & CONFIG_SYS_POST_CPU
32 /* void cpu_post_exec_02 (ulong *code, ulong op1, ulong op2); */
33 .global cpu_post_exec_02
55 /* void cpu_post_exec_04 (ulong *code, ulong op1, ulong op2, ulong op3, ulong op4); */
56 .global cpu_post_exec_04
80 /* void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2); */
81 .global cpu_post_exec_12
101 /* void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1); */
102 .global cpu_post_exec_11
121 /* void cpu_post_exec_21 (ulong *code, ulong *cr, ulong *res, ulong op1); */
122 .global cpu_post_exec_21
150 /* void cpu_post_exec_22 (ulong *code, ulong *cr, ulong *res, ulong op1,
152 .global cpu_post_exec_22
181 /* void cpu_post_exec_12w (ulong *code, ulong *op1, ulong op2, ulong op3); */
182 .global cpu_post_exec_12w
203 /* void cpu_post_exec_11w (ulong *code, ulong *op1, ulong op2); */
204 .global cpu_post_exec_11w
224 /* void cpu_post_exec_22w (ulong *code, ulong *op1, ulong op2, ulong *op3); */
225 .global cpu_post_exec_22w
248 /* void cpu_post_exec_21w (ulong *code, ulong *op1, ulong *op2); */
249 .global cpu_post_exec_21w
271 /* void cpu_post_exec_21x (ulong *code, ulong *op1, ulong *op2, ulong op3); */
272 .global cpu_post_exec_21x
294 /* void cpu_post_exec_31 (ulong *code, ulong *ctr, ulong *lr, ulong *jump,
296 .global cpu_post_exec_31
326 /* int cpu_post_complex_1_asm (int a1, int a2, int a3, int a4, int n); */
327 .global cpu_post_complex_1_asm
328 cpu_post_complex_1_asm:
331 bge cpu_post_complex_1_done
333 cpu_post_complex_1_loop:
338 bdnz cpu_post_complex_1_loop
339 cpu_post_complex_1_done:
343 /* int cpu_post_complex_2_asm (int x, int n); */
344 .global cpu_post_complex_2_asm
345 cpu_post_complex_2_asm:
352 cpu_post_complex_2_loop:
355 bdnz cpu_post_complex_2_loop