Changeset 3082
- Timestamp:
- Jul 22, 2012 4:47:25 PM (10 months ago)
- Location:
- cpu/arm
- Files:
-
- 3 added
- 6 edited
-
mmp2/initmmu.fth (added)
-
mmp2/soc-config.fth (added)
-
mmp3/initmmu.fth (modified) (3 diffs)
-
mmp3/resetvec.fth (modified) (1 diff)
-
mmp3/soc-config.fth (added)
-
mmp3/thunderstone/config.fth (modified) (1 diff)
-
olpc/3.0/config.fth (modified) (1 diff)
-
olpc/cl4/config.fth (modified) (1 diff)
-
olpc/resetvec.fth (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/mmp3/initmmu.fth
r3073 r3082 80 80 81 81 inc r0,#32 \ Next set 82 set r2, #0x1ffe0 \ Mask for set field for L2 cache - depends on #sets=409682 set r2,`l2-#sets h# 20 - #` \ Mask for set field for L2 cache 83 83 ands r1,r0,r2 \ Mask set bits 84 84 0= until … … 230 230 mov r1,0xd0000000 \ Memory controller base address 231 231 232 [ifdef] mmp3 233 \ MMP3 memory controller 232 234 ldr r2,[r1,#0x10] \ MMAP0 register 233 235 ands r3,r2,#1 \ Test CS_VALID … … 259 261 movne r2,r2,lsr #27 \ Move AREA_LENGTH to LSB 260 262 addne r0,r0,r3,lsl r2 \ Compute bank size and add to accumulator 263 [else] 264 \ MMP2 memory controller 265 ldr r2,[r1,#0x100] \ MMAP0 register 266 ands r3,r2,#1 \ Test CS_VALID 267 movne r3,#0x10000 \ Scale factor for memory size 268 movne r2,r2,lsl #12 \ Clear high bits above AREA_LENGTH field 269 movne r2,r2,lsr #28 \ Move AREA_LENGTH to LSB 270 addne r0,r0,r3,lsl r2 \ Compute bank size and add to accumulator 271 272 ldr r2,[r1,#0x110] \ MMAP1 register 273 ands r3,r2,#1 \ Test CS_VALID 274 movne r3,#0x10000 \ Scale factor for memory size 275 movne r2,r2,lsl #12 \ Clear high bits above AREA_LENGTH field 276 movne r2,r2,lsr #28 \ Move AREA_LENGTH to LSB 277 addne r0,r0,r3,lsl r2 \ Compute bank size and add to accumulator 278 [then] 261 279 262 280 mov pc,lr -
cpu/arm/mmp3/resetvec.fth
r3073 r3082 114 114 115 115 \ Load some additional subroutines that are used by the startup code 116 fload ${BP}/cpu/arm/mmp 3/initmmu.fth \ Setup the initial virtual address map116 fload ${BP}/cpu/arm/mmp2/initmmu.fth \ Setup the initial virtual address map 117 117 118 118 \ **** This is the main-line code for the initial startup sequence. -
cpu/arm/mmp3/thunderstone/config.fth
r3073 r3082 7 7 create machine-signature ," TS0" 8 8 9 h# 20000 constant l2-#sets 9 fload ${BP}/cpu/arm/mmp3/soc-config.fth -
cpu/arm/olpc/3.0/config.fth
r3064 r3082 31 31 h# 8000 value /ec-flash 32 32 33 h# 10000 constant l2-#sets 33 fload ${BP}/cpu/arm/mmp2/soc-config.fth 34 34 35 35 fload ${BP}/cpu/arm/olpc/3.0/gpiopins.fth -
cpu/arm/olpc/cl4/config.fth
r3064 r3082 28 28 h# 10000 value /ec-flash 29 29 30 h# 20000 constant l2-#sets 30 fload ${BP}/cpu/arm/mmp3/soc-config.fth 31 31 32 32 fload ${BP}/cpu/arm/olpc/cl4/gpiopins.fth -
cpu/arm/olpc/resetvec.fth
r3020 r3082 114 114 115 115 \ Load some additional subroutines that are used by the startup code 116 fload ${BP}/cpu/arm/ olpc/initmmu.fth \ Setup the initial virtual address map116 fload ${BP}/cpu/arm/mmp2/initmmu.fth \ Setup the initial virtual address map 117 117 118 118 \ **** This is the main-line code for the initial startup sequence.
Note: See TracChangeset
for help on using the changeset viewer.
