rename with MMU040_

This commit is contained in:
Laurent Vivier 2004-03-05 22:39:51 +00:00
parent 6b624ec903
commit 0b08124559
2 changed files with 37 additions and 24 deletions

View File

@ -4,14 +4,14 @@
* *
*/ */
extern void get_TC040(unsigned long *TC); extern void MMU040_get_TC(unsigned long *TC);
extern void get_SRP040(unsigned long *SRP); extern void MMU040_get_SRP(unsigned long *SRP);
extern void get_CRP040(unsigned long *CRP); extern void MMU040_get_CRP(unsigned long *CRP);
extern void get_ITT0040(unsigned long *TT0); extern void MMU040_get_ITT0(unsigned long *TT0);
extern void get_DTT0040(unsigned long *TT0); extern void MMU040_get_DTT0(unsigned long *TT0);
extern void get_ITT1040(unsigned long *TT1); extern void MMU040_get_ITT1(unsigned long *TT1);
extern void get_DTT1040(unsigned long *TT1); extern void MMU040_get_DTT1(unsigned long *TT1);
extern unsigned long read_phys040(unsigned long addr); extern unsigned long MMU040_read_phys(unsigned long addr);
extern unsigned long MMU040_get_page_size(void); extern unsigned long MMU040_get_page_size(void);

View File

@ -4,8 +4,8 @@
* *
*/ */
.global get_TC040 .global MMU040_get_TC
get_TC040: MMU040_get_TC:
link.w %fp,#0 link.w %fp,#0
move.l 8(%fp),%a0 move.l 8(%fp),%a0
movec %tc,%d0 movec %tc,%d0
@ -13,57 +13,70 @@ get_TC040:
unlk %fp unlk %fp
rts rts
.global get_SRP040 .global MMU040_get_SRP
get_SRP040: MMU040_get_SRP:
link.w %fp,#0 link.w %fp,#0
movec %srp, %d0 movec %srp, %d0
move.l %d0,%a0@ move.l %d0,%a0@
unlk %fp unlk %fp
rts rts
.global get_CRP040 .global MMU040_get_CRP
get_CRP040: MMU040_get_CRP:
link.w %fp,#0 link.w %fp,#0
movec %urp, %d0 movec %urp, %d0
move.l %d0,%a0@ move.l %d0,%a0@
unlk %fp unlk %fp
rts rts
.global get_ITT0040 .global MMU040_get_ITT0
get_ITT0040: MMU040_get_ITT0:
link.w %fp,#0 link.w %fp,#0
movec %itt0, %d0 movec %itt0, %d0
move.l %d0,%a0@ move.l %d0,%a0@
unlk %fp unlk %fp
rts rts
.global get_DTT0040 .global MMU040_get_DTT0
get_DTT0040: MMU040_get_DTT0:
link.w %fp,#0 link.w %fp,#0
movec %dtt0, %d0 movec %dtt0, %d0
move.l %d0,%a0@ move.l %d0,%a0@
unlk %fp unlk %fp
rts rts
.global get_ITT1040 .global MMU040_get_ITT1
get_ITT1040: MMU040_get_ITT1:
link.w %fp,#0 link.w %fp,#0
movec %itt1, %d0 movec %itt1, %d0
move.l %d0,%a0@ move.l %d0,%a0@
unlk %fp unlk %fp
rts rts
.global get_DTT1040 .global MMU040_get_DTT1
get_DTT1040: MMU040_get_DTT1:
link.w %fp,#0 link.w %fp,#0
movec %dtt1, %d0 movec %dtt1, %d0
move.l %d0,%a0@ move.l %d0,%a0@
unlk %fp unlk %fp
rts rts
.global MMU040_ptest
MMU040_ptest:
link.w %fp,#0
move.l 8(%fp),%a0
.global read_phys040 /* test address */
read_phys040:
ptestw (%a0)
movec %mmusr,%d0
unlk %fp
rts
.global MMU040_read_phys
MMU040_read_phys:
link.w %fp,#-8 link.w %fp,#-8
/* get the address to read */ /* get the address to read */