crtsavres.S (e5451c8f8330e03ad3cfa16048b4daf961af434f) | crtsavres.S (7c868b66f8cc29bb9a63632b324a6fa661bdec05) |
---|---|
1/* 2 * Special support for eabi and SVR4 3 * 4 * Copyright (C) 1995, 1996, 1998, 2000, 2001 Free Software Foundation, Inc. 5 * Copyright 2008 Freescale Semiconductor, Inc. 6 * Written By Michael Meissner 7 * 8 * Based on gcc/config/rs6000/crtsavres.asm from gcc --- 23 unchanged lines hidden (view full) --- 32 * 33 * As a special exception, if you link this library with files 34 * compiled with GCC to produce an executable, this does not cause 35 * the resulting executable to be covered by the GNU General Public License. 36 * This exception does not however invalidate any other reasons why 37 * the executable file might be covered by the GNU General Public License. 38 */ 39 | 1/* 2 * Special support for eabi and SVR4 3 * 4 * Copyright (C) 1995, 1996, 1998, 2000, 2001 Free Software Foundation, Inc. 5 * Copyright 2008 Freescale Semiconductor, Inc. 6 * Written By Michael Meissner 7 * 8 * Based on gcc/config/rs6000/crtsavres.asm from gcc --- 23 unchanged lines hidden (view full) --- 32 * 33 * As a special exception, if you link this library with files 34 * compiled with GCC to produce an executable, this does not cause 35 * the resulting executable to be covered by the GNU General Public License. 36 * This exception does not however invalidate any other reasons why 37 * the executable file might be covered by the GNU General Public License. 38 */ 39 |
40#ifdef __powerpc64__ 41#error "On PPC64, FPR save/restore functions are provided by the linker." 42#endif 43 |
|
40 .file "crtsavres.S" 41 .section ".text" 42 | 44 .file "crtsavres.S" 45 .section ".text" 46 |
43/* On PowerPC64 Linux, these functions are provided by the linker. */ 44#ifndef __powerpc64__ 45 | |
46#define _GLOBAL(name) \ 47 .type name,@function; \ 48 .globl name; \ 49name: 50 51/* Routines for saving integer registers, called by the compiler. */ 52/* Called with r11 pointing to the stack header word of the caller of the */ 53/* function, just beyond the end of the integer save area. */ --- 171 unchanged lines hidden (view full) --- 225 lwz 30,-8(11) 226_GLOBAL(_restgpr_31_x) 227_GLOBAL(_rest32gpr_31_x) 228 lwz 0,4(11) 229 lwz 31,-4(11) 230 mtlr 0 231 mr 1,11 232 blr | 47#define _GLOBAL(name) \ 48 .type name,@function; \ 49 .globl name; \ 50name: 51 52/* Routines for saving integer registers, called by the compiler. */ 53/* Called with r11 pointing to the stack header word of the caller of the */ 54/* function, just beyond the end of the integer save area. */ --- 171 unchanged lines hidden (view full) --- 226 lwz 30,-8(11) 227_GLOBAL(_restgpr_31_x) 228_GLOBAL(_rest32gpr_31_x) 229 lwz 0,4(11) 230 lwz 31,-4(11) 231 mtlr 0 232 mr 1,11 233 blr |
233#endif | |