OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-sparc/] [mmu_context.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef __SPARC_MMU_CONTEXT_H
2
#define __SPARC_MMU_CONTEXT_H
3
 
4
#include <asm/btfixup.h>
5
 
6
#ifndef __ASSEMBLY__
7
 
8
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu)
9
{
10
}
11
 
12
/*
13
 * Initialize a new mmu context.  This is invoked when a new
14
 * address space instance (unique or shared) is instantiated.
15
 */
16
#define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0)
17
 
18
/*
19
 * Destroy a dead context.  This occurs when mmput drops the
20
 * mm_users count to zero, the mmaps have been released, and
21
 * all the page tables have been flushed.  Our job is to destroy
22
 * any remaining processor-specific state.
23
 */
24
BTFIXUPDEF_CALL(void, destroy_context, struct mm_struct *)
25
 
26
#define destroy_context(mm) BTFIXUP_CALL(destroy_context)(mm)
27
 
28
/* Switch the current MM context. */
29
BTFIXUPDEF_CALL(void, switch_mm, struct mm_struct *, struct mm_struct *, struct task_struct *, int)
30
 
31
#define switch_mm(old_mm, mm, tsk, cpu) BTFIXUP_CALL(switch_mm)(old_mm, mm, tsk, cpu)
32
 
33
/* Activate a new MM instance for the current task. */
34
#define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL, smp_processor_id())
35
 
36
#endif /* !(__ASSEMBLY__) */
37
 
38
#endif /* !(__SPARC_MMU_CONTEXT_H) */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.