void nand_boot(void)
.......
__attribute__((noreturn)) void (*uboot)(void);//声明函数指针uboot
..................
/*
* Jump to U-Boot image
*/
uboot = (void *)CONFIG_SYS_NAND_U_BOOT_START; //赋值指针地址
(*uboot)(); //跳转到指针地址执行
跳转到函数指针运行的地方,函数指针uboot中内容
最新推荐文章于 2024-09-25 20:45:00 发布