新聞中心

EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > vxworks下如何打印PowerPC的中斷向量表內(nèi)容

vxworks下如何打印PowerPC的中斷向量表內(nèi)容

作者: 時(shí)間:2016-09-12 來(lái)源:網(wǎng)絡(luò) 收藏

Q: 如何打印PowerPC的中斷向量表內(nèi)容,比如mv5100或者mv6100的中斷向量表,以查看對(duì)應(yīng)的向量綁接的ISR。

本文引用地址:http://2s4d.com/article/201609/304997.htm

A: 只要打印sysIntTbl[]的內(nèi)容就可以了。示例程序如下:

void intConnectShow (void)

{

IMPORT INT_HANDLER_DESC * sysIntTbl [256];

INT_HANDLER_DESC * handler;

int i;

printf (n Vector : Handler (Arg)nn);

for (i=0; i=255; i++)

{

if( (handler = sysIntTbl[i]) != NULL )

{

printf (%3d (0x%02x): 0x%x (0x%x)n,

i,i, (UINT32)handler->vec, handler->arg);

handler = handler->next;

while (handler != NULL) // 處理鏈?zhǔn)浇壗拥腎SR

{

printf( 0x%x (0x%x) - chainedn,

(UINT32)handler->vec, handler->arg);

handler = handler->next;

}

}

}

printf(n);

}



關(guān)鍵詞:

評(píng)論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