Changeset 36b01bb2 in mainline for arch/ia64/include/mm/asid.h


Ignore:
Timestamp:
2006-01-24T14:38:29Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa7d9c4
Parents:
0d8d27c
Message:

ia64 ASID management code (not tested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/mm/asid.h

    r0d8d27c r36b01bb2  
    3434typedef __u32 asid_t;
    3535
    36 /*
    37  * ASID_MAX can range from 2^18 - 1 to 2^24 - 1,
    38  * depending on architecture implementation.
     36/** Number of ia64 RIDs (Region Identifiers) per kernel ASID. */
     37#define RIDS_PER_ASID           7
     38#define RID_OVERFLOW            16777216        /* 2^24 */
     39
     40/**
     41 * The point is to have ASID_MAX_ARCH big enough
     42 * so that it is never reached and the ASID allocation
     43 * mechanism in asid_get() never resorts to stealing.
    3944 */
    40 #define ASID_MAX_ARCH   16777215        /* 2^24 - 1 */
     45#define ASID_MAX_ARCH           ((asid_t) -1)   /**< This value is never reached. */
    4146
    42 #define asid_find_free()        ASID_MAX_ARCH
     47/**
     48 * Value used to recognize the situation when all ASIDs were already allocated.
     49 */
     50#define ASID_OVERFLOW           (RID_OVERFLOW/RIDS_PER_ASID)
     51
    4352#define asid_put_arch(x)
    4453
Note: See TracChangeset for help on using the changeset viewer.