paca.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) paca.c (f693d38d9468101587175b1e62d7e4483b51d8f5)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * c 2001 PPC 64 Team, IBM Corp
4 */
5
6#include <linux/smp.h>
7#include <linux/export.h>
8#include <linux/memblock.h>

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

339 paca_ptrs_size + paca_struct_size, nr_cpu_ids);
340}
341
342#ifdef CONFIG_PPC_64S_HASH_MMU
343void copy_mm_to_paca(struct mm_struct *mm)
344{
345 mm_context_t *context = &mm->context;
346
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * c 2001 PPC 64 Team, IBM Corp
4 */
5
6#include <linux/smp.h>
7#include <linux/export.h>
8#include <linux/memblock.h>

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

339 paca_ptrs_size + paca_struct_size, nr_cpu_ids);
340}
341
342#ifdef CONFIG_PPC_64S_HASH_MMU
343void copy_mm_to_paca(struct mm_struct *mm)
344{
345 mm_context_t *context = &mm->context;
346
347#ifdef CONFIG_PPC_MM_SLICES
348 VM_BUG_ON(!mm_ctx_slb_addr_limit(context));
349 memcpy(&get_paca()->mm_ctx_low_slices_psize, mm_ctx_low_slices(context),
350 LOW_SLICE_ARRAY_SZ);
351 memcpy(&get_paca()->mm_ctx_high_slices_psize, mm_ctx_high_slices(context),
352 TASK_SLICE_ARRAY_SZ(context));
347 VM_BUG_ON(!mm_ctx_slb_addr_limit(context));
348 memcpy(&get_paca()->mm_ctx_low_slices_psize, mm_ctx_low_slices(context),
349 LOW_SLICE_ARRAY_SZ);
350 memcpy(&get_paca()->mm_ctx_high_slices_psize, mm_ctx_high_slices(context),
351 TASK_SLICE_ARRAY_SZ(context));
353#else /* CONFIG_PPC_MM_SLICES */
354 get_paca()->mm_ctx_user_psize = context->user_psize;
355 get_paca()->mm_ctx_sllp = context->sllp;
356#endif
357}
358#endif /* CONFIG_PPC_64S_HASH_MMU */
352}
353#endif /* CONFIG_PPC_64S_HASH_MMU */