aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/kernel/asm-offsets.c3
-rw-r--r--arch/mips/kernel/vmlinux.lds.S15
-rw-r--r--arch/mips/power/hibernate.S3
3 files changed, 10 insertions, 11 deletions
diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c
index 8d006ec65677..2c1e1d02338b 100644
--- a/arch/mips/kernel/asm-offsets.c
+++ b/arch/mips/kernel/asm-offsets.c
@@ -183,9 +183,6 @@ void output_mm_defines(void)
183 OFFSET(MM_PGD, mm_struct, pgd); 183 OFFSET(MM_PGD, mm_struct, pgd);
184 OFFSET(MM_CONTEXT, mm_struct, context); 184 OFFSET(MM_CONTEXT, mm_struct, context);
185 BLANK(); 185 BLANK();
186 DEFINE(_PAGE_SIZE, PAGE_SIZE);
187 DEFINE(_PAGE_SHIFT, PAGE_SHIFT);
188 BLANK();
189 DEFINE(_PGD_T_SIZE, sizeof(pgd_t)); 186 DEFINE(_PGD_T_SIZE, sizeof(pgd_t));
190 DEFINE(_PMD_T_SIZE, sizeof(pmd_t)); 187 DEFINE(_PMD_T_SIZE, sizeof(pmd_t));
191 DEFINE(_PTE_T_SIZE, sizeof(pte_t)); 188 DEFINE(_PTE_T_SIZE, sizeof(pte_t));
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index 1474c18fb777..ae8c1976df5f 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -1,4 +1,5 @@
1#include <asm/asm-offsets.h> 1#include <asm/asm-offsets.h>
2#include <asm/page.h>
2#include <asm-generic/vmlinux.lds.h> 3#include <asm-generic/vmlinux.lds.h>
3 4
4#undef mips 5#undef mips
@@ -76,7 +77,7 @@ SECTIONS
76 * of ‘init_thread_union’ is greater than maximum 77 * of ‘init_thread_union’ is greater than maximum
77 * object file alignment. Using 32768 78 * object file alignment. Using 32768
78 */ 79 */
79 . = ALIGN(_PAGE_SIZE); 80 . = ALIGN(PAGE_SIZE);
80 *(.data.init_task) 81 *(.data.init_task)
81 82
82 DATA_DATA 83 DATA_DATA
@@ -96,12 +97,12 @@ SECTIONS
96 *(.sdata) 97 *(.sdata)
97 } 98 }
98 99
99 . = ALIGN(_PAGE_SIZE); 100 . = ALIGN(PAGE_SIZE);
100 .data_nosave : { 101 .data_nosave : {
101 __nosave_begin = .; 102 __nosave_begin = .;
102 *(.data.nosave) 103 *(.data.nosave)
103 } 104 }
104 . = ALIGN(_PAGE_SIZE); 105 . = ALIGN(PAGE_SIZE);
105 __nosave_end = .; 106 __nosave_end = .;
106 107
107 . = ALIGN(1 << CONFIG_MIPS_L1_CACHE_SHIFT); 108 . = ALIGN(1 << CONFIG_MIPS_L1_CACHE_SHIFT);
@@ -111,7 +112,7 @@ SECTIONS
111 _edata = .; /* End of data section */ 112 _edata = .; /* End of data section */
112 113
113 /* will be freed after init */ 114 /* will be freed after init */
114 . = ALIGN(_PAGE_SIZE); /* Init code and data */ 115 . = ALIGN(PAGE_SIZE); /* Init code and data */
115 __init_begin = .; 116 __init_begin = .;
116 .init.text : { 117 .init.text : {
117 _sinittext = .; 118 _sinittext = .;
@@ -151,15 +152,15 @@ SECTIONS
151 EXIT_DATA 152 EXIT_DATA
152 } 153 }
153#if defined(CONFIG_BLK_DEV_INITRD) 154#if defined(CONFIG_BLK_DEV_INITRD)
154 . = ALIGN(_PAGE_SIZE); 155 . = ALIGN(PAGE_SIZE);
155 .init.ramfs : { 156 .init.ramfs : {
156 __initramfs_start = .; 157 __initramfs_start = .;
157 *(.init.ramfs) 158 *(.init.ramfs)
158 __initramfs_end = .; 159 __initramfs_end = .;
159 } 160 }
160#endif 161#endif
161 PERCPU(_PAGE_SIZE) 162 PERCPU(PAGE_SIZE)
162 . = ALIGN(_PAGE_SIZE); 163 . = ALIGN(PAGE_SIZE);
163 __init_end = .; 164 __init_end = .;
164 /* freed after init ends here */ 165 /* freed after init ends here */
165 166
diff --git a/arch/mips/power/hibernate.S b/arch/mips/power/hibernate.S
index 4b8174b382d7..0cf86fb32ec3 100644
--- a/arch/mips/power/hibernate.S
+++ b/arch/mips/power/hibernate.S
@@ -8,6 +8,7 @@
8 * Wu Zhangjin <wuzj@lemote.com> 8 * Wu Zhangjin <wuzj@lemote.com>
9 */ 9 */
10#include <asm/asm-offsets.h> 10#include <asm/asm-offsets.h>
11#include <asm/page.h>
11#include <asm/regdef.h> 12#include <asm/regdef.h>
12#include <asm/asm.h> 13#include <asm/asm.h>
13 14
@@ -34,7 +35,7 @@ LEAF(swsusp_arch_resume)
340: 350:
35 PTR_L t1, PBE_ADDRESS(t0) /* source */ 36 PTR_L t1, PBE_ADDRESS(t0) /* source */
36 PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */ 37 PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
37 PTR_ADDIU t3, t1, _PAGE_SIZE 38 PTR_ADDIU t3, t1, PAGE_SIZE
381: 391:
39 REG_L t8, (t1) 40 REG_L t8, (t1)
40 REG_S t8, (t2) 41 REG_S t8, (t2)