Mercurial > lcfOS
comparison kernel/arch/qemu_vexpress/startup_a9.asm @ 388:e07c2a9abac1
Enabled paging in kernel
author | Windel Bouwman |
---|---|
date | Fri, 02 May 2014 14:51:46 +0200 |
parents | 2a970e7270e2 |
children |
comparison
equal
deleted
inserted
replaced
387:34ac19044b8a | 388:e07c2a9abac1 |
---|---|
32 | 32 |
33 | 33 |
34 ; Enable the VMSA (Virtual memory system architecture): | 34 ; Enable the VMSA (Virtual memory system architecture): |
35 mrc p15, 0, r0, c1, c0, 0 | 35 mrc p15, 0, r0, c1, c0, 0 |
36 ; TODO: | 36 ; TODO: |
37 ; mov r1, 0x1 | 37 mov r1, 0x1 |
38 ; orr r0, r0, r1 ; TODO: implement orr r0, r0, 1 | 38 orr r0, r0, r1 ; TODO: implement orr r0, r0, 1 |
39 mcr p15, 0, r0, c1, c0, 0 | 39 mcr p15, 0, r0, c1, c0, 0 |
40 | 40 |
41 ; Setup stack: | 41 ; Setup stack: |
42 mov sp, 0x30000 | 42 mov sp, 0x30000 |
43 BL kernel_start ; Branch to main (this is actually in the interrupt vector) | 43 BL kernel_start ; Branch to main (this is actually in the interrupt vector) |
75 ; Memory map tables: | 75 ; Memory map tables: |
76 | 76 |
77 section mem_tables | 77 section mem_tables |
78 | 78 |
79 kernel_table0: | 79 kernel_table0: |
80 dcd 0x000402 ; Identity map first 1 MB | 80 dcd 0x00000402 ; Identity map first 1 MB |
81 repeat 0xFFE | 81 dcd 0x10000402 ; Map to peripheral space 1 MB |
82 repeat 0x5FE | |
82 dcd 0 | 83 dcd 0 |
83 endrepeat | 84 endrepeat |
84 | 85 |
86 dcd 0x00000402 ; Alias to 0x0 | |
87 | |
88 repeat 0x9FF | |
89 dcd 0 | |
90 endrepeat | |
91 |