Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp300/hp300 Next sweep of adding register prefix: %...
details: https://anonhg.NetBSD.org/src/rev/ae1cf58b2ade
branches: trunk
changeset: 477610:ae1cf58b2ade
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Oct 24 18:35:25 1999 +0000
description:
Next sweep of adding register prefix: %d0 - %d7.
diffstat:
sys/arch/hp300/hp300/locore.s | 564 +++++++++++++++++++++---------------------
1 files changed, 282 insertions(+), 282 deletions(-)
diffs (truncated from 1164 to 300 lines):
diff -r 8665b86f607d -r ae1cf58b2ade sys/arch/hp300/hp300/locore.s
--- a/sys/arch/hp300/hp300/locore.s Sun Oct 24 16:29:23 1999 +0000
+++ b/sys/arch/hp300/hp300/locore.s Sun Oct 24 18:35:25 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.100 1999/10/21 21:10:24 thorpej Exp $ */
+/* $NetBSD: locore.s,v 1.101 1999/10/24 18:35:25 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@@ -100,8 +100,8 @@
*/
#define DOREBOOT \
/* Reset Vector Base Register to what PROM expects. */ \
- movl #0,d0; \
- movc d0,vbr; \
+ movl #0,%d0; \
+ movc %d0,vbr; \
/* Jump to REQ_REBOOT */ \
jmp 0x1A4;
@@ -130,8 +130,8 @@
#endif
RELOC(lowram, %a0)
movl %a5,%a0@ | store start of physical memory
- movl #CACHE_OFF,d0
- movc d0,cacr | clear and disable on-chip cache(s)
+ movl #CACHE_OFF,%d0
+ movc %d0,cacr | clear and disable on-chip cache(s)
/* check for internal HP-IB in SYSFLAG */
btst #5,0xfffffed2 | internal HP-IB?
@@ -143,7 +143,7 @@
RELOC(boothowto, %a0) | save reboot flags
movl d7,%a0@
RELOC(bootdev, %a0) | and boot device
- movl d6,%a0@
+ movl %d6,%a0@
/*
* All data registers are now free. All address registers
@@ -153,10 +153,10 @@
/* determine our CPU/MMU combo - check for all regardless of kernel config */
movl #INTIOBASE+MMUBASE,%a1
- movl #0x200,d0 | data freeze bit
- movc d0,cacr | only exists on 68030
- movc cacr,d0 | read it back
- tstl d0 | zero?
+ movl #0x200,%d0 | data freeze bit
+ movc %d0,cacr | only exists on 68030
+ movc cacr,%d0 | read it back
+ tstl %d0 | zero?
jeq Lnot68030 | yes, we have 68020/68040
/*
@@ -169,29 +169,29 @@
movl #CPU_68030,%a0@ | and 68030 CPU
RELOC(machineid, %a0)
movl #0x80,%a1@(MMUCMD) | set magic cookie
- movl %a1@(MMUCMD),d0 | read it back
- btst #7,d0 | cookie still on?
+ movl %a1@(MMUCMD),%d0 | read it back
+ btst #7,%d0 | cookie still on?
jeq Lnot370 | no, 360 or 375
movl #0,%a1@(MMUCMD) | clear magic cookie
- movl %a1@(MMUCMD),d0 | read it back
- btst #7,d0 | still on?
+ movl %a1@(MMUCMD),%d0 | read it back
+ btst #7,%d0 | still on?
jeq Lisa370 | no, must be a 370
movl #HP_340,%a0@ | yes, must be a 340
jra Lstart1
Lnot370:
movl #HP_360,%a0@ | type is at least a 360
movl #0,%a1@(MMUCMD) | clear magic cookie2
- movl %a1@(MMUCMD),d0 | read it back
- btst #16,d0 | still on?
+ movl %a1@(MMUCMD),%d0 | read it back
+ btst #16,%d0 | still on?
jeq Lstart1 | no, must be a 360
RELOC(mmuid, %a0) | save MMU ID
- lsrl #MMUID_SHIFT,d0
- andl #MMUID_MASK,d0
- movl d0,%a0@
+ lsrl #MMUID_SHIFT,%d0
+ andl #MMUID_MASK,%d0
+ movl %d0,%a0@
RELOC(machineid, %a0)
- cmpb #MMUID_345,d0 | are we a 345?
+ cmpb #MMUID_345,%d0 | are we a 345?
beq Lisa345
- cmpb #MMUID_375,d0 | how about a 375?
+ cmpb #MMUID_375,%d0 | how about a 375?
beq Lisa375
movl #HP_400,%a0@ | must be a 400
jra Lhaspac
@@ -213,13 +213,13 @@
*/
Lnot68030:
- bset #31,d0 | data cache enable bit
- movc d0,cacr | only exists on 68040
- movc cacr,d0 | read it back
- tstl d0 | zero?
+ bset #31,%d0 | data cache enable bit
+ movc %d0,cacr | only exists on 68040
+ movc cacr,%d0 | read it back
+ tstl %d0 | zero?
beq Lis68020 | yes, we have 68020
- moveq #0,d0 | now turn it back off
- movec d0,cacr | before we access any data
+ moveq #0,%d0 | now turn it back off
+ movec %d0,cacr | before we access any data
/*
* 68040 models
@@ -234,22 +234,22 @@
RELOC(ectype, %a0)
movl #EC_NONE,%a0@ | and no cache (for now XXX)
RELOC(mmuid,%a0) | save MMU ID
- movl %a1@(MMUCMD),d0
- lsrl #MMUID_SHIFT,d0
- andl #MMUID_MASK,d0
- movl d0,%a0@
+ movl %a1@(MMUCMD),%d0
+ lsrl #MMUID_SHIFT,%d0
+ andl #MMUID_MASK,%d0
+ movl %d0,%a0@
RELOC(machineid, %a0)
- cmpb #MMUID_425_T,d0 | are we a 425t?
+ cmpb #MMUID_425_T,%d0 | are we a 425t?
jeq Lisa425
- cmpb #MMUID_425_S,d0 | how about 425s?
+ cmpb #MMUID_425_S,%d0 | how about 425s?
jeq Lisa425
- cmpb #MMUID_425_E,d0 | or maybe a 425e?
+ cmpb #MMUID_425_E,%d0 | or maybe a 425e?
jeq Lisa425
- cmpb #MMUID_433_T,d0 | or a 433t?
+ cmpb #MMUID_433_T,%d0 | or a 433t?
jeq Lisa433
- cmpb #MMUID_433_S,d0 | or a 433s?
+ cmpb #MMUID_433_S,%d0 | or a 433s?
jeq Lisa433
- cmpb #MMUID_385,d0 | or a 385?
+ cmpb #MMUID_385,%d0 | or a 385?
jeq Lisa385
movl #HP_380,%a0@ | guess we're a 380
jra Lstart1
@@ -275,8 +275,8 @@
RELOC(fputype, %a0) | all of the 68020 systems
movl #FPU_68881,%a0@ | have a 68881 FPU
movl #1,%a1@(MMUCMD) | a 68020, write HP MMU location
- movl %a1@(MMUCMD),d0 | read it back
- btst #0,d0 | non-zero?
+ movl %a1@(MMUCMD),%d0 | read it back
+ btst #0,%d0 | non-zero?
jne Lishpmmu | yes, we have HP MMU
RELOC(mmutype, %a0)
movl #MMU_68851,%a0@ | no, we have PMMU
@@ -287,8 +287,8 @@
RELOC(ectype, %a0) | 320 or 350
movl #EC_VIRT,%a0@ | both have a virtual address cache
movl #0x80,%a1@(MMUCMD) | set magic cookie
- movl %a1@(MMUCMD),d0 | read it back
- btst #7,d0 | cookie still on?
+ movl %a1@(MMUCMD),%d0 | read it back
+ btst #7,%d0 | cookie still on?
jeq Lis320 | no, just a 320
RELOC(machineid, %a0)
movl #HP_350,%a0@ | yes, a 350
@@ -339,32 +339,32 @@
Lstart2:
movl #0,%a1@(MMUCMD) | clear out MMU again
/* initialize source/destination control registers for movs */
- moveq #FC_USERD,d0 | user space
- movc d0,sfc | as source
- movc d0,dfc | and destination of transfers
+ moveq #FC_USERD,%d0 | user space
+ movc %d0,sfc | as source
+ movc %d0,dfc | and destination of transfers
/* initialize memory sizes (for pmap_bootstrap) */
- movl #MAXADDR,d1 | last page
- moveq #PGSHIFT,d2
- lsrl d2,d1 | convert to page (click) number
+ movl #MAXADDR,%d1 | last page
+ moveq #PGSHIFT,%d2
+ lsrl %d2,%d1 | convert to page (click) number
RELOC(maxmem, %a0)
- movl d1,%a0@ | save as maxmem
- movl %a5,d0 | lowram value from ROM via boot
- lsrl d2,d0 | convert to page number
- subl d0,d1 | compute amount of RAM present
+ movl %d1,%a0@ | save as maxmem
+ movl %a5,%d0 | lowram value from ROM via boot
+ lsrl %d2,%d0 | convert to page number
+ subl %d0,%d1 | compute amount of RAM present
RELOC(physmem, %a0)
- movl d1,%a0@ | and physmem
+ movl %d1,%a0@ | and physmem
/* configure kernel and proc0 VA space so we can get going */
#ifdef DDB
RELOC(esym,%a0) | end of static kernel test/data/syms
- movl %a0@,d5
+ movl %a0@,%d5
jne Lstart3
#endif
- movl #_C_LABEL(end),d5 | end of static kernel text/data
+ movl #_C_LABEL(end),%d5 | end of static kernel text/data
Lstart3:
- addl #NBPG-1,d5
- andl #PG_FRAME,d5 | round to a page
- movl d5,%a4
+ addl #NBPG-1,%d5
+ andl #PG_FRAME,%d5 | round to a page
+ movl %d5,%a4
addl %a5,%a4 | convert to PA
pea %a5@ | firstpa
pea %a4@ | nextpa
@@ -383,26 +383,26 @@
* Is this all really necessary, or am I paranoid??
*/
RELOC(Sysseg, %a0) | system segment table addr
- movl %a0@,d1 | read value (a KVA)
- addl %a5,d1 | convert to PA
+ movl %a0@,%d1 | read value (a KVA)
+ addl %a5,%d1 | convert to PA
RELOC(mmutype, %a0)
tstl %a0@ | HP MMU?
jeq Lhpmmu2 | yes, skip
cmpl #MMU_68040,%a0@ | 68040?
jne Lmotommu1 | no, skip
- .long 0x4e7b1807 | movc d1,srp
+ .long 0x4e7b1807 | movc %d1,srp
jra Lstploaddone
Lmotommu1:
RELOC(protorp, %a0)
movl #0x80000202,%a0@ | nolimit + share global + 4 byte PTEs
- movl d1,%a0@(4) | + segtable address
+ movl %d1,%a0@(4) | + segtable address
pmove %a0@,srp | load the supervisor root pointer
movl #0x80000002,%a0@ | reinit upper half for CRP loads
jra Lstploaddone | done
Lhpmmu2:
- moveq #PGSHIFT,d2
- lsrl d2,d1 | convert to page frame
- movl d1,INTIOBASE+MMUBASE+MMUSSTP | load in sysseg table register
+ moveq #PGSHIFT,%d2
+ lsrl %d2,%d1 | convert to page frame
+ movl %d1,INTIOBASE+MMUBASE+MMUSSTP | load in sysseg table register
Lstploaddone:
lea MAXADDR,%a2 | PA of last RAM page
ASRELOC(Lhighcode, %a1) | addr of high code
@@ -424,8 +424,8 @@
* Set up the vector table, and race to get the MMU
* enabled.
*/
- movl #_C_LABEL(vectab),d0 | set Vector Base Register
- movc d0,vbr
+ movl #_C_LABEL(vectab),%d0 | set Vector Base Register
+ movc %d0,vbr
RELOC(mmutype, %a0)
tstl %a0@ | HP MMU?
@@ -435,17 +435,17 @@
movw #0,INTIOBASE+MMUBASE+MMUCMD+2
movw #MMU_IEN+MMU_CEN+MMU_FPE,INTIOBASE+MMUBASE+MMUCMD+2
| enable FPU and caches
- moveq #0,d0 | ensure TT regs are disabled
- .long 0x4e7b0004 | movc d0,itt0
- .long 0x4e7b0005 | movc d0,itt1
- .long 0x4e7b0006 | movc d0,dtt0
- .long 0x4e7b0007 | movc d0,dtt1
+ moveq #0,%d0 | ensure TT regs are disabled
+ .long 0x4e7b0004 | movc %d0,itt0
+ .long 0x4e7b0005 | movc %d0,itt1
+ .long 0x4e7b0006 | movc %d0,dtt0
+ .long 0x4e7b0007 | movc %d0,dtt1
.word 0xf4d8 | cinva bc
.word 0xf518 | pflusha
- movl #0x8000,d0
- .long 0x4e7b0003 | movc d0,tc
- movl #0x80008000,d0
- movc d0,cacr | turn on both caches
+ movl #0x8000,%d0
+ .long 0x4e7b0003 | movc %d0,tc
+ movl #0x80008000,%d0
+ movc %d0,cacr | turn on both caches
jmp Lenab1
Lmotommu2:
movl #MMU_IEN+MMU_FPE,INTIOBASE+MMUBASE+MMUCMD
@@ -491,8 +491,8 @@
jbsr _C_LABEL(TBIA) | invalidate TLB
cmpl #MMU_68040,_C_LABEL(mmutype) | 68040?
jeq Lnocache0 | yes, cache already on
- movl #CACHE_ON,d0
- movc d0,cacr | clear cache(s)
+ movl #CACHE_ON,%d0
+ movc %d0,cacr | clear cache(s)
Home |
Main Index |
Thread Index |
Old Index