OpenCores
URL https://opencores.org/ocsvn/ion/ion/trunk

Subversion Repositories ion

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /ion/trunk/src/adventure
    from Rev 146 to Rev 152
    Reverse comparison

Rev 146 → Rev 152

/bootstrap.s
46,7 → 46,9
#-------------------------------------------------------------------------------
 
start_boot:
mtc0 $0,$12 # disable interrupts
mfc0 $a0,$12
andi $a0,$a0,0xfffe
mtc0 $a0,$12 # disable interrupts
 
la $a0,msg0
jal puts
156,7 → 158,9
# void invalidate_i_cache(void) -- invalidates all I-Cache lines (uses no RAM)
invalidate_i_cache:
li $a0,0x00010000 # Disable cache, enable I-cache line invalidation
mtc0 $a0,$12
mfc0 $a0,$12
or $a1,$a0,$a1
mtc0 $a1,$12
# In order to invalidate a I-Cache line we have to write its tag number to
# any address while bits CP0[12].17:16=01. The write will be executed as a
187,6 → 191,8
addi $a2,1
li $a1,0x00020000 # Leave with cache enabled
mfc0 $a0,$12
or $a1,$a0,$a1
jr $ra
mtc0 $a1,$12
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.