cp15: add support for process ID

This commit is contained in:
lifehackerhansol 2024-11-14 15:54:12 -08:00
parent c1624b2b33
commit ee39a36f20
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E
1 changed files with 14 additions and 0 deletions

View File

@ -366,6 +366,13 @@ BOOL armcp15_moveCP2ARM(armcp15_t *armcp15, u32 * R, u8 CRn, u8 CRm, u8 opcode1,
} }
} }
return FALSE; return FALSE;
case 13:
if(opcode1 == 0 && opcode2 == 1)
{
*R = armcp15->processID;
return TRUE;
}
return FALSE;
default: default:
LOG("Unsupported CP15 operation : MRC\n"); LOG("Unsupported CP15 operation : MRC\n");
return FALSE; return FALSE;
@ -488,6 +495,13 @@ BOOL armcp15_moveARM2CP(armcp15_t *armcp15, u32 val, u8 CRn, u8 CRm, u8 opcode1,
} }
} }
return FALSE; return FALSE;
case 13:
if(opcode1 == 0 && opcode2 == 1)
{
armcp15->processID = val;
return TRUE;
}
return FALSE;
default: default:
return FALSE; return FALSE;
} }