|
6#
楼主 |
发表于 2017-1-18 14:20:38
|
只看该作者
5 k1 r3 Q2 J7 s' Y: e. |( P你好,具体怎么写这段代码?之前的cmd文件,将所有段都放在DDR2中,其中哪一句对应的功能是预留给RBL引导程序的空间?请指导一下,谢谢。
- \9 o9 A% N7 F% Q; W" r" r) bSECTIONS
( s$ T# ?, g6 ^+ {+ t{# S& b; o3 x$ \+ P% t0 U
GROUP (NEAR_DP_RELATIVE)
4 R: G9 k2 r; P* v. G {5 B5 \% n5 E r4 A; K6 c6 [ i
.neardata
$ ^% P. f/ S2 M2 B# G. z3 i .rodata
7 @9 \/ Q" V5 H$ O .bss! Z- m& F( e: d4 v. L% x5 \* r
} > DDR2
. H) l, j" Z0 |& }, \$ ~( }2 O8 y8 I1 R! R" v/ [' h
.cinit > DDR2 // Initialization Tables
0 V% E. ?) |2 i# ]( S) X, J .pinit > DDR2 // Constructor Tables
' Y3 l# K! S" M- P0 }# K .init_array > DDR2
/ z- _0 L. I9 n- Q0 y .const > DDR2 // Constant Data7 w0 \4 f# t8 I4 r; s1 e8 D
.switch > DDR2 // Jump Tables# ?0 \7 E9 n1 g- U6 V' W7 l! C
.text > DDR2 // Executable Code. r/ t7 m) i% J- l, K
.text:_c_int00: > 0xC3000000 // Entrypoint4 j5 N! H* c V6 ^! Q# M
. ~4 ^0 g, V! z2 z .far > DDR2 // Far Global & Static Variables5 X7 x( i- k: I: s% B" i% G* ~4 ~' f
.fardata > DDR29 S5 g, _& N" z, j! i( U2 T
.stack > DDR2 // Software System Stack
& E. E, y; }9 j# a; i .sysmem > DDR2 // Dynamic Memory Allocation Area
% z* m- a z9 J6 n2 f
4 w5 R) `& E5 T9 Y .cio > DDR2 // C I/O Buffer
" F; G) B# O3 G: y3 i2 k% N .vecs > DDR2 // Interrupt Vectors
/ m5 u2 w+ w) d- B} |
|