new file mode 100644
@@ -0,0 +1,14 @@
+#ifndef _ASMPOWERPC_PPC_ASM_H
+#define _ASMPOWERPC_PPC_ASM_H
+
+#define LOAD_REG_IMMEDIATE(reg,expr) \
+ lis reg,(expr)@highest; \
+ ori reg,reg,(expr)@higher; \
+ rldicr reg,reg,32,31; \
+ oris reg,reg,(expr)@h; \
+ ori reg,reg,(expr)@l;
+
+#define LOAD_REG_ADDR(reg,name) \
+ ld reg,name@got(r2)
+
+#endif /* _ASMPOWERPC_PPC_ASM_H */
new file mode 100644
@@ -0,0 +1 @@
+#include "../../powerpc/asm/ppc_asm.h"
@@ -7,16 +7,7 @@
*/
#define __ASSEMBLY__
#include <asm/hcall.h>
-
-#define LOAD_REG_IMMEDIATE(reg,expr) \
- lis reg,(expr)@highest; \
- ori reg,reg,(expr)@higher; \
- rldicr reg,reg,32,31; \
- oris reg,reg,(expr)@h; \
- ori reg,reg,(expr)@l;
-
-#define LOAD_REG_ADDR(reg,name) \
- ld reg,name@got(r2)
+#include <asm/ppc_asm.h>
.section .init