其实uboot里面就有例子,不过今天看到一个TI的,也贴出来,实际差不了多少:
定义:
Uint32 gEntryPoint;
static void (*APPEntry)(void);
用法:
APPEntry = (void (*)(void)) gEntryPoint;
(*APPEntry)();
简单吧?
其实uboot里面就有例子,不过今天看到一个TI的,也贴出来,实际差不了多少:
定义:
Uint32 gEntryPoint;
static void (*APPEntry)(void);
用法:
APPEntry = (void (*)(void)) gEntryPoint;
(*APPEntry)();
简单吧?