summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-02-24 19:16:09 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-02-24 19:16:09 +0000
commitf06d860053089be471e80efd859c1c06f19f5e5a (patch)
treeb2270aa79167012c65b7a6a895c7226b268ae790 /sys/arch
parentf8a34b57ff6522a505eccec33bb5c59c2f6dc1c5 (diff)
Remove some bogus 32-bit compatibiliy code and comments.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/sparc64/locore.s27
1 files changed, 5 insertions, 22 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s
index 69085b5e89a..13f145d1d49 100644
--- a/sys/arch/sparc64/sparc64/locore.s
+++ b/sys/arch/sparc64/sparc64/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.110 2008/02/14 19:07:56 kettenis Exp $ */
+/* $OpenBSD: locore.s,v 1.111 2008/02/24 19:16:08 kettenis Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
@@ -5798,10 +5798,6 @@ paginuse:
.word 0
.text
ENTRY(pmap_zero_phys)
- !!
- !! If we have 64-bit physical addresses (and we do now)
- !! we need to move the pointer from %o0:%o1 to %o0
- !!
set NBPG, %o2 ! Loop count
clr %o1
1:
@@ -5821,35 +5817,22 @@ dlflush6:
* pmap_copy_page(src, dst)
*
* Copy one page physically addressed
- * We need to use a global reg for ldxa/stxa
- * so the top 32-bits cannot be lost if we take
- * a trap and need to save our stack frame to a
- * 32-bit stack. We will unroll the loop by 8 to
- * improve performance.
*
* We also need to blast the D$ and flush like
* pmap_zero_page.
*/
ENTRY(pmap_copy_phys)
- !!
- !! If we have 64-bit physical addresses (and we do now)
- !! we need to move the pointer from %o0:%o1 to %o0 and
- !! %o2:%o3 to %o1
- !!
set NBPG, %o3
add %o3, %o0, %o3
- mov %g1, %o4 ! Save g1
1:
- DLFLUSH %o0,%g1
- ldxa [%o0] ASI_PHYS_CACHED, %g1
+ ldxa [%o0] ASI_PHYS_CACHED, %o4
inc 8, %o0
cmp %o0, %o3
- stxa %g1, [%o1] ASI_PHYS_CACHED
- DLFLUSH %o1,%g1
- bl,pt %icc, 1b ! We don't care about pages >4GB
+ stxa %o4, [%o1] ASI_PHYS_CACHED
+ blu,pt %xcc, 1b
inc 8, %o1
retl
- mov %o4, %g1 ! Restore g1
+ nop
/*
* extern int64_t pseg_get(struct pmap* %o0, vaddr_t addr %o1);