head_8xx.S (a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0) head_8xx.S (0a956d52e6fc31c52e5f21a134659a28e958480d)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * PowerPC version
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP
6 * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu>
7 * Low-level exception handlers and MMU support
8 * rewritten by Paul Mackerras.

--- 185 unchanged lines hidden (view full) ---

194 mtspr SPRN_M_TW, r11
195
196 /* If we are faulting a kernel address, we have to use the
197 * kernel page tables.
198 */
199 mfspr r10, SPRN_SRR0 /* Get effective address of fault */
200 INVALIDATE_ADJACENT_PAGES_CPU15(r10, r11)
201 mtspr SPRN_MD_EPN, r10
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * PowerPC version
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP
6 * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu>
7 * Low-level exception handlers and MMU support
8 * rewritten by Paul Mackerras.

--- 185 unchanged lines hidden (view full) ---

194 mtspr SPRN_M_TW, r11
195
196 /* If we are faulting a kernel address, we have to use the
197 * kernel page tables.
198 */
199 mfspr r10, SPRN_SRR0 /* Get effective address of fault */
200 INVALIDATE_ADJACENT_PAGES_CPU15(r10, r11)
201 mtspr SPRN_MD_EPN, r10
202#ifdef CONFIG_MODULES
202#ifdef CONFIG_EXECMEM
203 mfcr r11
204 compare_to_kernel_boundary r10, r10
205#endif
206 mfspr r10, SPRN_M_TWB /* Get level 1 table */
203 mfcr r11
204 compare_to_kernel_boundary r10, r10
205#endif
206 mfspr r10, SPRN_M_TWB /* Get level 1 table */
207#ifdef CONFIG_MODULES
207#ifdef CONFIG_EXECMEM
208 blt+ 3f
209 rlwinm r10, r10, 0, 20, 31
210 oris r10, r10, (swapper_pg_dir - PAGE_OFFSET)@ha
2113:
212 mtcr r11
213#endif
214 lwz r11, (swapper_pg_dir-PAGE_OFFSET)@l(r10) /* Get level 1 entry */
215 mtspr SPRN_MD_TWC, r11

--- 576 unchanged lines hidden ---
208 blt+ 3f
209 rlwinm r10, r10, 0, 20, 31
210 oris r10, r10, (swapper_pg_dir - PAGE_OFFSET)@ha
2113:
212 mtcr r11
213#endif
214 lwz r11, (swapper_pg_dir-PAGE_OFFSET)@l(r10) /* Get level 1 entry */
215 mtspr SPRN_MD_TWC, r11

--- 576 unchanged lines hidden ---