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)
50 lines
1.3 KiB
C
50 lines
1.3 KiB
C
/*
|
|
* arch/arm/include/asm/procinfo.h
|
|
*
|
|
* Copyright (C) 1996-1999 Russell King
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __ASM_PROCINFO_H
|
|
#define __ASM_PROCINFO_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
struct cpu_tlb_fns;
|
|
struct cpu_user_fns;
|
|
struct cpu_cache_fns;
|
|
struct processor;
|
|
|
|
/*
|
|
* Note! struct processor is always defined if we're
|
|
* using MULTI_CPU, otherwise this entry is unused,
|
|
* but still exists.
|
|
*
|
|
* NOTE! The following structure is defined by assembly
|
|
* language, NOT C code. For more information, check:
|
|
* arch/arm/mm/proc-*.S and arch/arm/kernel/head.S
|
|
*/
|
|
struct proc_info_list {
|
|
unsigned int cpu_val;
|
|
unsigned int cpu_mask;
|
|
unsigned long __cpu_mm_mmu_flags; /* used by head.S */
|
|
unsigned long __cpu_io_mmu_flags; /* used by head.S */
|
|
unsigned long __cpu_flush; /* used by head.S */
|
|
const char *arch_name;
|
|
const char *elf_name;
|
|
unsigned int elf_hwcap;
|
|
const char *cpu_name;
|
|
struct processor *proc;
|
|
struct cpu_tlb_fns *tlb;
|
|
struct cpu_user_fns *user;
|
|
struct cpu_cache_fns *cache;
|
|
};
|
|
|
|
#else /* __KERNEL__ */
|
|
#include <asm/elf.h>
|
|
#warning "Please include asm/elf.h instead"
|
|
#endif /* __KERNEL__ */
|
|
#endif
|