]> cvs.zerfleddert.de Git - linexec-j720/blame - asm/asmstuff-wince.asm
disable lcd controller when booting linux, this prevents ghost-lines while
[linexec-j720] / asm / asmstuff-wince.asm
CommitLineData
c5f1f439 1 TTL C:\pocket\asmstuff\asmstuff.cpp\r
2\r
3 AREA |.drectve|, DRECTVE\r
4 DCB "-defaultlib:coredll.lib "\r
5 DCB "-defaultlib:corelibc.lib "\r
6\r
7 EXPORT |?read_mmu@@YAHXZ| ; read_mmu\r
8 AREA |.pdata|, PDATA\r
9|$T229| DCD |?read_mmu@@YAHXZ|\r
10 DCD 0x40000200\r
11 AREA |.text|, CODE\r
12|?read_mmu@@YAHXZ| PROC ; read_mmu\r
13|$M227|\r
14 mov r0, #0x33 ; 0x33 = 51\r
15 mrc p15, 0, r0, c2, c0, 0 \r
16 mov pc, lr\r
17|$M228|\r
18 ENDP ; |?read_mmu@@YAHXZ|, read_mmu\r
19\r
20 EXPORT |?IntOff@@YAXXZ| ; IntOff\r
21 AREA |.pdata|, PDATA\r
22|$T233| DCD |?IntOff@@YAXXZ|\r
23 DCD 0x40000100\r
24 AREA |.text|, CODE\r
25|?IntOff@@YAXXZ| PROC ; IntOff\r
26; Line 9\r
27 mrs r4,cpsr\r
28 orr r1,r4,#0xef\r
29 msr cpsr_c,r1\r
30 mov pc, lr\r
31|$M231|\r
32 mov pc, lr\r
33|$M232|\r
34 ENDP ; |?IntOff@@YAXXZ|, IntOff\r
35\r
36\r
37 EXPORT |?DRAMloader@@YAXI@Z| ; DRAMloader\r
38 AREA |.pdata|, PDATA\r
39|$T237| DCD |?DRAMloader@@YAXI@Z|\r
40 DCD 0x40000b04\r
41 AREA |.text|, CODE\r
42|?DRAMloader@@YAXI@Z| PROC ; DRAMloader\r
43 mov r12, sp\r
44 stmdb sp!, {r0} ; stmfd\r
45 stmdb sp!, {r12, lr} ; stmfd\r
46 sub sp, sp, #4\r
47|$M235|\r
48 ldr r3, [sp, #0xC] ; 0xC = 12\r
49 str r3, [sp]\r
50 ldr r1, [sp]\r
51 ldr r0, =0x3fff\r
52 mcr p15, 0, r0, c7, c10, 4 ; Enable access\r
53 mrc p15, 0, r0, c2, c0, 0\r
54 mov r0, r0\r
55 mrc p15, 0, r3, c1, c0, 0 ;/* disable the MMU */\r
56 and r3, r3, #0xfffffffe ; xscale says p needs to be 0 ???\r
57 mov r3, #0x120\r
58 mcr p15, 0, r3, c1, c0, 0 ;/* disable the MMU */\r
59 ; CPWAIT r0\r
60 mrc p15, 0, r0, c2, c0, 0\r
61 mov r0, r0 \r
62\r
63 mov pc,r1 ; GO GO GO GO GO\r
64 ; can't get here ??? -- jw, 20030517\r
65 add sp, sp, #4\r
66 ldmia sp, {sp, pc} ; ldmfd\r
67|$M236|\r
68 ENDP ; |?DRAMloader@@YAXI@Z|, DRAMloader\r
69\r
70 END
Impressum, Datenschutz