Arm Cortex R4F Uživatelský manuál Strana 339

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 456
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 338
Debug
ARM DDI 0363E Copyright © 2009 ARM Limited. All rights reserved. 11-70
ID013010 Non-Confidential, Unrestricted Access
// Step 1. Save R0.
saved_r0 := ReadRegister(0);
// Step 2. Execute instruction MCR p15, 0, R0, c0, c1, 0 through the ITR.
ExecuteARMInstruction(0xEE000010 + (CPnum<<8) + (opc1<<21) + (CRn<<16) + CRm + (opc2<<5));
// Step 3. Read the value of R0 that now contains the CP register.
CP15c1 := ReadRegister(0);
// Step 4. Restore the value of R0.
WriteRegister(0, saved_r0);
return CP15c1;
}
Zobrazit stránku 338
1 2 ... 334 335 336 337 338 339 340 341 342 343 344 ... 455 456

Komentáře k této Příručce

Žádné komentáře