diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-04-03 01:02:51 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-04-03 01:02:51 +0000 |
commit | 81961a50011210c0ee22a3a5efe2ebda721b3c52 (patch) | |
tree | f82f0e0e3589d18cb33e5eb05712b8409697481f /libgloss/mips | |
parent | f5da8224f6bec0019c2e36c4858917139bf74663 (diff) | |
download | cygnal-81961a50011210c0ee22a3a5efe2ebda721b3c52.tar.gz cygnal-81961a50011210c0ee22a3a5efe2ebda721b3c52.tar.bz2 cygnal-81961a50011210c0ee22a3a5efe2ebda721b3c52.zip |
2004-04-02 Chris Demetriou <cgd@broadcom.com>
* mips/regs.S (C0_COUNT): Fix comment that kept this from being
defined.
* mips/vr4300.S: Use C0_COUNT as appropriate instead of hardcoding $9.
* mips/vr5xxx.S: Likewise.
Diffstat (limited to 'libgloss/mips')
-rw-r--r-- | libgloss/mips/regs.S | 2 | ||||
-rw-r--r-- | libgloss/mips/vr4300.S | 4 | ||||
-rw-r--r-- | libgloss/mips/vr5xxx.S | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libgloss/mips/regs.S b/libgloss/mips/regs.S index 7ade6e856..17cc15a75 100644 --- a/libgloss/mips/regs.S +++ b/libgloss/mips/regs.S @@ -66,7 +66,7 @@ #define PHYS_TO_K1(a) ((unsigned)(a) | K1BASE) -/* Standard Co-Processor 0 register numbers: +/* Standard Co-Processor 0 registers */ #define C0_COUNT $9 /* Count Register */ #define C0_SR $12 /* Status Register */ #define C0_CAUSE $13 /* last exception description */ diff --git a/libgloss/mips/vr4300.S b/libgloss/mips/vr4300.S index 2fc576ed3..9737ddc9e 100644 --- a/libgloss/mips/vr4300.S +++ b/libgloss/mips/vr4300.S @@ -47,7 +47,7 @@ __cpu_timer_poll: j ra nop # {DELAY SLOT} 1: - mfc0 v0, $9 # C0_COUNT: get current counter value + mfc0 v0, C0_COUNT # get current counter value nop nop # We cannot just do the simple test, of adding our delta onto @@ -66,7 +66,7 @@ __cpu_timer_poll: # sign-extended to fill the 64bit register value). 2: # get current counter value: - mfc0 v0, $9 # C0_COUNT + mfc0 v0, C0_COUNT nop nop # This is an unsigned 32bit subtraction: diff --git a/libgloss/mips/vr5xxx.S b/libgloss/mips/vr5xxx.S index 4d2b38bc8..f89e88a9a 100644 --- a/libgloss/mips/vr5xxx.S +++ b/libgloss/mips/vr5xxx.S @@ -64,7 +64,7 @@ __cpu_timer_poll: j ra nop # {DELAY SLOT} 1: - mfc0 v0, $9 # C0_COUNT: get current counter value + mfc0 v0, C0_COUNT # get current counter value nop nop # We cannot just do the simple test, of adding our delta onto @@ -83,7 +83,7 @@ __cpu_timer_poll: # sign-extended to fill the 64bit register value). 2: # get current counter value: - mfc0 v0, $9 # C0_COUNT + mfc0 v0, C0_COUNT nop nop # This is an unsigned 32bit subtraction: |