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

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • 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
56BSP_pgtbl_activate(Triv121PgTbl) __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") ));
57
58void
59__BSP_default_pgtbl_activate(Triv121PgTbl pt)
60{
61        if (!pt) return;
62
63        /* switch the text/ro sements to RO only after
64         * initializing the interrupts because the irq_mng
65         * installs some code...
66         *
67         * activate the page table; it is still masked by the
68         * DBAT0, however
69         */
70        triv121PgTblActivate(pt);
71
72        /* finally, switch off DBAT0 */
73        setdbat(0,0,0,0,0);
74        /* At this point, DBAT0 is available for other use... */
75}
Note: See TracBrowser for help on using the repository browser.