~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arc/kernel/asm-offsets.c

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3  *
  4  * This program is free software; you can redistribute it and/or modify
  5  * it under the terms of the GNU General Public License version 2 as
  6  * published by the Free Software Foundation.
  7  */
  8 
  9 #include <linux/sched.h>
 10 #include <linux/mm.h>
 11 #include <linux/interrupt.h>
 12 #include <linux/thread_info.h>
 13 #include <linux/kbuild.h>
 14 #include <linux/ptrace.h>
 15 #include <asm/hardirq.h>
 16 #include <asm/page.h>
 17 
 18 int main(void)
 19 {
 20         DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));
 21         DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack));
 22 
 23         BLANK();
 24 
 25         DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp));
 26         DEFINE(THREAD_CALLEE_REG, offsetof(struct thread_struct, callee_reg));
 27         DEFINE(THREAD_FAULT_ADDR,
 28                offsetof(struct thread_struct, fault_address));
 29 
 30         BLANK();
 31 
 32         DEFINE(THREAD_INFO_FLAGS, offsetof(struct thread_info, flags));
 33         DEFINE(THREAD_INFO_PREEMPT_COUNT,
 34                offsetof(struct thread_info, preempt_count));
 35 
 36         BLANK();
 37 
 38         DEFINE(TASK_ACT_MM, offsetof(struct task_struct, active_mm));
 39         DEFINE(TASK_TGID, offsetof(struct task_struct, tgid));
 40         DEFINE(TASK_PID, offsetof(struct task_struct, pid));
 41         DEFINE(TASK_COMM, offsetof(struct task_struct, comm));
 42 
 43         DEFINE(MM_CTXT, offsetof(struct mm_struct, context));
 44         DEFINE(MM_PGD, offsetof(struct mm_struct, pgd));
 45 
 46         DEFINE(MM_CTXT_ASID, offsetof(mm_context_t, asid));
 47 
 48         BLANK();
 49 
 50         DEFINE(PT_status32, offsetof(struct pt_regs, status32));
 51         DEFINE(PT_event, offsetof(struct pt_regs, event));
 52         DEFINE(PT_sp, offsetof(struct pt_regs, sp));
 53         DEFINE(PT_r0, offsetof(struct pt_regs, r0));
 54         DEFINE(PT_r1, offsetof(struct pt_regs, r1));
 55         DEFINE(PT_r2, offsetof(struct pt_regs, r2));
 56         DEFINE(PT_r3, offsetof(struct pt_regs, r3));
 57         DEFINE(PT_r4, offsetof(struct pt_regs, r4));
 58         DEFINE(PT_r5, offsetof(struct pt_regs, r5));
 59         DEFINE(PT_r6, offsetof(struct pt_regs, r6));
 60         DEFINE(PT_r7, offsetof(struct pt_regs, r7));
 61         DEFINE(PT_ret, offsetof(struct pt_regs, ret));
 62 
 63         DEFINE(SZ_CALLEE_REGS, sizeof(struct callee_regs));
 64         DEFINE(SZ_PT_REGS, sizeof(struct pt_regs));
 65         DEFINE(PT_user_r25, offsetof(struct pt_regs, user_r25));
 66 
 67         return 0;
 68 }
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp