fixed the handshake flow bug
This commit is contained in:
parent
f5ab763719
commit
75c56173f1
@ -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];
|
||||
|
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user