Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze_mmu_v2: MMU asm offset update

Signed-off-by: Michal Simek <monstr@monstr.eu>

+16 -5
+16 -5
arch/microblaze/kernel/asm-offsets.c
··· 1 1 /* 2 + * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> 2 3 * Copyright (C) 2007-2009 PetaLogix 3 4 * Copyright (C) 2006 Atmark Techno, Inc. 4 5 * ··· 69 68 70 69 /* struct task_struct */ 71 70 DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack)); 71 + #ifdef CONFIG_MMU 72 + DEFINE(TASK_STATE, offsetof(struct task_struct, state)); 73 + DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags)); 74 + DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace)); 75 + DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked)); 76 + DEFINE(TASK_MM, offsetof(struct task_struct, mm)); 77 + DEFINE(TASK_ACTIVE_MM, offsetof(struct task_struct, active_mm)); 78 + DEFINE(TASK_PID, offsetof(struct task_struct, pid)); 79 + DEFINE(TASK_THREAD, offsetof(struct task_struct, thread)); 80 + DEFINE(THREAD_KSP, offsetof(struct thread_struct, ksp)); 81 + BLANK(); 82 + 83 + DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); 84 + BLANK(); 85 + #endif 72 86 73 87 /* struct thread_info */ 74 88 DEFINE(TI_TASK, offsetof(struct thread_info, task)); 75 - DEFINE(TI_EXEC_DOMAIN, offsetof(struct thread_info, exec_domain)); 76 89 DEFINE(TI_FLAGS, offsetof(struct thread_info, flags)); 77 - DEFINE(TI_STATUS, offsetof(struct thread_info, status)); 78 - DEFINE(TI_CPU, offsetof(struct thread_info, cpu)); 79 - DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count)); 80 90 DEFINE(TI_ADDR_LIMIT, offsetof(struct thread_info, addr_limit)); 81 - DEFINE(TI_RESTART_BLOCK, offsetof(struct thread_info, restart_block)); 82 91 DEFINE(TI_CPU_CONTEXT, offsetof(struct thread_info, cpu_context)); 83 92 BLANK(); 84 93