1/* Copyright (C) 2000-2022 Free Software Foundation, Inc. 2 This file is part of the GNU C Library. 3 4 The GNU C Library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Lesser General Public 6 License as published by the Free Software Foundation; either 7 version 2.1 of the License, or (at your option) any later version. 8 9 The GNU C Library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 14 You should have received a copy of the GNU Lesser General Public 15 License along with the GNU C Library; if not, see 16 <https://www.gnu.org/licenses/>. */ 17 18/* 19 General Purpose Register (GPR) save routine 20 when Floating Point Registers (FPRs) are not saved 21 22 Note: This save routine must not be called when GPR30 or 23 GPR31, or both, are the only registers beings saved. In these 24 cases, the saving and restoring must be done inline. 25*/ 26 27#include <sysdep.h> 28 29ENTRY(_savegpr0_all) 30 .globl C_TEXT(_savegpr0_13) 31C_TEXT(_savegpr0_13): stw r13,-76(r1) 32 cfi_offset(r13,-76) 33 .globl C_TEXT(_savegpr0_14) 34C_TEXT(_savegpr0_14): stw r14,-72(r1) 35 cfi_offset(r14,-72) 36 .globl C_TEXT(_savegpr0_15) 37C_TEXT(_savegpr0_15): stw r15,-68(r1) 38 cfi_offset(r15,-68) 39 .globl C_TEXT(_savegpr0_16) 40C_TEXT(_savegpr0_16): stw r16,-64(r1) 41 cfi_offset(r16,-64) 42 .globl C_TEXT(_savegpr0_17) 43C_TEXT(_savegpr0_17): stw r17,-60(r1) 44 cfi_offset(r17,-60) 45 .globl C_TEXT(_savegpr0_18) 46C_TEXT(_savegpr0_18): stw r18,-56(r1) 47 cfi_offset(r18,-56) 48 .globl C_TEXT(_savegpr0_19) 49C_TEXT(_savegpr0_19): stw r19,-52(r1) 50 cfi_offset(r19,-52) 51 .globl C_TEXT(_savegpr0_20) 52C_TEXT(_savegpr0_20): stw r20,-48(r1) 53 cfi_offset(r20,-48) 54 .globl C_TEXT(_savegpr0_21) 55C_TEXT(_savegpr0_21): stw r21,-44(r1) 56 cfi_offset(r21,-44) 57 .globl C_TEXT(_savegpr0_22) 58C_TEXT(_savegpr0_22): stw r22,-40(r1) 59 cfi_offset(r22,-40) 60 .globl C_TEXT(_savegpr0_23) 61C_TEXT(_savegpr0_23): stw r23,-36(r1) 62 cfi_offset(r23,-36) 63 .globl C_TEXT(_savegpr0_24) 64C_TEXT(_savegpr0_24): stw r24,-32(r1) 65 cfi_offset(r24,-32) 66 .globl C_TEXT(_savegpr0_25) 67C_TEXT(_savegpr0_25): stw r25,-28(r1) 68 cfi_offset(r25,-28) 69 .globl C_TEXT(_savegpr0_26) 70C_TEXT(_savegpr0_26): stw r26,-24(r1) 71 cfi_offset(r26,-24) 72 .globl C_TEXT(_savegpr0_27) 73C_TEXT(_savegpr0_27): stw r27,-20(r1) 74 cfi_offset(r27,-20) 75 .globl C_TEXT(_savegpr0_28) 76C_TEXT(_savegpr0_28): stw r28,-16(r1) 77 cfi_offset(r28,-16) 78 .globl C_TEXT(_savegpr0_29) 79C_TEXT(_savegpr0_29): stw r29,-12(r1) #save r29 80 stw r30,-8(r1) #save r30 81 stw r31,-4(r1) #save r31 82 cfi_offset(r29,-12) 83 cfi_offset(r30,-8) 84 cfi_offset(r31,-4) 85 stw r0,8(r1) #save LR in callers frame 86 blr #return 87END (_savegpr0_all) 88