Subversion Repositories freemyipod

Rev

Rev 519 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 519 Rev 563
Line 18... Line 18...
18
@    You should have received a copy of the GNU General Public License
18
@    You should have received a copy of the GNU General Public License
19
@    along with emCORE.  If not, see <http://www.gnu.org/licenses/>.
19
@    along with emCORE.  If not, see <http://www.gnu.org/licenses/>.
20
@
20
@
21
@
21
@
22
 
22
 
-
 
23
#define ASM_FILE
-
 
24
#include "global.h"
23
 
25
 
24
.section .icode.contextswitch, "ax", %progbits
26
.section .icode.contextswitch, "ax", %progbits
25
.align 2
27
.align 2
26
.global context_switch
28
.global context_switch
27
.type context_switch, %function
29
.type context_switch, %function
Line 155... Line 157...
155
	msr	cpsr_c, #0xd3
157
	msr	cpsr_c, #0xd3
156
	mov	sp, r0
158
	mov	sp, r0
157
	ldmfd	sp, {r0-r2}
159
	ldmfd	sp, {r0-r2}
158
	bl	memmove
160
	bl	memmove
159
	bl	clean_dcache
161
	bl	clean_dcache
-
 
162
#ifdef HAVE_TARGETINIT_EXECFIRMWARE
-
 
163
	bl	targetinit_execfirmware
-
 
164
#endif
160
	ldr	r1, [sp]
165
	ldr	r1, [sp]
161
	mrc	p15, 0, r0,c1,c0
166
	mrc	p15, 0, r0,c1,c0
162
	bic	r0, r0, #5
167
	bic	r0, r0, #5
163
	mcr	p15, 0, r0,c1,c0
168
	mcr	p15, 0, r0,c1,c0
164
	mov	r0, #0
169
	mov	r0, #0