⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgtbl_activate.c

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻 C
字号:
/* $Id: pgtbl_activate.c,v 1.1.2.1 2003/02/20 21:45:49 joel Exp $ */#include <rtems.h>#include <libcpu/pte121.h>#include <libcpu/bat.h>/* Default activation of the page tables. This is a weak * alias, so applications may easily override this * default activation procedure. *//* Author: Till Straumann, <strauman@slac.stanford.edu>, 4/2002 */voidBSP_pgtbl_activate(Triv121PgTbl) __attribute__ (( weak, alias("__BSP_default_pgtbl_activate") ));void__BSP_default_pgtbl_activate(Triv121PgTbl pt){	if (!pt) return;	/* switch the text/ro sements to RO only after	 * initializing the interrupts because the irq_mng	 * installs some code...	 *	 * activate the page table; it is still masked by the	 * DBAT0, however	 */	triv121PgTblActivate(pt);	/* finally, switch off DBAT0 */	setdbat(0,0,0,0,0);	/* At this point, DBAT0 is available for other use... */}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -