4.115
Line | |
---|
1 | #include <rtems.h> |
---|
2 | #include <libcpu/pte121.h> |
---|
3 | #include <libcpu/bat.h> |
---|
4 | |
---|
5 | /* Default activation of the page tables. This is a weak |
---|
6 | * alias, so applications may easily override this |
---|
7 | * default activation procedure. |
---|
8 | */ |
---|
9 | |
---|
10 | /* Author: Till Straumann, <strauman@slac.stanford.edu>, 4/2002 |
---|
11 | * Kate Feng <feng1@bnl.gov> ported it to MVME5500, 4/2004 |
---|
12 | */ |
---|
13 | |
---|
14 | void |
---|
15 | BSP_pgtbl_activate(Triv121PgTbl) __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") )); |
---|
16 | |
---|
17 | void |
---|
18 | __BSP_default_pgtbl_activate(Triv121PgTbl pt) |
---|
19 | { |
---|
20 | if (!pt) return; |
---|
21 | |
---|
22 | /* switch the text/ro sements to RO only after |
---|
23 | * initializing the interrupts because the irq_mng |
---|
24 | * installs some code... |
---|
25 | * |
---|
26 | * activate the page table; it is still masked by the |
---|
27 | * DBAT0, however |
---|
28 | */ |
---|
29 | triv121PgTblActivate(pt); |
---|
30 | |
---|
31 | /* finally, switch off DBAT0 & DBAT1 */ |
---|
32 | setdbat(0,0,0,0,0); |
---|
33 | setdbat(1,0,0,0,0); /* <skf> */ |
---|
34 | /* At this point, DBAT0 is available for other use... */ |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.