2 ; Port on Texas Instruments TMS320C6x architecture
4 ; Copyright (C) 2004, 2009, 2010, 2011 Texas Instruments Incorporated
5 ; Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
7 ; This program is free software; you can redistribute it and/or modify
8 ; it under the terms of the GNU General Public License version 2 as
9 ; published by the Free Software Foundation.
11 #include <linux/linkage.h>
12 #include <linux/of_fdt.h>
13 #include <asm/asm-offsets.h>
17 ;; Save magic and pointer
20 MVKL .S2 __bss_start,B5
21 MVKH .S2 __bss_start,B5
22 MVKL .S2 __bss_stop,B6
23 MVKH .S2 __bss_stop,B6
24 SUB .L2 B6,B5,B6 ; bss size
26 ;; Set the stack pointer
27 MVKL .S2 current_ksp,B0
28 MVKH .S2 current_ksp,B0
32 SHR .S2 B6,3,B0 ; number of dwords to clear
39 [!B1] STDW .D2T2 B13:B12,*B5++[1]
58 ;; pass DTB pointer to machine_init (or zero if none)
59 MVKL .S1 OF_DT_HEADER,A0
60 MVKH .S1 OF_DT_HEADER,A0
65 #ifdef CONFIG_C6X_BIG_KERNEL
66 MVKL .S1 machine_init,A0
67 MVKH .S1 machine_init,A0
72 CALLP .S2 machine_init,B3
76 #ifdef CONFIG_C6X_BIG_KERNEL
77 MVKL .S1 start_kernel,A0
78 MVKH .S1 start_kernel,A0