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

4.104.115
Last change on this file since ac7af4a was ac7af4a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 04:37:44

Whitespace removal.

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