- 44
- 0
- 约7.34千字
- 约 39页
- 2017-05-09 发布于湖北
- 举报
4. 多核烧写文件生成过程 4. 多核烧写文件生成过程 在core0的main函数中要增加写各辅核入口地址到相应的BOOT_MAGIC_ADDRESS 及触发IPC中断的逻辑,如图所示,否则多核不可能正常boot。 void MulticoreBoot() { int *pBootMagicAddCore0; int *IpcGr0; int i; int coreId = 0; coreId = platform_get_coreid (); if(coreId == 0) { pBootMagicAddCore0 = (int*)0x1087FFFC; /*core0 的magic address*/ *pBootMagicAddCore0=0 /*core0 的_c_int00 函数入口地址*/ /*此处写入各辅核的入口地址*,在此core1 的_c_int00函数入口地址/ *(pBootMagicAddCore0+04)=0x1180c300; /*core0发送IPC中断*/ IpcGr0 = (int*)0x02620
原创力文档

文档评论(0)