From 0b08124559e13e2779d6f849c87fada979150160 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 5 Mar 2004 22:39:51 +0000 Subject: [PATCH] rename with MMU040_ --- second/MMU040.h | 16 ++++++++-------- second/MMU040_asm.S | 45 +++++++++++++++++++++++++++++---------------- 2 files changed, 37 insertions(+), 24 deletions(-) diff --git a/second/MMU040.h b/second/MMU040.h index f7bdeb1..7d3a2ef 100644 --- a/second/MMU040.h +++ b/second/MMU040.h @@ -4,14 +4,14 @@ * */ -extern void get_TC040(unsigned long *TC); -extern void get_SRP040(unsigned long *SRP); -extern void get_CRP040(unsigned long *CRP); -extern void get_ITT0040(unsigned long *TT0); -extern void get_DTT0040(unsigned long *TT0); -extern void get_ITT1040(unsigned long *TT1); -extern void get_DTT1040(unsigned long *TT1); -extern unsigned long read_phys040(unsigned long addr); +extern void MMU040_get_TC(unsigned long *TC); +extern void MMU040_get_SRP(unsigned long *SRP); +extern void MMU040_get_CRP(unsigned long *CRP); +extern void MMU040_get_ITT0(unsigned long *TT0); +extern void MMU040_get_DTT0(unsigned long *TT0); +extern void MMU040_get_ITT1(unsigned long *TT1); +extern void MMU040_get_DTT1(unsigned long *TT1); +extern unsigned long MMU040_read_phys(unsigned long addr); extern unsigned long MMU040_get_page_size(void); diff --git a/second/MMU040_asm.S b/second/MMU040_asm.S index 2492dfc..2c1d824 100644 --- a/second/MMU040_asm.S +++ b/second/MMU040_asm.S @@ -4,8 +4,8 @@ * */ - .global get_TC040 -get_TC040: + .global MMU040_get_TC +MMU040_get_TC: link.w %fp,#0 move.l 8(%fp),%a0 movec %tc,%d0 @@ -13,57 +13,70 @@ get_TC040: unlk %fp rts - .global get_SRP040 -get_SRP040: + .global MMU040_get_SRP +MMU040_get_SRP: link.w %fp,#0 movec %srp, %d0 move.l %d0,%a0@ unlk %fp rts - .global get_CRP040 -get_CRP040: + .global MMU040_get_CRP +MMU040_get_CRP: link.w %fp,#0 movec %urp, %d0 move.l %d0,%a0@ unlk %fp rts - .global get_ITT0040 -get_ITT0040: + .global MMU040_get_ITT0 +MMU040_get_ITT0: link.w %fp,#0 movec %itt0, %d0 move.l %d0,%a0@ unlk %fp rts - .global get_DTT0040 -get_DTT0040: + .global MMU040_get_DTT0 +MMU040_get_DTT0: link.w %fp,#0 movec %dtt0, %d0 move.l %d0,%a0@ unlk %fp rts - .global get_ITT1040 -get_ITT1040: + .global MMU040_get_ITT1 +MMU040_get_ITT1: link.w %fp,#0 movec %itt1, %d0 move.l %d0,%a0@ unlk %fp rts - .global get_DTT1040 -get_DTT1040: + .global MMU040_get_DTT1 +MMU040_get_DTT1: link.w %fp,#0 movec %dtt1, %d0 move.l %d0,%a0@ unlk %fp rts + .global MMU040_ptest +MMU040_ptest: + link.w %fp,#0 + move.l 8(%fp),%a0 - .global read_phys040 -read_phys040: + /* test address */ + + ptestw (%a0) + + movec %mmusr,%d0 + unlk %fp + rts + + + .global MMU040_read_phys +MMU040_read_phys: link.w %fp,#-8 /* get the address to read */