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