source: rtems/bsps/powerpc/mvme5500/start/pgtbl_activate.c @ 8f8ccee

5
Last change on this file since 8f8ccee was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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.