asm-offsets.c (1136fa0c07de570dc17858745af8be169d1440ba) | asm-offsets.c (df24e1783e6e0eb3dc0e3ba5a8df3bb0cc537408) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 6 * 7 * Copyright (C) 2000-2001 John Marvin <jsm at parisc-linux.org> 8 * Copyright (C) 2000 David Huggins-Daines <dhd with pobox.org> --- 12 unchanged lines hidden (view full) --- 21#include <linux/hardirq.h> 22#include <linux/kbuild.h> 23#include <linux/pgtable.h> 24 25#include <asm/assembly.h> 26#include <asm/ptrace.h> 27#include <asm/processor.h> 28#include <asm/pdc.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 6 * 7 * Copyright (C) 2000-2001 John Marvin <jsm at parisc-linux.org> 8 * Copyright (C) 2000 David Huggins-Daines <dhd with pobox.org> --- 12 unchanged lines hidden (view full) --- 21#include <linux/hardirq.h> 22#include <linux/kbuild.h> 23#include <linux/pgtable.h> 24 25#include <asm/assembly.h> 26#include <asm/ptrace.h> 27#include <asm/processor.h> 28#include <asm/pdc.h> |
29#include <uapi/asm/sigcontext.h> 30#include <asm/ucontext.h> 31#include <asm/rt_sigframe.h> |
|
29#include <linux/uaccess.h> | 32#include <linux/uaccess.h> |
33#include "signal32.h" |
|
30 31/* Add FRAME_SIZE to the size x and align it to y. All definitions 32 * that use align_frame will include space for a frame. 33 */ 34#define align_frame(x,y) (((x)+FRAME_SIZE+(y)-1) - (((x)+(y)-1)%(y))) 35 36int main(void) 37{ --- 175 unchanged lines hidden (view full) --- 213 DEFINE(PT_ISR, offsetof(struct pt_regs, isr)); 214 DEFINE(PT_IOR, offsetof(struct pt_regs, ior)); 215 /* PT_SZ_ALGN includes space for a stack frame. */ 216 DEFINE(PT_SZ_ALGN, align_frame(sizeof(struct pt_regs), FRAME_ALIGN)); 217 BLANK(); 218 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); 219 DEFINE(TI_PRE_COUNT, offsetof(struct task_struct, thread_info.preempt_count)); 220 BLANK(); | 34 35/* Add FRAME_SIZE to the size x and align it to y. All definitions 36 * that use align_frame will include space for a frame. 37 */ 38#define align_frame(x,y) (((x)+FRAME_SIZE+(y)-1) - (((x)+(y)-1)%(y))) 39 40int main(void) 41{ --- 175 unchanged lines hidden (view full) --- 217 DEFINE(PT_ISR, offsetof(struct pt_regs, isr)); 218 DEFINE(PT_IOR, offsetof(struct pt_regs, ior)); 219 /* PT_SZ_ALGN includes space for a stack frame. */ 220 DEFINE(PT_SZ_ALGN, align_frame(sizeof(struct pt_regs), FRAME_ALIGN)); 221 BLANK(); 222 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); 223 DEFINE(TI_PRE_COUNT, offsetof(struct task_struct, thread_info.preempt_count)); 224 BLANK(); |
225 DEFINE(ASM_SIGFRAME_SIZE, PARISC_RT_SIGFRAME_SIZE); 226 DEFINE(SIGFRAME_CONTEXT_REGS, offsetof(struct rt_sigframe, uc.uc_mcontext) - PARISC_RT_SIGFRAME_SIZE); 227 DEFINE(ASM_SIGFRAME_SIZE32, PARISC_RT_SIGFRAME_SIZE32); 228 DEFINE(SIGFRAME_CONTEXT_REGS32, offsetof(struct compat_rt_sigframe, uc.uc_mcontext) - PARISC_RT_SIGFRAME_SIZE32); 229 BLANK(); |
|
221 DEFINE(ICACHE_BASE, offsetof(struct pdc_cache_info, ic_base)); 222 DEFINE(ICACHE_STRIDE, offsetof(struct pdc_cache_info, ic_stride)); 223 DEFINE(ICACHE_COUNT, offsetof(struct pdc_cache_info, ic_count)); 224 DEFINE(ICACHE_LOOP, offsetof(struct pdc_cache_info, ic_loop)); 225 DEFINE(DCACHE_BASE, offsetof(struct pdc_cache_info, dc_base)); 226 DEFINE(DCACHE_STRIDE, offsetof(struct pdc_cache_info, dc_stride)); 227 DEFINE(DCACHE_COUNT, offsetof(struct pdc_cache_info, dc_count)); 228 DEFINE(DCACHE_LOOP, offsetof(struct pdc_cache_info, dc_loop)); --- 43 unchanged lines hidden --- | 230 DEFINE(ICACHE_BASE, offsetof(struct pdc_cache_info, ic_base)); 231 DEFINE(ICACHE_STRIDE, offsetof(struct pdc_cache_info, ic_stride)); 232 DEFINE(ICACHE_COUNT, offsetof(struct pdc_cache_info, ic_count)); 233 DEFINE(ICACHE_LOOP, offsetof(struct pdc_cache_info, ic_loop)); 234 DEFINE(DCACHE_BASE, offsetof(struct pdc_cache_info, dc_base)); 235 DEFINE(DCACHE_STRIDE, offsetof(struct pdc_cache_info, dc_stride)); 236 DEFINE(DCACHE_COUNT, offsetof(struct pdc_cache_info, dc_count)); 237 DEFINE(DCACHE_LOOP, offsetof(struct pdc_cache_info, dc_loop)); --- 43 unchanged lines hidden --- |