1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * Generate definitions needed by assembly lan 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 5 * and format the required data. 6 */ 6 */ 7 7 8 #include <linux/types.h> 8 #include <linux/types.h> 9 #include <linux/stddef.h> 9 #include <linux/stddef.h> 10 #include <linux/sched.h> 10 #include <linux/sched.h> 11 #include <linux/ptrace.h> 11 #include <linux/ptrace.h> 12 #include <linux/kbuild.h> 12 #include <linux/kbuild.h> 13 #include <asm/machvec.h> 13 #include <asm/machvec.h> 14 14 15 static void __used foo(void) 15 static void __used foo(void) 16 { 16 { 17 DEFINE(TI_FLAGS, offsetof(struct threa 17 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); 18 DEFINE(TI_FP, offsetof(struct thread_i 18 DEFINE(TI_FP, offsetof(struct thread_info, fp)); 19 DEFINE(TI_STATUS, offsetof(struct thre 19 DEFINE(TI_STATUS, offsetof(struct thread_info, status)); 20 BLANK(); 20 BLANK(); 21 21 22 DEFINE(SIZEOF_PT_REGS, sizeof(struct p 22 DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs)); 23 BLANK(); 23 BLANK(); 24 24 25 DEFINE(HAE_CACHE, offsetof(struct alph 25 DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache)); 26 DEFINE(HAE_REG, offsetof(struct alpha_ 26 DEFINE(HAE_REG, offsetof(struct alpha_machine_vector, hae_register)); 27 } 27 } 28 28
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.