mem: add request types for acquire and release
Add support for acquire and release requests. These synchronization operations are commonly supported by several modern instruction sets.
This commit is contained in:
parent
4935f0d5ff
commit
f5f04c3120
1 changed files with 6 additions and 0 deletions
|
@ -155,6 +155,10 @@ class Request
|
||||||
PF_EXCLUSIVE = 0x02000000,
|
PF_EXCLUSIVE = 0x02000000,
|
||||||
/** The request should be marked as LRU. */
|
/** The request should be marked as LRU. */
|
||||||
EVICT_NEXT = 0x04000000,
|
EVICT_NEXT = 0x04000000,
|
||||||
|
/** The request should be marked with ACQUIRE. */
|
||||||
|
ACQUIRE = 0x00020000,
|
||||||
|
/** The request should be marked with RELEASE. */
|
||||||
|
RELEASE = 0x00040000,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The request should be handled by the generic IPR code (only
|
* The request should be handled by the generic IPR code (only
|
||||||
|
@ -696,6 +700,8 @@ class Request
|
||||||
bool isMmappedIpr() const { return _flags.isSet(MMAPPED_IPR); }
|
bool isMmappedIpr() const { return _flags.isSet(MMAPPED_IPR); }
|
||||||
bool isSecure() const { return _flags.isSet(SECURE); }
|
bool isSecure() const { return _flags.isSet(SECURE); }
|
||||||
bool isPTWalk() const { return _flags.isSet(PT_WALK); }
|
bool isPTWalk() const { return _flags.isSet(PT_WALK); }
|
||||||
|
bool isAcquire() const { return _flags.isSet(ACQUIRE); }
|
||||||
|
bool isRelease() const { return _flags.isSet(RELEASE); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __MEM_REQUEST_HH__
|
#endif // __MEM_REQUEST_HH__
|
||||||
|
|
Loading…
Reference in a new issue