OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [machine/] [microblaze/] [longjmp.S] - Diff between revs 207 and 345

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 345
/* Copyright (c) 2001, 2009 Xilinx, Inc.  All rights reserved.
/* Copyright (c) 2001, 2009 Xilinx, Inc.  All rights reserved.
   Redistribution and use in source and binary forms, with or without
   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are
   modification, are permitted provided that the following conditions are
   met:
   met:
   1.  Redistributions source code must retain the above copyright notice,
   1.  Redistributions source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.
   this list of conditions and the following disclaimer.
   2.  Redistributions in binary form must reproduce the above copyright
   2.  Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
   documentation and/or other materials provided with the distribution.
   3.  Neither the name of Xilinx nor the names of its contributors may be
   3.  Neither the name of Xilinx nor the names of its contributors may be
   used to endorse or promote products derived from this software without
   used to endorse or promote products derived from this software without
   specific prior written permission.
   specific prior written permission.
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
   IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
   TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
   PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
   PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
   TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
   TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 *
 * longjmp - non-local jump to a saved stack context
 * longjmp - non-local jump to a saved stack context
 * args    - r5 - jmp_buf
 * args    - r5 - jmp_buf
 *           r6 - val
 *           r6 - val
 *
 *
 * jmpbuf frame structure
 * jmpbuf frame structure
 * ---------------------
 * ---------------------
 *
 *
 *      +-------------+         + 0
 *      +-------------+         + 0
 *      |     r1      |
 *      |     r1      |
 *      +-------------+         + 4
 *      +-------------+         + 4
 *      |     r13     |
 *      |     r13     |
 *      |      .      |
 *      |      .      |
 *      |      .      |
 *      |      .      |
 *      |      .      |
 *      |      .      |
 *      |     r31     |
 *      |     r31     |
 *      +-------------+         + 80
 *      +-------------+         + 80
 *      |      .      |
 *      |      .      |
 *      |      .      |
 *      |      .      |
 */
 */
.globl longjmp
.globl longjmp
.section .text
.section .text
.align 2
.align 2
.ent longjmp
.ent longjmp
longjmp:
longjmp:
    lwi     r1, r5, 0
    lwi     r1, r5, 0
    lwi     r13, r5, 4
    lwi     r13, r5, 4
    lwi     r14, r5, 8
    lwi     r14, r5, 8
    lwi     r15, r5, 12
    lwi     r15, r5, 12
    lwi     r16, r5, 16
    lwi     r16, r5, 16
    lwi     r17, r5, 20
    lwi     r17, r5, 20
    lwi     r18, r5, 24
    lwi     r18, r5, 24
    lwi     r19, r5, 28
    lwi     r19, r5, 28
    lwi     r20, r5, 32
    lwi     r20, r5, 32
    lwi     r21, r5, 36
    lwi     r21, r5, 36
    lwi     r22, r5, 40
    lwi     r22, r5, 40
    lwi     r23, r5, 44
    lwi     r23, r5, 44
    lwi     r24, r5, 48
    lwi     r24, r5, 48
    lwi     r25, r5, 52
    lwi     r25, r5, 52
    lwi     r26, r5, 56
    lwi     r26, r5, 56
    lwi     r27, r5, 60
    lwi     r27, r5, 60
    lwi     r28, r5, 64
    lwi     r28, r5, 64
    lwi     r29, r5, 68
    lwi     r29, r5, 68
    lwi     r30, r5, 72
    lwi     r30, r5, 72
    lwi     r31, r5, 76
    lwi     r31, r5, 76
    rtsd    r15, 8
    rtsd    r15, 8
    or      r3, r0, r6
    or      r3, r0, r6
.end longjmp
.end longjmp
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.