OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [drivers/] [or1200/] [mmu.S] - Diff between revs 393 and 535

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 393 Rev 535
?rev1line?
?rev2line?
 
#include "spr-defs.h"
 
 
 
        /* MMU enable functions */
 
.global lo_dmmu_en
 
lo_dmmu_en:
 
        l.mfspr r3,r0,SPR_SR
 
        l.ori   r3,r3,SPR_SR_DME
 
        l.mtspr r0,r3,SPR_ESR_BASE
 
        l.mtspr r0,r9,SPR_EPCR_BASE
 
        l.rfe
 
        l.nop
 
 
 
.global lo_immu_en
 
lo_immu_en:
 
        l.mfspr r3,r0,SPR_SR
 
        l.ori   r3,r3,SPR_SR_IME
 
        l.mtspr r0,r3,SPR_ESR_BASE
 
        l.mtspr r0,r9,SPR_EPCR_BASE
 
        l.rfe
 
        l.nop
 
 

powered by: WebSVN 2.1.0

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