source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/pgtbl_activate.c @ 1c554014

4.115
Last change on this file since 1c554014 was 1c554014, checked in by Ralf Corsépius <ralf.corsepius@…>, on 07/19/12 at 14:14:53

Remove CVS-Ids.

  • Property mode set to 100644
File size: 914 bytes
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
14void
15BSP_pgtbl_activate(Triv121PgTbl) __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") ));
16
17void
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.