system.h

来自「这是一个SIGMA方案的PMP播放器的UCLINUX程序,可播放DVD,VCD,」· C头文件 代码 · 共 57 行

H
57
字号
/* *  linux/include/asm-arm/arch-integrator/system.h * *  Copyright (C) 1999 ARM Limited *  Copyright (C) 2000 Deep Blue Solutions Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef __ASM_ARCH_SYSTEM_H#define __ASM_ARCH_SYSTEM_H#include <asm/arch/hardware.h>static void arch_idle(void){	/*	 * This should do all the clock switching	 * and wait for interrupt tricks	 */	cpu_do_idle(0);}static inline void arch_reset(char mode){	/*	 * To reset, we set the reset all bit of reset register	 */	unsigned long teststat= __raw_readl(JASPER_SYSCTRL_BASE +SYSCTRL_TESTSTAT);	__raw_writel(teststat+1, JASPER_SYSCTRL_BASE +SYSCTRL_TESTSTAT);	__raw_writel(0, JASPER_SYSCTRL_BASE + SYSCTRL_CPUCFG); // remap ROM at 0	// reset everything except ALL and MAC	__raw_writel(0x7FFFFFEF, JASPER_SYSCTRL_BASE+SYSCTRL_RSTCTL);	//rev A hack...RESET_CPU doesnt work	asm("mov pc, #0\n"		"nop\n"		"nop\n"		"nop\n"		"nop\n"		"nop\n");}#endif

⌨️ 快捷键说明

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