Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
28 lines
788 B
C
28 lines
788 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_TLBEX_H
|
|
#define __ASM_TLBEX_H
|
|
|
|
#include <asm/uasm.h>
|
|
|
|
/*
|
|
* Write random or indexed TLB entry, and care about the hazards from
|
|
* the preceding mtc0 and for the following eret.
|
|
*/
|
|
enum tlb_write_entry {
|
|
tlb_random,
|
|
tlb_indexed
|
|
};
|
|
|
|
extern int pgd_reg;
|
|
|
|
void build_get_pmde64(u32 **p, struct uasm_label **l, struct uasm_reloc **r,
|
|
unsigned int tmp, unsigned int ptr);
|
|
void build_get_pgde32(u32 **p, unsigned int tmp, unsigned int ptr);
|
|
void build_get_ptep(u32 **p, unsigned int tmp, unsigned int ptr);
|
|
void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep);
|
|
void build_tlb_write_entry(u32 **p, struct uasm_label **l,
|
|
struct uasm_reloc **r,
|
|
enum tlb_write_entry wmode);
|
|
|
|
#endif /* __ASM_TLBEX_H */
|