Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm Make the ARM, Ltd. floating point emulator work...



details:   https://anonhg.NetBSD.org/src/rev/8484aa0ba91c
branches:  trunk
changeset: 518090:8484aa0ba91c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Nov 24 03:39:17 2001 +0000

description:
Make the ARM, Ltd. floating point emulator work w/ ELF.

diffstat:

 sys/arch/arm/conf/files.arm        |     4 +-
 sys/arch/arm/fpe-arm/armfpe.S      |  7504 +++++++++++++++++++++++++++++++++++
 sys/arch/arm/fpe-arm/armfpe.s      |  7520 ------------------------------------
 sys/arch/arm/fpe-arm/armfpe_glue.S |    62 +-
 4 files changed, 7537 insertions(+), 7553 deletions(-)

diffs (truncated from 15253 to 300 lines):

diff -r 30289ac0c9b1 -r 8484aa0ba91c sys/arch/arm/conf/files.arm
--- a/sys/arch/arm/conf/files.arm       Sat Nov 24 03:08:27 2001 +0000
+++ b/sys/arch/arm/conf/files.arm       Sat Nov 24 03:39:17 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.arm,v 1.43 2001/11/24 01:26:24 thorpej Exp $
+#      $NetBSD: files.arm,v 1.44 2001/11/24 03:39:17 thorpej Exp $
 
 # temporary define to allow easy moving to ../arch/arm/arm32
 defopt ARM32
@@ -13,7 +13,7 @@
 defopt ARMFPE
 file   arch/arm/fpe-arm/armfpe_glue.S          armfpe
 file   arch/arm/fpe-arm/armfpe_init.c          armfpe
-file   arch/arm/fpe-arm/armfpe.s               armfpe
+file   arch/arm/fpe-arm/armfpe.S               armfpe
 
 # PMAP_DEBUG (heavily abused option)
 defopt PMAP_DEBUG
