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

Subversion Repositories test_project

[/] [test_project/] [trunk/] [sw/] [mmu/] [mmu_asm.S] - Blame information for rev 25

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 25 julius
#include "spr_defs.h"
2
 
3
    .global _lo_dmmu_en
4
    .global _lo_immu_en
5
    .global _testjump
6
 
7
_lo_dmmu_en:
8
                l.mfspr r3,r0,SPR_SR
9
    l.ori   r3,r3,SPR_SR_DME
10
    l.mtspr r0,r3,SPR_ESR_BASE
11
    l.mtspr r0,r9,SPR_EPCR_BASE
12
    l.rfe
13
    l.nop
14
 
15
_lo_immu_en:
16
                l.mfspr r3,r0,SPR_SR
17
    l.ori   r3,r3,SPR_SR_IME
18
    l.mtspr r0,r3,SPR_ESR_BASE
19
    l.mtspr r0,r9,SPR_EPCR_BASE
20
    l.rfe
21
    l.nop
22
 
23
_testjump:
24
    l.movhi r5,0x4800
25
    l.ori   r5,r5,0x4800
26
    l.sw    0x0(r3),r5
27
    l.movhi r5,0x1500
28
    l.ori   r5,r5,0x0000
29
    l.sw    0x4(r3),r5
30
    l.or    r5,r0,r9
31
    l.jalr  r4
32
    l.nop
33
    l.or    r9,r0,r5
34
    l.jr    r9
35
    l.nop

powered by: WebSVN 2.1.0

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