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

4.104.114.84.95
Last change on this file since ee732739 was ee732739, checked in by Joel Sherrill <joel.sherrill@…>, on 09/13/07 at 14:26:24

2007-09-07 Kate Feng <feng1@…>

  • ChangeLog?, Makefile.am, README, README.booting, README.irq, preinstall.am, GT64260/MVME5500I2C.c, include/bsp.h, irq/irq.c, irq/irq.h, irq/irq_init.c, pci/detect_host_bridge.c, pci/pci.c, pci/pci_interface.c, pci/pcifinddevice.c, start/preload.S, startup/bspclean.c, startup/bspstart.c, startup/pgtbl_activate.c, startup/reboot.c, vectors/bspException.h, vectors/exceptionhandler.c: Merge my improvements in this BSP including a new network driver for the 1GHz NIC.
  • network/if_100MHz/GT64260eth.c, network/if_100MHz/GT64260eth.h, network/if_100MHz/GT64260ethreg.h, network/if_100MHz/Makefile.am, network/if_1GHz/Makefile.am, network/if_1GHz/POSSIBLEBUG, network/if_1GHz/if_wm.c, network/if_1GHz/if_wmreg.h, network/if_1GHz/pci_map.c, network/if_1GHz/pcireg.h: New files.
  • Property mode set to 100644
File size: 978 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.