Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Generate definitions needed by assembly language modules.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * This code generates raw asm output which is post-processed to extract
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * and format the required data.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/stddef.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/ptrace.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/kbuild.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <asm/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) void foo(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	DEFINE(TI_TASK, offsetof(struct thread_info, task));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	DEFINE(TI_CPU, offsetof(struct thread_info, cpu));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	BLANK();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)         DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)         DEFINE(TASK_CRED, offsetof(struct task_struct, cred));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)         DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)         DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)         DEFINE(TASK_TGID, offsetof(struct task_struct, tgid));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)         BLANK();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)         DEFINE(CRED_UID,  offsetof(struct cred, uid));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)         DEFINE(CRED_EUID, offsetof(struct cred, euid));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)         DEFINE(CRED_GID,  offsetof(struct cred, gid));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)         DEFINE(CRED_EGID, offsetof(struct cred, egid));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)         BLANK();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	DEFINE(PT_PTRACED, PT_PTRACED);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	DEFINE(CLONE_VM, CLONE_VM);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	DEFINE(CLONE_UNTRACED, CLONE_UNTRACED);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	DEFINE(SIGCHLD, SIGCHLD);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	BLANK();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	DEFINE(HAE_REG, offsetof(struct alpha_machine_vector, hae_register));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) }