[xtensa-cvscommit] linux/include/asm-xtensa mmu_context.h,1.1.1.1,1.2
Brought to you by:
zankel
|
From: <joe...@us...> - 2003-01-20 22:44:19
|
Update of /cvsroot/xtensa/linux/include/asm-xtensa
In directory sc8-pr-cvs1:/tmp/cvs-serv15600/include/asm-xtensa
Modified Files:
mmu_context.h
Log Message:
Mnemonic constants are better than hard-coded values. Change 0 to NO_CONTEXT in several places.
Index: mmu_context.h
===================================================================
RCS file: /cvsroot/xtensa/linux/include/asm-xtensa/mmu_context.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** mmu_context.h 28 Aug 2002 16:11:31 -0000 1.1.1.1
--- mmu_context.h 20 Jan 2003 22:44:15 -0000 1.2
***************
*** 121,124 ****
--- 121,131 ----
+ /* NO_CONTEXT is the invalid ASID value that we don't ever assign to
+ any user or kernel context. NO_CONTEXT is a better mnemonic than
+ XCHAL_MMU_ASID_INVALID, so we use it in code instead. */
+
+ #define NO_CONTEXT XCHAL_MMU_ASID_INVALID
+
+
#if (KERNEL_RING != 0)
#error The KERNEL_RING really should be zero.
***************
*** 226,230 ****
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{
! mm->context = 0;
return 0;
}
--- 233,237 ----
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{
! mm->context = NO_CONTEXT;
return 0;
}
|