18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2020 Google LLC. 48c2ecf20Sopenharmony_ci * Written by David Brazdil <dbrazdil@google.com> 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Linker script used for partial linking of nVHE EL2 object files. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <asm/hyp_image.h> 108c2ecf20Sopenharmony_ci#include <asm-generic/vmlinux.lds.h> 118c2ecf20Sopenharmony_ci#include <asm/cache.h> 128c2ecf20Sopenharmony_ci#include <asm/memory.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciSECTIONS { 158c2ecf20Sopenharmony_ci HYP_SECTION(.text) 168c2ecf20Sopenharmony_ci /* 178c2ecf20Sopenharmony_ci * .hyp..data..percpu needs to be page aligned to maintain the same 188c2ecf20Sopenharmony_ci * alignment for when linking into vmlinux. 198c2ecf20Sopenharmony_ci */ 208c2ecf20Sopenharmony_ci . = ALIGN(PAGE_SIZE); 218c2ecf20Sopenharmony_ci HYP_SECTION_NAME(.data..percpu) : { 228c2ecf20Sopenharmony_ci PERCPU_INPUT(L1_CACHE_BYTES) 238c2ecf20Sopenharmony_ci } 248c2ecf20Sopenharmony_ci} 25