Hi alexander.yakovlev,
@ I think I'm nearly get the point.
When RCW set eLBC GPCM Nor Flash 16-bit as booting ROM, the Boot Window is pointed to eLBC, and processor starts at 0xFFFF_FFFC (which falls into the Boot Window), the real address is mapped to last 2 words of Nor Flash.
As P2040RM 13.4.2 mentioned:
On system reset, a global chip-select is available that provides a boot ROM chip-select LCS0_B prior to the system being fully configured.
The last 2 words of Nor Flash is a branch instruction to _start_e500, which is at the start of .bootpg. Codes in .bootpg section setup more TLB entry to make reset of u-boot code take effect.
And one more question:
When each core comes out of reset, its MMU has one 4 KB page defined at
0x0_FFFF_Fnnn. Each core begins execution with the instruction at effective address
0x0_FFFF_FFFC. To get this instruction, the core's first instruction fetch is a burst read
of boot code from effective address 0x0_FFFF_FFE0.
~~~~~~~~~~~~
Why is 0x0_FFFF_FFE0? Please forgive my ignorance.:smileyblush:
BR,
Hook Guo