source: rtems/c/src/lib/libbsp/powerpc/shared/startup/pgtbl_activate.c @ fb252a68

4.115
Last change on this file since fb252a68 was fb252a68, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 13, 2014 at 3:29:44 PM

libbsp/powerpc/shared: Fix warnings

  • Property mode set to 100644
File size: 2.6 KB
Line 
1#include <rtems.h>
2#include <libcpu/pte121.h>
3#include <libcpu/bat.h>
4
5/* Default activation of the page tables. This is a weak
6 * alias, so applications may easily override this
7 * default activation procedure.
8 */
9
10/*
11 * Authorship
12 * ----------
13 * This software was created by
14 *     Till Straumann <strauman@slac.stanford.edu>, 4/2002,
15 *         Stanford Linear Accelerator Center, Stanford University.
16 *
17 * Acknowledgement of sponsorship
18 * ------------------------------
19 * This software was produced by
20 *     the Stanford Linear Accelerator Center, Stanford University,
21 *         under Contract DE-AC03-76SFO0515 with the Department of Energy.
22 *
23 * Government disclaimer of liability
24 * ----------------------------------
25 * Neither the United States nor the United States Department of Energy,
26 * nor any of their employees, makes any warranty, express or implied, or
27 * assumes any legal liability or responsibility for the accuracy,
28 * completeness, or usefulness of any data, apparatus, product, or process
29 * disclosed, or represents that its use would not infringe privately owned
30 * rights.
31 *
32 * Stanford disclaimer of liability
33 * --------------------------------
34 * Stanford University makes no representations or warranties, express or
35 * implied, nor assumes any liability for the use of this software.
36 *
37 * Stanford disclaimer of copyright
38 * --------------------------------
39 * Stanford University, owner of the copyright, hereby disclaims its
40 * copyright and all other rights in this software.  Hence, anyone may
41 * freely use it for any purpose without restriction.
42 *
43 * Maintenance of notices
44 * ----------------------
45 * In the interest of clarity regarding the origin and status of this
46 * SLAC software, this and all the preceding Stanford University notices
47 * are to remain affixed to any copy or derivative of this software made
48 * or distributed by the recipient and are to be affixed to any copy of
49 * software made or distributed by the recipient that contains a copy or
50 * derivative of this software.
51 *
52 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
53 */
54
55void __BSP_default_pgtbl_activate(Triv121PgTbl pt);
56void
57BSP_pgtbl_activate(Triv121PgTbl)
58  __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") ));
59
60void
61__BSP_default_pgtbl_activate(Triv121PgTbl pt)
62{
63        if (!pt) return;
64
65        /* switch the text/ro sements to RO only after
66         * initializing the interrupts because the irq_mng
67         * installs some code...
68         *
69         * activate the page table; it is still masked by the
70         * DBAT0, however
71         */
72        triv121PgTblActivate(pt);
73
74        /* finally, switch off DBAT0 */
75        setdbat(0,0,0,0,0);
76        /* At this point, DBAT0 is available for other use... */
77}
Note: See TracBrowser for help on using the repository browser.