summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-01-31 19:39:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-01-31 19:39:05 +0000
commitd92083f09c0345f739413f2ba5a044e5559272cd (patch)
treef9ad7a1e355e2d0ae8c51f6537b535e0093d1790
parent7a104439f7d1318360d7567ebf96f9206a24166f (diff)
Remove !__LP64__ bits and __LP64__ tests.
-rw-r--r--sys/arch/mips64/mips64/lcore_access.S50
-rw-r--r--sys/arch/mips64/mips64/lcore_ddb.S8
2 files changed, 2 insertions, 56 deletions
diff --git a/sys/arch/mips64/mips64/lcore_access.S b/sys/arch/mips64/mips64/lcore_access.S
index 15eea352aae..4975d28094e 100644
--- a/sys/arch/mips64/mips64/lcore_access.S
+++ b/sys/arch/mips64/mips64/lcore_access.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcore_access.S,v 1.18 2009/09/30 06:22:00 syuu Exp $ */
+/* $OpenBSD: lcore_access.S,v 1.19 2010/01/31 19:39:04 miod Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -80,16 +80,6 @@ sigcode:
.globl esigcode
esigcode:
-/* Mips o32 ABI sigcode. 32 bit pointers. */
- .globl sigcode_o32
-sigcode_o32:
- addu a0, sp, 16 # address of sigcontext
- li v0, SYS_sigreturn # sigreturn(scp)
- syscall
- break 0 # just in case sigreturn fails
- .globl esigcode_o32
-esigcode_o32:
-
/*
* Copy a null terminated string within the kernel address space.
* Maxlength may be null if count not wanted.
@@ -121,44 +111,6 @@ LEAF(copystr, 0)
nop
END(copystr)
-#ifndef __LP64__
-/*
- * Read 64 bits from bus in non LP64 mode.
- * XXX ints should be disabled!
- */
-LEAF(lp32_read8, 0)
-#if defined(__MIPSEB__)
- ld v1, 0(a0)
- jr ra
- dsrl v0, v1, 32
-#else
- ld v0, 0(a0)
- jr ra
- dsrl v1, v0, 32
-#endif
-END(lp32_read8)
-
-/*
- * Write 64 bits to bus in non LP64 mode.
- * XXX ints should be disabled!
- */
-LEAF(lp32_write8, 0)
-#if defined(__MIPSEB__)
- dsll a2, 32
- dsll a3, 32
- dsrl a3, 32
- or a2, a3
-#else
- dsll a3, 32
- dsll a2, 32
- dsrl a2, 32
- or a3, a2
-#endif
- jr ra
- sd a2, 0(a0)
-END(lp32_write8)
-#endif
-
/*
* Optimized memory zero code.
* mem_zero_page(addr);
diff --git a/sys/arch/mips64/mips64/lcore_ddb.S b/sys/arch/mips64/mips64/lcore_ddb.S
index ee43279c83d..82694bdc250 100644
--- a/sys/arch/mips64/mips64/lcore_ddb.S
+++ b/sys/arch/mips64/mips64/lcore_ddb.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: lcore_ddb.S,v 1.10 2009/09/30 06:22:00 syuu Exp $ */
+/* $OpenBSD: lcore_ddb.S,v 1.11 2010/01/31 19:39:04 miod Exp $ */
/*
* Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -39,7 +39,6 @@
.set noreorder # Noreorder is default style!
-#ifdef __LP64__
LEAF(kdbpeekd, 0)
GET_CPU_INFO(t1, t0)
PTR_L t0, CI_CURPROCPADDR(t1)
@@ -58,7 +57,6 @@ LEAF(kdbpeekd, 0)
jr ra
sw zero, PCB_ONFAULT(t0)
END(kdbpeekd)
-#endif
LEAF(kdbpeek, 0)
GET_CPU_INFO(t1, t0)
@@ -112,7 +110,6 @@ kt_ddberr:
jr ra
li v0, -1
-#ifdef __LP64__
LEAF(kdbpoked, 0)
GET_CPU_INFO(t1, t0)
PTR_L t0, CI_CURPROCPADDR(t1)
@@ -131,8 +128,6 @@ LEAF(kdbpoked, 0)
jr ra
sw zero, PCB_ONFAULT(t0)
END(kdbpoked)
-#endif
-
LEAF(kdbpoke, 0)
GET_CPU_INFO(t1, t0)
@@ -222,4 +217,3 @@ LEAF(longjmp, 0)
jr ra
li v0, 1 # longjmp return
END(longjmp)
-