patch-2.1.97 linux/include/asm-sparc/mmu_context.h

Next file: linux/include/asm-sparc/namei.h
Previous file: linux/include/asm-sparc/irq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/include/asm-sparc/mmu_context.h linux/include/asm-sparc/mmu_context.h
@@ -1,6 +1,8 @@
 #ifndef __SPARC_MMU_CONTEXT_H
 #define __SPARC_MMU_CONTEXT_H
 
+#include <asm/btfixup.h>
+
 /* For now I still leave the context handling in the
  * switch_to() macro, I'll do it right soon enough.
  */
@@ -9,11 +11,15 @@
 /* Initialize the context related info for a new mm_struct
  * instance.
  */
-extern void (*init_new_context)(struct mm_struct *mm);
+BTFIXUPDEF_CALL(void, init_new_context, struct mm_struct *)
+
+#define init_new_context(mm) BTFIXUP_CALL(init_new_context)(mm)
 
 /* Destroy context related info for an mm_struct that is about
  * to be put to rest.
  */
-extern void (*destroy_context)(struct mm_struct *mm);
+BTFIXUPDEF_CALL(void, destroy_context, struct mm_struct *)
+
+#define destroy_context(mm) BTFIXUP_CALL(destroy_context)(mm)
 
 #endif /* !(__SPARC_MMU_CONTEXT_H) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov