|
6#
楼主 |
发表于 2017-1-18 14:20:38
|
只看该作者
7 X4 G j! Y, h; _
你好,具体怎么写这段代码?之前的cmd文件,将所有段都放在DDR2中,其中哪一句对应的功能是预留给RBL引导程序的空间?请指导一下,谢谢。5 P7 g' v: m" X1 z% B8 I5 }1 v
SECTIONS4 B, ?" D8 O+ \! ]4 f. m0 |
{ r) a& A& R0 K
GROUP (NEAR_DP_RELATIVE)
8 m7 L$ r. N" i, [; o1 e {) y" C$ J% k6 V2 O. R. b1 W
.neardata% {2 P. s" u3 `4 e! A/ K1 W
.rodata7 V: j! s( n9 g) x) ~
.bss
; L H4 }: Q% X: c } > DDR2/ Y$ r0 r! M$ \. g) p
4 o: `) I, f4 M; ~7 P8 X4 O0 z .cinit > DDR2 // Initialization Tables3 b6 E6 E$ u% P
.pinit > DDR2 // Constructor Tables0 h2 R6 z* w# H6 P" q( Y% @7 X0 p
.init_array > DDR2
, h3 V+ A& }% g7 D8 z .const > DDR2 // Constant Data# G5 O5 o) O3 M0 F2 q i
.switch > DDR2 // Jump Tables2 W; L! ?3 @' B6 i$ l& u
.text > DDR2 // Executable Code
0 n0 V/ G6 M e .text:_c_int00: > 0xC3000000 // Entrypoint
1 f! g, T3 {# J9 u% l% V" c: b $ P5 K+ d- @; A; }
.far > DDR2 // Far Global & Static Variables
4 u' }8 E3 y2 U% i$ g .fardata > DDR2
S' t3 }- J! M$ `# b' a .stack > DDR2 // Software System Stack
+ `9 r1 i7 o" p; L! x6 I .sysmem > DDR2 // Dynamic Memory Allocation Area. X" b3 X0 _* f! F8 ~: d2 X t
# O4 X/ B* Y1 y. j8 s, B+ _1 D
.cio > DDR2 // C I/O Buffer
* L! W4 L" ~; }" V! L! d .vecs > DDR2 // Interrupt Vectors5 l) n0 j. ^5 _! ?; i5 w
} |
|