2 * This file contains miscellaneous low-level functions.
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
8 * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
10 * setjmp/longjmp code by Paul Mackerras.
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version
15 * 2 of the License, or (at your option) any later version.
17 #include <asm/ppc_asm.h>
18 #include <asm/unistd.h>
19 #include <asm/asm-compat.h>
20 #include <asm/asm-offsets.h>
25 * Returns (address we are running at) - (address we were linked at)
26 * for use before the text and data are mapped to KERNELBASE.
42 * add_reloc_offset(x) returns x + reloc_offset().
44 _GLOBAL(add_reloc_offset)
57 _GLOBAL(kernel_execve)
77 PPC_STL r19,10*SZL(r3)
78 PPC_STL r20,11*SZL(r3)
79 PPC_STL r21,12*SZL(r3)
80 PPC_STL r22,13*SZL(r3)
81 PPC_STL r23,14*SZL(r3)
82 PPC_STL r24,15*SZL(r3)
83 PPC_STL r25,16*SZL(r3)
84 PPC_STL r26,17*SZL(r3)
85 PPC_STL r27,18*SZL(r3)
86 PPC_STL r28,19*SZL(r3)
87 PPC_STL r29,20*SZL(r3)
88 PPC_STL r30,21*SZL(r3)
89 PPC_STL r31,22*SZL(r3)
97 1: PPC_LL r13,4*SZL(r3)
103 PPC_LL r19,10*SZL(r3)
104 PPC_LL r20,11*SZL(r3)
105 PPC_LL r21,12*SZL(r3)
106 PPC_LL r22,13*SZL(r3)
107 PPC_LL r23,14*SZL(r3)
108 PPC_LL r24,15*SZL(r3)
109 PPC_LL r25,16*SZL(r3)
110 PPC_LL r26,17*SZL(r3)
111 PPC_LL r27,18*SZL(r3)
112 PPC_LL r28,19*SZL(r3)
113 PPC_LL r29,20*SZL(r3)
114 PPC_LL r30,21*SZL(r3)
115 PPC_LL r31,22*SZL(r3)