Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128005
b: refs/heads/master
c: a60715f
h: refs/heads/master
i:
  128003: 53a3a93
v: v3
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Jan 5, 2009
1 parent d994923 commit 0f7de3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ca5506da6795ebc700fd41cef2a7785613fbe28
refs/heads/master: a60715f58907d4e1db7be6c31fa050c993e119b5
13 changes: 9 additions & 4 deletions trunk/arch/parisc/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,21 @@ destroy_context(struct mm_struct *mm)
mm->context = 0;
}

static inline void load_context(mm_context_t context)
static inline unsigned long __space_to_prot(mm_context_t ctx)
{
mtsp(context, 3);
#if SPACEID_SHIFT == 0
mtctl(context << 1,8);
return context << 1;
#else
mtctl(context >> (SPACEID_SHIFT - 1),8);
return context >> (SPACEID_SHIFT - 1);
#endif
}

static inline void load_context(mm_context_t context)
{
mtsp(context, 3);
mtctl(__space_to_prot(context), 8);
}

static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk)
{

Expand Down

0 comments on commit 0f7de3d

Please sign in to comment.