⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 preparejump.s

📁 pocket pc hx4700 bootloader
💻 S
字号:
/*Copyright (C) 2005 Pawel KolodziejskiThis file is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by theFree Software Foundation; either version 2, or (at your option) anylater version.In addition to the permissions in the GNU General Public License, theFree Software Foundation gives you unlimited permission to link thecompiled version of this file into combinations with other programs,and to distribute those combinations without any restriction comingfrom the use of this file.  (The General Public License restrictionsdo apply in other respects; for example, they cover modification ofthe file, and distribution when not linked into a combineexecutable.)This file is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; see the file COPYING.  If not, write tothe Free Software Foundation, 59 Temple Place - Suite 330,Boston, MA 02111-1307, USA.  */#define ALIGN .align 0#define ENTRY(name) \	.globl name; \	ALIGN; \	name:#define CPWAIT \	mrc     p15, 0, r0, c2, c0, 0; \	mov     r0, r0; \	sub     pc, pc, #4;ENTRY(JumpLoader)	ldr	r6, =0xA3200100	ldr	r5, =0xA0000100	ldr	r7, =0xA0308100copy_loop:	ldr	r8, [r6]	str	r8, [r5]	add	r6, r6, #4	add	r5, r5, #4	cmp	r5, r7	blt	copy_loop	ldr	r2, =0x221	ldr	r1, =0x41300000	str	r2, [r1]	ldr	r1, =0x41300008	mov	r1, #3	mcr	p14, 0, r1, c6, c0	nop	nop	nop	nop	CPWAIT	ldr	r1, =565		@ machine number	ldr	r2, =0xA0000100		@ saved tag list	ldr	r11, =0xA0008000        mov     r0, #0@ Jump into the kernel:	mov	pc, r11ENTRY(TurnOnICache)	mrc     p15, 0, r3, c1, c0, 0   @ Read 1 Register of CP15	orr     r3, r3, #0x1000         @ Icache on	mcr     p15, 0, r3, c1, c0, 0   @ Enable I cache	CPWAIT	mov     pc, lrENTRY(setCoreClock)	ldr	r2, =0x161	ldr	r1, =0x41300000	str	r2, [r1]	ldr	r1, =0x41300008	mov     r2, #2	str	r2, [r1]	mov	r1, #3	mcr	p14, 0, r1, c6, c0	nop	nop	nop	nop	CPWAIT	mov     pc, lr

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -