|
6#
楼主 |
发表于 2017-1-18 14:20:38
|
只看该作者
f% s7 S- j% K- e! {. `3 D4 \你好,具体怎么写这段代码?之前的cmd文件,将所有段都放在DDR2中,其中哪一句对应的功能是预留给RBL引导程序的空间?请指导一下,谢谢。
8 I# y" x6 V# ZSECTIONS
7 Q4 G6 M; H% n9 y w{
6 C" L/ J5 M. ]$ _; j& J GROUP (NEAR_DP_RELATIVE)! A, X N# t* W
{& x ?4 ]. |- M6 p& t6 G$ a
.neardata
8 \/ `4 q, l( X& t .rodata
! v9 J4 x+ a! C4 [+ T .bss* b. w5 R" [8 P9 a
} > DDR28 N+ D' I# w" T1 T6 m# p1 `
7 {. h q! P9 V! A' g2 C; M# v .cinit > DDR2 // Initialization Tables
; t8 o* ?+ m7 e$ @% X .pinit > DDR2 // Constructor Tables" ?- Y1 @+ v/ _0 G7 Y
.init_array > DDR2/ R( c" D! k, }, E2 ^( K" z/ i) q
.const > DDR2 // Constant Data
: z% t% J0 R& J, Q .switch > DDR2 // Jump Tables
+ u, s+ e9 q2 b: T, Y; Z .text > DDR2 // Executable Code% P1 b' n. F9 o: k0 N9 R9 n- m
.text:_c_int00: > 0xC3000000 // Entrypoint
: ~- o" ]- @8 x C1 U" j9 Z$ ]
" ?+ C6 g+ Q9 a .far > DDR2 // Far Global & Static Variables- e) W$ z/ t+ }' T/ ~- a6 F% l8 }
.fardata > DDR2* V& m$ E9 S r% u. u# V- ?/ d# F
.stack > DDR2 // Software System Stack
1 J) x7 y9 o% j6 K5 S: t# v% x( d7 M .sysmem > DDR2 // Dynamic Memory Allocation Area6 Y5 s! l: Z7 ~; {2 N0 w, ]
6 P( ?$ A; } f8 W& w
.cio > DDR2 // C I/O Buffer
5 x6 J1 R* g, r9 b P+ ~- V' \ .vecs > DDR2 // Interrupt Vectors
2 C% L2 @6 b8 h) {, u8 [1 c G Y} |
|