Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351147
b: refs/heads/master
c: 9520a5b
h: refs/heads/master
i:
  351145: 4004b68
  351143: 808aec5
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Feb 16, 2013
1 parent caefa08 commit 5f2bbc6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 352af7d4dd90bac3640ad2383e4e9f332d3a4537
refs/heads/master: 9520a5bece13b7382f4b0059180f61530c423c81
3 changes: 3 additions & 0 deletions trunk/arch/arm/mm/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
* The ASID is used to tag entries in the CPU caches and TLBs.
* The context ID is used by debuggers and trace logic, and
* should be unique within all running processes.
*
* In big endian operation, the two 32 bit words are swapped if accesed by
* non 64-bit operations.
*/
#define ASID_FIRST_VERSION (1ULL << ASID_BITS)
#define NUM_USER_ASIDS (ASID_FIRST_VERSION - 1)
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/mm/proc-macros.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@

/*
* mmid - get context id from mm pointer (mm->context.id)
* note, this field is 64bit, so in big-endian the two words are swapped too.
*/
.macro mmid, rd, rn
#ifdef __ARMEB__
ldr \rd, [\rn, #MM_CONTEXT_ID + 4 ]
#else
ldr \rd, [\rn, #MM_CONTEXT_ID]
#endif
.endm

/*
Expand Down

0 comments on commit 5f2bbc6

Please sign in to comment.