Rev 823 | Rev 878 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 823 | Rev 869 | ||
|---|---|---|---|
| Line 32... | Line 32... | ||
| 32 | */ |
32 | */ |
| 33 | 33 | ||
| 34 | #ifndef __ASID_H__ |
34 | #ifndef __ASID_H__ |
| 35 | #define __ASID_H__ |
35 | #define __ASID_H__ |
| 36 | 36 | ||
| - | 37 | #ifndef __ASM__ |
|
| - | 38 | ||
| 37 | #include <arch/mm/asid.h> |
39 | #include <arch/mm/asid.h> |
| 38 | #include <typedefs.h> |
40 | #include <typedefs.h> |
| 39 | 41 | ||
| - | 42 | #endif |
|
| - | 43 | ||
| 40 | #define ASID_KERNEL 0 |
44 | #define ASID_KERNEL 0 |
| 41 | #define ASID_INVALID 1 |
45 | #define ASID_INVALID 1 |
| 42 | #define ASID_START 2 |
46 | #define ASID_START 2 |
| 43 | #define ASID_MAX ASID_MAX_ARCH |
47 | #define ASID_MAX ASID_MAX_ARCH |
| 44 | 48 | ||
| - | 49 | #ifndef __ASM__ |
|
| - | 50 | ||
| - | 51 | ||
| 45 | #define ASIDS_ALLOCABLE ((ASID_MAX+1)-ASID_START) |
52 | #define ASIDS_ALLOCABLE ((ASID_MAX+1)-ASID_START) |
| 46 | 53 | ||
| 47 | extern spinlock_t asidlock; |
54 | extern spinlock_t asidlock; |
| - | 55 | extern link_t as_with_asid_head; |
|
| 48 | 56 | ||
| 49 | #ifndef asid_get |
- | |
| 50 | extern asid_t asid_get(void); |
57 | extern asid_t asid_get(void); |
| 51 | #endif /* !def asid_get */ |
- | |
| 52 | extern void asid_put(asid_t asid); |
58 | extern void asid_put(asid_t asid); |
| 53 | 59 | ||
| 54 | #ifndef asid_install |
60 | #ifndef asid_install |
| 55 | extern void asid_install(as_t *as); |
61 | extern void asid_install(as_t *as); |
| 56 | #endif /* !def asid_install */ |
62 | #endif /* !def asid_install */ |
| Line 62... | Line 68... | ||
| 62 | #ifndef asid_put_arch |
68 | #ifndef asid_put_arch |
| 63 | extern void asid_put_arch(asid_t asid); |
69 | extern void asid_put_arch(asid_t asid); |
| 64 | #endif /* !def asid_put_arch */ |
70 | #endif /* !def asid_put_arch */ |
| 65 | 71 | ||
| 66 | #endif |
72 | #endif |
| - | 73 | ||
| - | 74 | #endif |
|
| - | 75 | ||