diff -r 30289ac0c9b1 -r 8484aa0ba91c sys/arch/arm/fpe-arm/armfpe.S
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm/fpe-arm/armfpe.S     Sat Nov 24 03:39:17 2001 +0000
@@ -0,0 +1,7504 @@
+/*     $NetBSD: armfpe.S,v 1.1 2001/11/24 03:39:17 thorpej Exp $       */
+
+/*
+ * Copyright (c) 1996 Neil A Carson.
+ * Copyright (c) 1996 Advanced Risc Machines Ltd.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *      This product includes software developed by the RiscBSD kernel team.
+ *      This product includes software developed by Advanced Risc Machines
+ *      Ltd.
+ * 4. The name of the company nor the name of the author may be used to
+ *    endorse or promote products derived from this software without specific
+ *    prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * RiscBSD kernel project
+ *
+ * armfpe.s
+ *
+ * ARM FPE core
+ *
+ * Created      : 03/08/96
+ */
+
+#include <arm/asm.h>
+
+/*
+ * DO NOT MODIFY - THIS FILE IS AUTOMATICALLY GENERATED
+ */
+
+/* Generated from kernelfpe by ftv@voyager */
+/* hand-modified for ELF by thorpej%wasabisystems.com@localhost */
+
+       .text
+
+       .global _C_LABEL(fpe_arm_start)         /* ARM FPE start address */
+_C_LABEL(fpe_arm_start):
+
+       .global _C_LABEL(fpe_arm_header)        /* ARM FPE header address */
+_C_LABEL(fpe_arm_header):
+
+/* FPE Core entry points */
+
+#define        E(n, o)                                                         \
+       .global _C_LABEL(n)                                     ;       \
+_C_LABEL(n): b _C_LABEL(fpe_arm_start) + o
+
+E(fpe_arm_core_abort, 0x00006cd4)
+
+E(fpe_arm_core_initws, 0x00006e68)
+
+E(fpe_arm_core_initcontext, 0x00006ed0)
+
+E(fpe_arm_core_changecontext, 0x00006f70)
+
+E(fpe_arm_core_shutdown, 0x00007080)
+
+E(fpe_arm_core_activatecontext, 0x00006fec)
+
+E(fpe_arm_core_deactivatecontext, 0x00006f78)
+
+E(fpe_arm_core_savecontext, 0x00007154)
+
+E(fpe_arm_core_loadcontext, 0x00007240)
+
+E(fpe_arm_core_disable, 0x00007090)
+
+E(fpe_arm_core_enable, 0x000070e4)
+
+#undef E
+
+/* FPE Core callback points */
+
+       b       _C_LABEL(arm_fpe_newhandler)
+       b       _C_LABEL(arm_fpe_restorehandler)
+       b       _C_LABEL(arm_fpe_handle_exception)
+       b       _C_LABEL(arm_fpe_get_ws)
+       b       _C_LABEL(arm_fpe_post_proc)
+
+/* FPE Core constants */
+
+#define        C(n, v)                                                         \
+       .global _C_LABEL(n)                                     ;       \
+_C_LABEL(n):                                                   ;       \
+       .word   v
+
+C(fpe_arm_workspace_length, 0x0000000c)
+
+C(fpe_arm_context_length, 0x00000088)
+
+C(fpe_arm_identity, _C_LABEL(fpe_arm_start) + 0x0000732c)
+
+       .global _C_LABEL(fpe_arm_core)
+_C_LABEL(fpe_arm_core):
+       .word   0x00000000
+       .word   0x00000000
+       .word   0x00000000
+       .word   0xe24dd040
+       .word   0xe88d1fff
+       .word   0xe28dc034
+       .word   0xe8cc6000
+       .word   0xe58de03c
+       .word   0xe1a0c00d
+       .word   0xe10fa000
+       .word   0xe14f9000
+       .word   0xe92d0600
+       .word   0xe319000f
+       .word   0xe24e9004
+       .word   0x04b9b000
+       .word   0x1599b000
+       .word   0xe92d4000
+       .word   0xebffffe8
+       .word   0xe8bd0400
+       .word   0xe8bd4000
+       .word   0xe31b0302
+       .word   0x0a00084b
+       .word   0xe20b9c0f
+       .word   0xe3590c01
+       .word   0x1a000015
+       .word   0xe59aa000
+       .word   0xee509110
+       .word   0xe2098c0f
+       .word   0xee307110
+       .word   0xe08ff328
+       .word   0x00000000
+       .word   0xea001c95
+       .word   0xea001c94
+       .word   0xea001c93
+       .word   0xea001c92
+       .word   0xea000103
+       .word   0xea0002b1
+       .word   0xea00002e
+       .word   0xea0002af
+       .word   0xea00018f
+       .word   0xea0002b8
+       .word   0xea00018d
+       .word   0xea0002b6
+       .word   0xea0000fb
+       .word   0xea0002ad
+       .word   0xea000026
+       .word   0xea0002ab
+       .word   0xe3590c02
+       .word   0x1a000830
+       .word   0xe59aa000
+       .word   0xee509110
+       .word   0xe2098c0f
+       .word   0xee307110
+       .word   0xe08ff328
+       .word   0x00000000
+       .word   0xea001c7d
+       .word   0xea001c7c
+       .word   0xea001c7b
+       .word   0xea001c7a
+       .word   0xea0000e7
+       .word   0xea000299
+       .word   0xea000008
+       .word   0xea000297
+       .word   0xea00081d
+       .word   0xea0002a0
+       .word   0xea00081b
+       .word   0xea00029e
+       .word   0xea0000df
+       .word   0xea000295
+       .word   0xea000000
+       .word   0xea000293
+       .word   0xe3190010
+       .word   0x13190601
+       .word   0x0a00000d
+       .word   0xe59c803c
+       .word   0xe2488004
+       .word   0xe58c803c
+       .word   0xe91c0300
+       .word   0xe129f009
+       .word   0xe169f008
+       .word   0xe1a0d00c
+       .word   0xe8dc7fff
+       .word   0xe1a00000
+       .word   0xe28dd03c
+       .word   0xe8fd8000
+       .word   0xe3190010
+       .word   0x13190601
+       .word   0x1a00011d
+       .word   0xe389b402
+       .word   0xe3170b01
+       .word   0x059c803c
+       .word   0x02488004
+       .word   0x058c803c
+       .word   0xe10f8000
+       .word   0xe3c88080
+       .word   0xe129f008
+       .word   0xe1a00000
+       .word   0xe31b0901
+       .word   0x0d2d020c
+       .word   0x1d2d420c
+       .word   0xe20b8a03
+       .word   0xe0888088
+       .word   0xe08d8528
+       .word   0xe8980007
+       .word   0xe28dd030
+       .word   0xe3c03103
+       .word   0xe2000103
+       .word   0xe20b8301
+       .word   0xe18335a8
+       .word   0xe3530903
+       .word   0x22433801
+       .word   0xe20b50e0
+       .word   0xe20b8702
+       .word   0xe18555a8
+       .word   0xe20b4201
+       .word   0xe31b0102
+       .word   0x02644000
+       .word   0xea00001e
+       .word   0x00003f81
+       .word   0x0000407e
+       .word   0x00003f81
+       .word   0x0000407e
+       .word   0x00003f81
+       .word   0x0000407e
+       .word   0x00003f81
+       .word   0x0000407e
+       .word   0x00003c01
+       .word   0x000043fe
+       .word   0x00003c01
+       .word   0x000043fe
+       .word   0x00003c01
+       .word   0x000043fe
+       .word   0x00003c01
+       .word   0x000043fe
+       .word   0x00000000
+       .word   0x00007ffe
+       .word   0x00000000
+       .word   0x00007ffe
+       .word   0x00000000
+       .word   0x00007ffe
+       .word   0x00000000
+       .word   0x00007ffe
+       .word   0xe3100101
+       .word   0x1a00000f
+       .word   0xe20b50e0
+       .word   0xe20b8702
+       .word   0xe18555a8
+       .word   0xe3a04000
+       .word   0xeb000bc0
+       .word   0xe24f8084
+       .word   0xe0888125
+       .word   0xe8980300
+       .word   0xe1530009
+       .word   0xd1580003
+       .word   0xca000015
+       .word   0xe1800003
+       .word   0xe3540000
+       .word   0x11b08aa7
+       .word   0x33877010
+       .word   0x8b000d37
+       .word   0xe92d0007
+       .word   0xe20b8a07
+       .word   0xe08f84a8



Home | Main Index | Thread Index | Old Index