1 /******************************************************************************
2 * Copyright (c) 2004, 2008 IBM Corporation
4 * This program and the accompanying materials
5 * are made available under the terms of the BSD License
6 * which accompanies this distribution, and is available at
7 * http://www.opensource.org/licenses/bsd-license.php
10 * IBM Corporation - initial implementation
11 *****************************************************************************/
13 .globl save_regs_r3_r12
14 .globl restore_regs_r3_r12
15 .globl save_regs_r13_r25
16 .globl restore_regs_r13_r25
20 stdu r1,-0x80(r1) # allocate space on stack
47 addi r1,r1,0x80 # cleanup stack
52 stdu r1,-0x98(r1) # allocate space on stack
71 ld r13,0x30(r1) # restore registers from stack
85 addi r1,r1,0x98 # cleanup stack