Rev 727 | Rev 830 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 727 | Rev 756 | ||
---|---|---|---|
Line 25... | Line 25... | ||
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 | #include <arch/mm/as.h> |
29 | #include <arch/mm/as.h> |
- | 30 | #include <genarch/mm/as_pt.h> |
|
30 | #include <arch/mm/tlb.h> |
31 | #include <arch/mm/tlb.h> |
31 | #include <mm/tlb.h> |
32 | #include <mm/tlb.h> |
32 | #include <mm/as.h> |
33 | #include <mm/as.h> |
33 | #include <arch/cp0.h> |
34 | #include <arch/cp0.h> |
34 | #include <arch.h> |
35 | #include <arch.h> |
35 | 36 | ||
- | 37 | /** Architecture dependent address space init. */ |
|
- | 38 | void as_arch_init(void) |
|
- | 39 | { |
|
- | 40 | as_operations = &as_pt_operations; |
|
- | 41 | } |
|
- | 42 | ||
36 | /** Install address space. |
43 | /** Install address space. |
37 | * |
44 | * |
38 | * Install ASID. |
45 | * Install ASID. |
39 | * |
46 | * |
40 | * @param as Address space structure. |
47 | * @param as Address space structure. |
Line 54... | Line 61... | ||
54 | hi.asid = as->asid; |
61 | hi.asid = as->asid; |
55 | cp0_entry_hi_write(hi.value); |
62 | cp0_entry_hi_write(hi.value); |
56 | spinlock_unlock(&as->lock); |
63 | spinlock_unlock(&as->lock); |
57 | interrupts_restore(ipl); |
64 | interrupts_restore(ipl); |
58 | } |
65 | } |
- | 66 |