pointer troubled me
I want to port u-boot 2018.3 to my own board.I catch some thing amazing,just see my code in func dram_init_banksize
int dram_init_
{
fdt_addr_t mr_base, mr_size;
get_memory_
/*
* Fill in global info with description of SRAM configuration
*/
gd->bd-
gd->bd-
fdt_addr_t * add_ptr = NULL, * add_ptr_2 = NULL;
add_ptr = &(gd->bd-
if (NULL == add_ptr)
*add_ptr = 456;
add_ptr_2 = 0xc1e99ffC;
*add_ptr_2 = 789;
printf("iysheng gd->bd-
" add_ptr_2=%p *add_ptr_2=%d\n", (gd->bd-
add_ptr_2, *add_ptr_2);
return 0;
}
I get something in uart port just as below
iysheng gd->bd-
how that could be happen?
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: