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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [mmix/] [crtn.asm] - Diff between revs 38 and 154

Only display areas with differences | Details | Blame | View Log

Rev 38 Rev 154
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
/* Copyright (C) 2001, 2002 Free Software Foundation, Inc.
   Contributed by Hans-Peter Nilsson 
   Contributed by Hans-Peter Nilsson 
This file is free software; you can redistribute it and/or modify it
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
Free Software Foundation; either version 2, or (at your option) any
later version.
later version.
In addition to the permissions in the GNU General Public License, the
In addition to the permissions in the GNU General Public License, the
Free Software Foundation gives you unlimited permission to link the
Free Software Foundation gives you unlimited permission to link the
compiled version of this file into combinations with other programs,
compiled version of this file into combinations with other programs,
and to distribute those combinations without any restriction coming
and to distribute those combinations without any restriction coming
from the use of this file.  (The General Public License restrictions
from the use of this file.  (The General Public License restrictions
do apply in other respects; for example, they cover modification of
do apply in other respects; for example, they cover modification of
the file, and distribution when not linked into a combine
the file, and distribution when not linked into a combine
executable.)
executable.)
This file is distributed in the hope that it will be useful, but
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.
General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.  If not, write to
along with this program; see the file COPYING.  If not, write to
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.  */
Boston, MA 02110-1301, USA.  */
% This must be the last file on the link-line, allocating global registers
% This must be the last file on the link-line, allocating global registers
% from the top.
% from the top.
% Register $254 is the stack-pointer.
% Register $254 is the stack-pointer.
sp GREG
sp GREG
% Register $253 is frame-pointer.  It's not supposed to be used in most
% Register $253 is frame-pointer.  It's not supposed to be used in most
% functions.
% functions.
fp GREG
fp GREG
% $252 is the static chain register; nested functions receive the
% $252 is the static chain register; nested functions receive the
% context of the surrounding function through a pointer passed in this
% context of the surrounding function through a pointer passed in this
% register.
% register.
static_chain GREG
static_chain GREG
struct_value_reg GREG
struct_value_reg GREG
% These registers are used to pass state at an exceptional return (C++).
% These registers are used to pass state at an exceptional return (C++).
eh_state_3 GREG
eh_state_3 GREG
eh_state_2 GREG
eh_state_2 GREG
eh_state_1 GREG
eh_state_1 GREG
eh_state_0 GREG
eh_state_0 GREG
#ifdef __MMIX_ABI_GNU__
#ifdef __MMIX_ABI_GNU__
% Allocate global registers used by the GNU ABI.
% Allocate global registers used by the GNU ABI.
gnu_parm_reg_16 GREG
gnu_parm_reg_16 GREG
gnu_parm_reg_15 GREG
gnu_parm_reg_15 GREG
gnu_parm_reg_14 GREG
gnu_parm_reg_14 GREG
gnu_parm_reg_13 GREG
gnu_parm_reg_13 GREG
gnu_parm_reg_12 GREG
gnu_parm_reg_12 GREG
gnu_parm_reg_11 GREG
gnu_parm_reg_11 GREG
gnu_parm_reg_10 GREG
gnu_parm_reg_10 GREG
gnu_parm_reg_9 GREG
gnu_parm_reg_9 GREG
gnu_parm_reg_8 GREG
gnu_parm_reg_8 GREG
gnu_parm_reg_7 GREG
gnu_parm_reg_7 GREG
gnu_parm_reg_6 GREG
gnu_parm_reg_6 GREG
gnu_parm_reg_5 GREG
gnu_parm_reg_5 GREG
gnu_parm_reg_4 GREG
gnu_parm_reg_4 GREG
gnu_parm_reg_3 GREG
gnu_parm_reg_3 GREG
gnu_parm_reg_2 GREG
gnu_parm_reg_2 GREG
gnu_parm_reg_1 GREG
gnu_parm_reg_1 GREG
#endif /* __MMIX_ABI_GNU__ */
#endif /* __MMIX_ABI_GNU__ */
% Provide last part of _init and _fini.
% Provide last part of _init and _fini.
% The return address is stored in the topmost stored register in the
% The return address is stored in the topmost stored register in the
% register-stack.  We ignore the current value in rJ.  It is probably
% register-stack.  We ignore the current value in rJ.  It is probably
% garbage because each fragment of _init and _fini may have their own idea
% garbage because each fragment of _init and _fini may have their own idea
% of the current stack frame, if they're cut out from a "real" function
% of the current stack frame, if they're cut out from a "real" function
% like in gcc/crtstuff.c.
% like in gcc/crtstuff.c.
        .section .init,"ax",@progbits
        .section .init,"ax",@progbits
        GETA    $255,0F
        GETA    $255,0F
        PUT     rJ,$255
        PUT     rJ,$255
        POP     0,0
        POP     0,0
0H      PUT     rJ,$0
0H      PUT     rJ,$0
        POP     0,0
        POP     0,0
        .section .fini,"ax",@progbits
        .section .fini,"ax",@progbits
        GETA    $255,0F
        GETA    $255,0F
        PUT     rJ,$255
        PUT     rJ,$255
        POP     0,0
        POP     0,0
0H      PUT     rJ,$0
0H      PUT     rJ,$0
        POP     0,0
        POP     0,0
 
 

powered by: WebSVN 2.1.0

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