pgtbl_activate.c

来自「RTEMS (Real-Time Executive for Multiproc」· C语言 代码 · 共 35 行

C
35
字号
/* $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 + =
减小字号Ctrl + -
显示快捷键?