asm-offsets.c (8c1fc5abdccfb36102fa9647084eeb8c70e32562) | asm-offsets.c (ed1cd6deb013a11959d17a94e35ce159197632da) |
---|---|
1/* 2 * This program is used to generate definitions needed by 3 * assembly language modules. 4 * 5 * We use the technique used in the OSF Mach kernel code: 6 * generate asm statements containing #defines, 7 * compile this file to assembler, and then extract the 8 * #defines from the assembly-language output. 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License 12 * as published by the Free Software Foundation; either version 13 * 2 of the License, or (at your option) any later version. 14 */ 15 | 1/* 2 * This program is used to generate definitions needed by 3 * assembly language modules. 4 * 5 * We use the technique used in the OSF Mach kernel code: 6 * generate asm statements containing #defines, 7 * compile this file to assembler, and then extract the 8 * #defines from the assembly-language output. 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License 12 * as published by the Free Software Foundation; either version 13 * 2 of the License, or (at your option) any later version. 14 */ 15 |
16#define GENERATING_ASM_OFFSETS /* asm/smp.h */ 17 |
|
16#include <linux/compat.h> 17#include <linux/signal.h> 18#include <linux/sched.h> 19#include <linux/kernel.h> 20#include <linux/errno.h> 21#include <linux/string.h> 22#include <linux/types.h> 23#include <linux/mman.h> --- 68 unchanged lines hidden (view full) --- 92#else 93 DEFINE(THREAD_INFO_GAP, _ALIGN_UP(sizeof(struct thread_info), 16)); 94 OFFSET(KSP_LIMIT, thread_struct, ksp_limit); 95#ifdef CONFIG_PPC_RTAS 96 OFFSET(RTAS_SP, thread_struct, rtas_sp); 97#endif 98#endif /* CONFIG_PPC64 */ 99 OFFSET(TASK_STACK, task_struct, stack); | 18#include <linux/compat.h> 19#include <linux/signal.h> 20#include <linux/sched.h> 21#include <linux/kernel.h> 22#include <linux/errno.h> 23#include <linux/string.h> 24#include <linux/types.h> 25#include <linux/mman.h> --- 68 unchanged lines hidden (view full) --- 94#else 95 DEFINE(THREAD_INFO_GAP, _ALIGN_UP(sizeof(struct thread_info), 16)); 96 OFFSET(KSP_LIMIT, thread_struct, ksp_limit); 97#ifdef CONFIG_PPC_RTAS 98 OFFSET(RTAS_SP, thread_struct, rtas_sp); 99#endif 100#endif /* CONFIG_PPC64 */ 101 OFFSET(TASK_STACK, task_struct, stack); |
102#ifdef CONFIG_SMP 103 OFFSET(TI_CPU, task_struct, cpu); 104#endif |
|
100 101#ifdef CONFIG_LIVEPATCH 102 OFFSET(TI_livepatch_sp, thread_info, livepatch_sp); 103#endif 104 105 OFFSET(KSP, thread_struct, ksp); 106 OFFSET(PT_REGS, thread_struct, regs); 107#ifdef CONFIG_BOOKE --- 51 unchanged lines hidden (view full) --- 159 /* Local pt_regs on stack for Transactional Memory funcs. */ 160 DEFINE(TM_FRAME_SIZE, STACK_FRAME_OVERHEAD + 161 sizeof(struct pt_regs) + 16); 162#endif /* CONFIG_PPC_TRANSACTIONAL_MEM */ 163 164 OFFSET(TI_FLAGS, thread_info, flags); 165 OFFSET(TI_LOCAL_FLAGS, thread_info, local_flags); 166 OFFSET(TI_PREEMPT, thread_info, preempt_count); | 105 106#ifdef CONFIG_LIVEPATCH 107 OFFSET(TI_livepatch_sp, thread_info, livepatch_sp); 108#endif 109 110 OFFSET(KSP, thread_struct, ksp); 111 OFFSET(PT_REGS, thread_struct, regs); 112#ifdef CONFIG_BOOKE --- 51 unchanged lines hidden (view full) --- 164 /* Local pt_regs on stack for Transactional Memory funcs. */ 165 DEFINE(TM_FRAME_SIZE, STACK_FRAME_OVERHEAD + 166 sizeof(struct pt_regs) + 16); 167#endif /* CONFIG_PPC_TRANSACTIONAL_MEM */ 168 169 OFFSET(TI_FLAGS, thread_info, flags); 170 OFFSET(TI_LOCAL_FLAGS, thread_info, local_flags); 171 OFFSET(TI_PREEMPT, thread_info, preempt_count); |
167 OFFSET(TI_TASK, thread_info, task); 168 OFFSET(TI_CPU, thread_info, cpu); | |
169 170#ifdef CONFIG_PPC64 171 OFFSET(DCACHEL1BLOCKSIZE, ppc64_caches, l1d.block_size); 172 OFFSET(DCACHEL1LOGBLOCKSIZE, ppc64_caches, l1d.log_block_size); 173 OFFSET(DCACHEL1BLOCKSPERPAGE, ppc64_caches, l1d.blocks_per_page); 174 OFFSET(ICACHEL1BLOCKSIZE, ppc64_caches, l1i.block_size); 175 OFFSET(ICACHEL1LOGBLOCKSIZE, ppc64_caches, l1i.log_block_size); 176 OFFSET(ICACHEL1BLOCKSPERPAGE, ppc64_caches, l1i.blocks_per_page); --- 614 unchanged lines hidden --- | 172 173#ifdef CONFIG_PPC64 174 OFFSET(DCACHEL1BLOCKSIZE, ppc64_caches, l1d.block_size); 175 OFFSET(DCACHEL1LOGBLOCKSIZE, ppc64_caches, l1d.log_block_size); 176 OFFSET(DCACHEL1BLOCKSPERPAGE, ppc64_caches, l1d.blocks_per_page); 177 OFFSET(ICACHEL1BLOCKSIZE, ppc64_caches, l1i.block_size); 178 OFFSET(ICACHEL1LOGBLOCKSIZE, ppc64_caches, l1i.log_block_size); 179 OFFSET(ICACHEL1BLOCKSPERPAGE, ppc64_caches, l1i.blocks_per_page); --- 614 unchanged lines hidden --- |