ectlval = read_c0_errctl();
write_c0_errctl(ectlval | (0x1 << 26));
ehb(); #define INDEX_0 (0x80000000) #define INDEX_8 (0x80000008) /* Read "cache tag" for Dcache pseudo-index 8 */
cache_op(Index_Load_Tag_D, INDEX_8);
ehb();
itcblkgrn = read_c0_dtaglo();
itcblkgrn &= 0xfffe0000; /* Set for 128 byte pitch of ITC cells */
itcblkgrn |= 0x00000c00; /* Stage in Tag register */
write_c0_dtaglo(itcblkgrn);
ehb(); /* Write out to ITU with CACHE op */
cache_op(Index_Store_Tag_D, INDEX_8); /* Now set base address, and turn ITC on with 0x1 bit */
write_c0_dtaglo((itc_base & 0xfffffc00) | 0x1 );
ehb(); /* Write out to ITU with CACHE op */
cache_op(Index_Store_Tag_D, INDEX_0);
write_c0_errctl(ectlval);
ehb();
printk("Mapped %ld ITC cells starting at 0x%08x\n",
((itcblkgrn & 0x7fe00000) >> 20), itc_base);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.