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

4.115
Last change on this file since 0659b5de was 0659b5de, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 16, 2014 at 9:20:22 PM

powerpc/mvme5500: Fix warnings

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