Import 2.3.18pre1
[davej-history.git] / include / asm-sparc / mmu_context.h
blobd31a9ea6bcc24e47a11b5f9423958b95fc7a1f5c
1 #ifndef __SPARC_MMU_CONTEXT_H
2 #define __SPARC_MMU_CONTEXT_H
4 #include <asm/btfixup.h>
6 /* For now I still leave the context handling in the
7 * switch_to() macro, I'll do it right soon enough.
8 */
9 #define get_mmu_context(x) do { } while (0)
11 /* Initialize the context related info for a new mm_struct
12 * instance.
14 BTFIXUPDEF_CALL(void, init_new_context, struct mm_struct *)
16 #define init_new_context(mm) BTFIXUP_CALL(init_new_context)(mm)
18 /* Destroy context related info for an mm_struct that is about
19 * to be put to rest.
21 BTFIXUPDEF_CALL(void, destroy_context, struct mm_struct *)
23 #define destroy_context(mm) BTFIXUP_CALL(destroy_context)(mm)
25 /* This need not do anything on Sparc32. The switch happens
26 * properly later as a side effect of calling flush_thread.
28 #define activate_context(tsk) do { } while(0)
30 #endif /* !(__SPARC_MMU_CONTEXT_H) */