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

5
Last change on this file since 9964895 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
RevLine 
[0659b5de]1/*
2 * Default activation of the page tables. This is a weak
[7be6ad9]3 * alias, so applications may easily override this
4 * default activation procedure.
5 */
6
[ac7af4a]7/* Author: Till Straumann, <strauman@slac.stanford.edu>, 4/2002
[ee732739]8 * Kate Feng <feng1@bnl.gov> ported it to MVME5500, 4/2004
[7be6ad9]9 */
10
[0659b5de]11#include <rtems.h>
12#include <libcpu/pte121.h>
13#include <libcpu/bat.h>
[7be6ad9]14
[0659b5de]15static void
[7be6ad9]16__BSP_default_pgtbl_activate(Triv121PgTbl pt)
17{
[0659b5de]18  if (!pt)
19    return;
[7be6ad9]20
[0659b5de]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);
[7be6ad9]29
[0659b5de]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... */
[7be6ad9]34}
[0659b5de]35
36void BSP_pgtbl_activate(Triv121PgTbl)
37  __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") ));
Note: See TracBrowser for help on using the repository browser.