arch/sparc/include/asm/mmu_context_64.h
Source file repositories/reference/linux-study-clean/arch/sparc/include/asm/mmu_context_64.h
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/include/asm/mmu_context_64.h- Extension
.h- Size
- 5621 bytes
- Lines
- 199
- Domain
- Architecture Layer
- Bucket
- arch/sparc
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/spinlock.hlinux/mm_types.hlinux/smp.hlinux/sched.hasm/spitfire.hasm/adi_64.hasm-generic/mm_hooks.hasm/percpu.hasm-generic/mmu_context.h
Detected Declarations
function tsb_context_switch_ctxfunction switch_mmfunction arch_start_context_switchfunction finish_arch_post_lock_switchfunction mm_untag_mask
Annotated Snippet
if (current && current->mm && current->mm->context.adi) {
struct pt_regs *regs;
regs = task_pt_regs(current);
regs->tstate |= TSTATE_MCDE;
}
}
}
#define mm_untag_mask mm_untag_mask
static inline unsigned long mm_untag_mask(struct mm_struct *mm)
{
return -1UL >> adi_nbits();
}
#include <asm-generic/mmu_context.h>
#endif /* !(__ASSEMBLER__) */
#endif /* !(__SPARC64_MMU_CONTEXT_H) */
Annotation
- Immediate include surface: `linux/spinlock.h`, `linux/mm_types.h`, `linux/smp.h`, `linux/sched.h`, `asm/spitfire.h`, `asm/adi_64.h`, `asm-generic/mm_hooks.h`, `asm/percpu.h`.
- Detected declarations: `function tsb_context_switch_ctx`, `function switch_mm`, `function arch_start_context_switch`, `function finish_arch_post_lock_switch`, `function mm_untag_mask`.
- Atlas domain: Architecture Layer / arch/sparc.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.