![]() |
|
|||
File indexing completed on 2025-05-11 08:23:58
0001 #include <rtems.h> 0002 #include <libcpu/pte121.h> 0003 #include <libcpu/bat.h> 0004 0005 /* Default activation of the page tables. This is a weak 0006 * alias, so applications may easily override this 0007 * default activation procedure. 0008 */ 0009 0010 /* 0011 * Authorship 0012 * ---------- 0013 * This software was created by 0014 * Till Straumann <strauman@slac.stanford.edu>, 4/2002, 0015 * Stanford Linear Accelerator Center, Stanford University. 0016 * 0017 * Acknowledgement of sponsorship 0018 * ------------------------------ 0019 * This software was produced by 0020 * the Stanford Linear Accelerator Center, Stanford University, 0021 * under Contract DE-AC03-76SFO0515 with the Department of Energy. 0022 * 0023 * Government disclaimer of liability 0024 * ---------------------------------- 0025 * Neither the United States nor the United States Department of Energy, 0026 * nor any of their employees, makes any warranty, express or implied, or 0027 * assumes any legal liability or responsibility for the accuracy, 0028 * completeness, or usefulness of any data, apparatus, product, or process 0029 * disclosed, or represents that its use would not infringe privately owned 0030 * rights. 0031 * 0032 * Stanford disclaimer of liability 0033 * -------------------------------- 0034 * Stanford University makes no representations or warranties, express or 0035 * implied, nor assumes any liability for the use of this software. 0036 * 0037 * Stanford disclaimer of copyright 0038 * -------------------------------- 0039 * Stanford University, owner of the copyright, hereby disclaims its 0040 * copyright and all other rights in this software. Hence, anyone may 0041 * freely use it for any purpose without restriction. 0042 * 0043 * Maintenance of notices 0044 * ---------------------- 0045 * In the interest of clarity regarding the origin and status of this 0046 * SLAC software, this and all the preceding Stanford University notices 0047 * are to remain affixed to any copy or derivative of this software made 0048 * or distributed by the recipient and are to be affixed to any copy of 0049 * software made or distributed by the recipient that contains a copy or 0050 * derivative of this software. 0051 * 0052 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03 0053 */ 0054 0055 void __BSP_default_pgtbl_activate(Triv121PgTbl pt); 0056 void 0057 BSP_pgtbl_activate(Triv121PgTbl) 0058 __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") )); 0059 0060 void 0061 __BSP_default_pgtbl_activate(Triv121PgTbl pt) 0062 { 0063 if (!pt) return; 0064 0065 /* switch the text/ro sements to RO only after 0066 * initializing the interrupts because the irq_mng 0067 * installs some code... 0068 * 0069 * activate the page table; it is still masked by the 0070 * DBAT0, however 0071 */ 0072 triv121PgTblActivate(pt); 0073 0074 /* finally, switch off DBAT0 */ 0075 setdbat(0,0,0,0,0); 0076 /* At this point, DBAT0 is available for other use... */ 0077 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |