bd_info数据结构如下:
typedef struct bd_info {
int bi_baudrate; /* serial console baudrate */
unsigned long bi_ip_addr; /* IP Address */
struct environment_s *bi_env;
ulong bi_arch_number; /* unique id for this board */
ulong bi_boot_params; /* where this board expects params */
struct /* RAM configuration */
{
ulong start;
ulong size;
} bi_dram[CONFIG_NR_DRAM_BANKS];
} bd_t;
global_data数据结构中的大小为24B + 28B = 52B,其中CONFIG_VFD和CONFIG_FSL_ESDHC没定义,全局数据区顶部放着52B。(没有确认)
下面我看到这个gd->bd = (bd_t*)((char*)gd - sizeof(bd_t))很困惑,岂不是把bd_info数据结构放到global_data结构前面去了?
