cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

vdso.h (1144B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Author: Huacai Chen <chenhuacai@loongson.cn>
      4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
      5 */
      6
      7#ifndef __ASM_VDSO_H
      8#define __ASM_VDSO_H
      9
     10#include <linux/mm_types.h>
     11#include <vdso/datapage.h>
     12
     13#include <asm/barrier.h>
     14
     15/*
     16 * struct loongarch_vdso_info - Details of a VDSO image.
     17 * @vdso: Pointer to VDSO image (page-aligned).
     18 * @size: Size of the VDSO image (page-aligned).
     19 * @off_rt_sigreturn: Offset of the rt_sigreturn() trampoline.
     20 * @code_mapping: Special mapping structure for vdso code.
     21 * @code_mapping: Special mapping structure for vdso data.
     22 *
     23 * This structure contains details of a VDSO image, including the image data
     24 * and offsets of certain symbols required by the kernel. It is generated as
     25 * part of the VDSO build process, aside from the mapping page array, which is
     26 * populated at runtime.
     27 */
     28struct loongarch_vdso_info {
     29	void *vdso;
     30	unsigned long size;
     31	unsigned long offset_sigreturn;
     32	struct vm_special_mapping code_mapping;
     33	struct vm_special_mapping data_mapping;
     34};
     35
     36extern struct loongarch_vdso_info vdso_info;
     37
     38#endif /* __ASM_VDSO_H */