Rev 687 | Rev 730 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 687 | Rev 727 | ||
|---|---|---|---|
| Line 24... | Line 24... | ||
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| - | 29 | /* |
|
| - | 30 | * This is generic interface for managing |
|
| - | 31 | * Address Space IDentifiers (ASIDs). |
|
| - | 32 | */ |
|
| - | 33 | ||
| 29 | #ifndef __ASID_H__ |
34 | #ifndef __ASID_H__ |
| 30 | #define __ASID_H__ |
35 | #define __ASID_H__ |
| 31 | 36 | ||
| - | 37 | #include <arch/mm/asid.h> |
|
| - | 38 | #include <typedefs.h> |
|
| - | 39 | ||
| 32 | #define ASID_KERNEL 0 |
40 | #define ASID_KERNEL 0 |
| - | 41 | #define ASID_INVALID 1 |
|
| - | 42 | #define ASID_START 2 |
|
| - | 43 | #define ASID_MAX ASID_MAX_ARCH |
|
| - | 44 | ||
| - | 45 | #define ASIDS_ALLOCABLE ((ASID_MAX+1)-ASID_START) |
|
| - | 46 | ||
| - | 47 | extern spinlock_t asidlock; |
|
| - | 48 | extern link_t as_with_asid_head; |
|
| - | 49 | ||
| - | 50 | extern asid_t asid_get(void); |
|
| - | 51 | extern void asid_put(asid_t asid); |
|
| - | 52 | ||
| - | 53 | #ifndef asid_install |
|
| - | 54 | extern void asid_install(as_t *as); |
|
| - | 55 | #endif /* !def asid_install */ |
|
| - | 56 | ||
| - | 57 | #define asid_find_free() ASID_START |
|
| - | 58 | #define asid_put_arch(x) |
|
| 33 | 59 | ||
| 34 | #endif |
60 | #endif |