fixed the handshake flow bug

This commit is contained in:
xianfeng.du 2023-08-03 20:38:46 +08:00
parent f5ab763719
commit 75c56173f1
2 changed files with 1 additions and 6 deletions

View File

@ -29,12 +29,7 @@
#define HANDSHKAE_REQ_VALUE 0x5A5A5A5A
#define HANDSHKAE_RESP_VALUE 0xA5A5A5A5
//#define HANDSHKAE_MASK 0x00001C03
#ifndef PCIE_BACKHAUL
#define HANDSHKAE_MASK 0x00001E00//excluded APE cores
#else
#define HANDSHKAE_MASK 0x00000d00//excluded APE cores
#endif
typedef struct tUcpHandshake{
uint32_t request[MAX_NUM_CORE];

View File

@ -97,7 +97,7 @@ void handshake_master_with_slave(void)
debug_write(DBG_DDR_COMMON_IDX(core_id,90), handshake_coremask);
while(1) {
for(uint32_t i = 0; i < MAX_NUM_CORE; i++) {
for(uint32_t i = 0; i < MAX_NUM_SPU; i++) {
coreMask = (handshake_coremask >> i) & 0x1;
if (coreMask) {
request = do_read_volatile(&pHandshake->request[i]);