亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? processor.c

?? 該文件是rt_linux
?? C
字號:
/*    $Id: processor.c,v 1.13 2002/07/04 19:33:01 grundler Exp $ * *    Initial setup-routines for HP 9000 based hardware. * *    Copyright (C) 1991, 1992, 1995  Linus Torvalds *    Modifications for PA-RISC (C) 1999 Helge Deller <deller@gmx.de> *    Modifications copyright 1999 SuSE GmbH (Philipp Rumpf) *    Modifications copyright 2000 Martin K. Petersen <mkp@mkp.net> *    Modifications copyright 2000 Philipp Rumpf <prumpf@tux.org> *    Modifications copyright 2001 Ryan Bradetich <rbradetich@uswest.net> * *    Initial PA-RISC Version: 04-23-1999 by Helge Deller * *    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, 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., 675 Mass Ave, Cambridge, MA 02139, USA. * */#include <linux/config.h>#include <linux/mm.h>#include <linux/slab.h>#include <linux/seq_file.h>#include <linux/init.h>#include <linux/delay.h>#define PCI_DEBUG#include <linux/pci.h>#undef PCI_DEBUG#include <asm/cache.h>#include <asm/hardware.h>	/* for register_parisc_driver() stuff */#include <asm/processor.h>#include <asm/page.h>#include <asm/pdc.h>#include <asm/irq.h>		/* for struct irq_region */struct system_cpuinfo_parisc boot_cpu_data;struct cpuinfo_parisc cpu_data[NR_CPUS];/***  	PARISC CPU driver - claim "device" and initialize CPU data structures.**** Consolidate per CPU initialization into (mostly) one module.** Monarch CPU will initialize boot_cpu_data which shouldn't** change once the system has booted.**** The callback *should* do per-instance initialization of** everything including the monarch. "Per CPU" init code in** setup.c:start_parisc() has migrated here and start_parisc()** will call register_parisc_driver(&cpu_driver) before calling do_inventory().**** The goal of consolidating CPU initialization into one place is** to make sure all CPU's get initialized the same way.** The code path not shared is how PDC hands control of the CPU to the OS.** The initialization of OS data structures is the same (done below).*//** * processor_probe - Determine if processor driver should claim this device. * @dev: The device which has been found. * * Determine if processor driver should claim this chip (return 0) or not  * (return 1).  If so, initialize the chip and tell other partners in crime  * they have work to do. */static int __init processor_probe(struct parisc_device *dev){	unsigned long txn_addr;	unsigned long cpuid;	struct cpuinfo_parisc *p;#ifndef CONFIG_SMP	if (boot_cpu_data.cpu_count > 0) {		printk(KERN_INFO "CONFIG_SMP=n  ignoring additional CPUs\n");		return 1;	}#endif	/* logical CPU ID and update global counter	 * May get overwritten by PAT code.	 */	cpuid = boot_cpu_data.cpu_count;	txn_addr = dev->hpa;	/* for legacy PDC */#ifdef __LP64__	if (is_pdc_pat()) {		ulong status;		unsigned long bytecnt;	        pdc_pat_cell_mod_maddr_block_t pa_pdc_cell;#undef USE_PAT_CPUID#ifdef USE_PAT_CPUID		struct pdc_pat_cpu_num cpu_info;#endif		status = pdc_pat_cell_module(&bytecnt, dev->pcell_loc,			dev->mod_index, PA_VIEW, &pa_pdc_cell);		ASSERT(PDC_OK == status);		/* verify it's the same as what do_pat_inventory() found */		ASSERT(dev->mod_info == pa_pdc_cell.mod_info);		ASSERT(dev->pmod_loc == pa_pdc_cell.mod_location);		txn_addr = pa_pdc_cell.mod[0];   /* id_eid for IO sapic */#ifdef USE_PAT_CPUID/* We need contiguous numbers for cpuid. Firmware's notion * of cpuid is for physical CPUs and we just don't care yet. * We'll care when we need to query PAT PDC about a CPU *after* * boot time (ie shutdown a CPU from an OS perspective). */		/* get the cpu number */		status = pdc_pat_cpu_get_number(&cpu_info, dev->hpa);		ASSERT(PDC_OK == status);		if (cpu_info.cpu_num >= NR_CPUS) {			printk(KERN_WARNING "IGNORING CPU at 0x%x,"				" cpu_slot_id > NR_CPUS"				" (%ld > %d)\n",				dev->hpa, cpu_info.cpu_num, NR_CPUS);			/* Ignore CPU since it will only crash */			boot_cpu_data.cpu_count--;			return 1;		} else {			cpuid = cpu_info.cpu_num;		}#endif	}#endif	p = &cpu_data[cpuid];	boot_cpu_data.cpu_count++;	/* initialize counters */	memset(p, 0, sizeof(struct cpuinfo_parisc));	p->dev = dev;		/* Save IODC data in case we need it */	p->hpa = dev->hpa;	/* save CPU hpa */	p->cpuid = cpuid;	/* save CPU id */	p->txn_addr = txn_addr;	/* save CPU IRQ address */#ifdef CONFIG_SMP	p->lock = SPIN_LOCK_UNLOCKED;	/*	** FIXME: review if any other initialization is clobbered	**	for boot_cpu by the above memset().	*/	/* stolen from init_percpu_prof() */	cpu_data[cpuid].prof_counter = 1;	cpu_data[cpuid].prof_multiplier = 1;#endif	/*	** CONFIG_SMP: init_smp_config() will attempt to get CPU's into	** OS control. RENDEZVOUS is the default state - see mem_set above.	**	p->state = STATE_RENDEZVOUS;	*/	/*	** itimer and ipi IRQ handlers are statically initialized in	** arch/parisc/kernel/irq.c. ie Don't need to register them.	*/	p->region = irq_region[IRQ_FROM_REGION(CPU_IRQ_REGION)];	return 0;}/** * collect_boot_cpu_data - Fill the boot_cpu_data structure. * * This function collects and stores the generic processor information * in the boot_cpu_data structure. */void __init collect_boot_cpu_data(void){	memset(&boot_cpu_data, 0, sizeof(boot_cpu_data));	boot_cpu_data.cpu_hz = 100 * PAGE0->mem_10msec; /* Hz of this PARISC */	/* get CPU-Model Information... */#define p ((unsigned long *)&boot_cpu_data.pdc.model)	if (pdc_model_info(&boot_cpu_data.pdc.model) == PDC_OK)		printk(KERN_INFO 			"model %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n",			p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8]);#undef p	if (pdc_model_versions(&boot_cpu_data.pdc.versions, 0) == PDC_OK)		printk(KERN_INFO "vers  %08lx\n", 			boot_cpu_data.pdc.versions);	if (pdc_model_cpuid(&boot_cpu_data.pdc.cpuid) == PDC_OK)		printk(KERN_INFO "CPUID vers %ld rev %ld (0x%08lx)\n",			(boot_cpu_data.pdc.cpuid >> 5) & 127,			boot_cpu_data.pdc.cpuid & 31,			boot_cpu_data.pdc.cpuid);	if (pdc_model_capabilities(&boot_cpu_data.pdc.capabilities) == PDC_OK)		printk(KERN_INFO "capabilities 0x%lx\n",			boot_cpu_data.pdc.capabilities);	if (pdc_model_sysmodel(boot_cpu_data.pdc.sys_model_name) == PDC_OK)		printk(KERN_INFO "model %s\n",			boot_cpu_data.pdc.sys_model_name);	boot_cpu_data.hversion =  boot_cpu_data.pdc.model.hversion;	boot_cpu_data.sversion =  boot_cpu_data.pdc.model.sversion;	boot_cpu_data.cpu_type =			parisc_get_cpu_type(boot_cpu_data.hversion);	boot_cpu_data.cpu_name = cpu_name_version[boot_cpu_data.cpu_type][0];	boot_cpu_data.family_name = cpu_name_version[boot_cpu_data.cpu_type][1];}/** * init_cpu_profiler - enable/setup per cpu profiling hooks. * @cpunum: The processor instance. * * FIXME: doesn't do much yet... */static inline void __initinit_percpu_prof(int cpunum){	cpu_data[cpunum].prof_counter = 1;	cpu_data[cpunum].prof_multiplier = 1;}/** * init_per_cpu - Handle individual processor initializations. * @cpunum: logical processor number. * * This function handles initialization for *every* CPU * in the system: * * o Set "default" CPU width for trap handlers * * o Enable FP coprocessor *   REVISIT: this could be done in the "code 22" trap handler. *	(frowands idea - that way we know which processes need FP *	registers saved on the interrupt stack.) *   NEWS FLASH: wide kernels need FP coprocessor enabled to handle *	formatted printing of %lx for example (double divides I think) * * o Enable CPU profiling hooks. */int __init init_per_cpu(int cpunum){	int ret;	struct pdc_coproc_cfg coproc_cfg;	ret = pdc_coproc_cfg(&coproc_cfg);	if(ret >= 0 && coproc_cfg.ccr_functional) {		mtctl(coproc_cfg.ccr_functional, 10);  /* 10 == Coprocessor Control Reg */		/* FWIW, FP rev/model is a more accurate way to determine		** CPU type. CPU rev/model has some ambiguous cases.		*/		cpu_data[cpunum].fp_rev = coproc_cfg.revision;		cpu_data[cpunum].fp_model = coproc_cfg.model;		printk(KERN_INFO  "FP[%d] enabled: Rev %ld Model %ld\n",			cpunum, coproc_cfg.revision, coproc_cfg.model);		/*		** store status register to stack (hopefully aligned)		** and clear the T-bit.		*/		asm volatile ("fstd    %fr0,8(%sp)");	} else {		printk(KERN_WARNING  "WARNING: No FP CoProcessor?!"			" (coproc_cfg.ccr_functional == 0x%lx, expected 0xc0)\n"#ifdef __LP64__			"Halting Machine - FP required\n"#endif			, coproc_cfg.ccr_functional);#ifdef __LP64__		mdelay(100);	/* previous chars get pushed to console */		panic("FP CoProc not reported");#endif	}	/* FUTURE: Enable Performance Monitor : ccr bit 0x20 */	init_percpu_prof(cpunum);	return ret;}/* * Display cpu info for all cpu's. */intshow_cpuinfo (struct seq_file *m, void *v){	int	n;	for(n=0; n<boot_cpu_data.cpu_count; n++) {#ifdef CONFIG_SMP		if (0 == cpu_data[n].hpa)			continue;#ifdef ENTRY_SYS_CPUS#error iCOD support wants to show CPU state here#endif#endif		seq_printf(m, "processor\t: %d\n"				"cpu family\t: PA-RISC %s\n",				 n, boot_cpu_data.family_name);		seq_printf(m, "cpu\t\t: %s\n",  boot_cpu_data.cpu_name );		/* cpu MHz */		seq_printf(m, "cpu MHz\t\t: %d.%06d\n",				 boot_cpu_data.cpu_hz / 1000000,				 boot_cpu_data.cpu_hz % 1000000  );		seq_printf(m, "model\t\t: %s\n"				"model name\t: %s\n",				 boot_cpu_data.pdc.sys_model_name,				 cpu_data[n].dev ? 				 cpu_data[n].dev->name : "Unknown" );		seq_printf(m, "hversion\t: 0x%08x\n"			        "sversion\t: 0x%08x\n",				 boot_cpu_data.hversion,				 boot_cpu_data.sversion );		/* print cachesize info */		show_cache_info(m);		seq_printf(m, "bogomips\t: %lu.%02lu\n",			     loops_per_jiffy / (500000 / HZ),			     (loops_per_jiffy / (5000 / HZ)) % 100);		seq_printf(m, "software id\t: %ld\n\n",				boot_cpu_data.pdc.model.sw_id);	}	return 0;}static struct parisc_device_id processor_tbl[] = {	{ HPHW_NPROC, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, SVERSION_ANY_ID },	{ 0, }};static struct parisc_driver cpu_driver = {	name:		"CPU",	id_table:	processor_tbl,	probe:		processor_probe};/** * processor_init - Processor initalization procedure. * * Register this driver. */void __init processor_init(void){	register_parisc_driver(&cpu_driver);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃av一区二区| 五月天一区二区| 日韩成人一级大片| 91女人视频在线观看| 日韩久久久精品| 亚洲最大色网站| 成熟亚洲日本毛茸茸凸凹| 欧美一级日韩一级| 亚洲国产精品麻豆| 99久久精品国产一区二区三区| 欧美成人精品二区三区99精品| 亚洲最新视频在线播放| 成人av动漫在线| 久久精品一区二区三区不卡 | 91精品在线观看入口| 中文字幕亚洲欧美在线不卡| 激情国产一区二区| 91精品国产综合久久婷婷香蕉| 亚洲精品网站在线观看| 成人免费三级在线| 久久综合九色综合欧美就去吻| 视频在线观看一区| 欧美午夜片在线看| 亚洲另类在线制服丝袜| 成人性生交大片免费看中文| 欧美成人伊人久久综合网| 日韩精品亚洲专区| 911精品产国品一二三产区| 亚洲精品老司机| 91视频com| 日韩久久一区二区| 97久久人人超碰| 国产精品久久久久一区二区三区| 国产精品99久久久| 久久蜜桃av一区二区天堂| 精油按摩中文字幕久久| 日韩欧美国产综合在线一区二区三区| 亚洲午夜精品久久久久久久久| 91久久免费观看| 亚洲黄色免费电影| 91福利精品第一导航| 亚洲激情中文1区| 91极品美女在线| 亚洲黄色免费电影| 欧美日韩在线亚洲一区蜜芽| 亚洲国产日日夜夜| 欧美精品色一区二区三区| 性做久久久久久久久| 欧美日韩在线播放一区| 午夜精品成人在线| 日韩一卡二卡三卡四卡| 精品影视av免费| 久久嫩草精品久久久久| 国产精品自拍一区| 亚洲欧美在线另类| 色婷婷激情久久| 午夜av一区二区三区| 91精品福利在线一区二区三区| 蜜臀av性久久久久av蜜臀妖精| 欧美成人一级视频| 国产激情视频一区二区在线观看 | 宅男在线国产精品| 九九九精品视频| 国产午夜精品理论片a级大结局| 成人免费看黄yyy456| 亚洲老妇xxxxxx| 91麻豆精品91久久久久久清纯 | 国产精品进线69影院| 色狠狠一区二区| 日本一不卡视频| 国产亚洲一区字幕| 色妞www精品视频| 视频精品一区二区| 久久久亚洲精华液精华液精华液| 成人性生交大合| 亚洲自拍偷拍综合| 日韩欧美一区二区免费| 粉嫩aⅴ一区二区三区四区| 亚洲女厕所小便bbb| 欧美网站一区二区| 国产原创一区二区三区| 中文字幕中文在线不卡住| 欧美在线播放高清精品| 免费在线观看日韩欧美| 久久精品国产色蜜蜜麻豆| 国产日韩一级二级三级| 色妞www精品视频| 久久精品国产**网站演员| 国产精品久久久久久久久晋中 | 裸体健美xxxx欧美裸体表演| 欧美国产精品一区二区| 欧美性色欧美a在线播放| 精品在线播放免费| 亚洲欧美一区二区久久| 欧美大度的电影原声| 91色综合久久久久婷婷| 免费一区二区视频| 亚洲日本乱码在线观看| 精品区一区二区| 日本久久精品电影| 国产在线精品免费| 亚洲国产一区二区视频| 国产香蕉久久精品综合网| 欧美三级中文字幕| 成人精品鲁一区一区二区| 亚瑟在线精品视频| 国产精品久久久一本精品| 日韩午夜激情视频| 一本大道久久a久久精品综合| 精品亚洲成a人| 亚洲影视在线播放| 亚洲国产成人一区二区三区| 欧美日韩一本到| 99久久伊人久久99| 韩国精品在线观看| 亚洲国产精品自拍| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 亚洲一区二区三区自拍| 国产欧美日韩综合精品一区二区| 欧美美女一区二区在线观看| 成人av在线资源网站| 久久精品国产一区二区三区免费看| 亚洲精品免费看| 欧美激情在线一区二区| 日韩精品最新网址| 欧美日韩成人一区| 色婷婷综合久久久久中文一区二区 | 欧美精品一区二| 欧美日韩1区2区| 91传媒视频在线播放| 波多野结衣中文字幕一区二区三区| 麻豆视频观看网址久久| 亚洲成人tv网| 亚洲综合免费观看高清在线观看| 中文幕一区二区三区久久蜜桃| 精品久久久久av影院| 91精品国产综合久久精品麻豆 | 国产成人av一区二区| 久久精品国产77777蜜臀| 午夜a成v人精品| 亚洲精品一卡二卡| 亚洲色图20p| 国产精品国产三级国产普通话蜜臀 | 欧美综合一区二区| 91在线一区二区三区| 国产成人精品亚洲777人妖 | 亚洲精品久久嫩草网站秘色| 国产精品久久久久久户外露出 | 中文字幕欧美三区| 国产三级精品视频| 久久网站最新地址| 2023国产精品视频| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日本亚洲一区二区| 首页国产欧美久久| 日本不卡一区二区三区高清视频| 香蕉久久夜色精品国产使用方法| 亚洲国产精品麻豆| 婷婷国产v国产偷v亚洲高清| 亚洲午夜精品久久久久久久久| 亚洲最新视频在线播放| 亚洲国产欧美另类丝袜| 亚洲18色成人| 日本亚洲最大的色成网站www| 日本aⅴ亚洲精品中文乱码| 日韩高清电影一区| 久久精品国产免费看久久精品| 久久99日本精品| 国产露脸91国语对白| 国产精品69久久久久水密桃| 国产91丝袜在线18| 99精品国产91久久久久久| 91免费版在线| 欧美图片一区二区三区| 欧美顶级少妇做爰| 日韩视频在线永久播放| 精品国产免费久久| 国产拍欧美日韩视频二区| 国产精品丝袜久久久久久app| 亚洲婷婷在线视频| 亚洲成人资源网| 麻豆精品一二三| 国产成人综合在线| 91玉足脚交白嫩脚丫在线播放| 欧美影视一区在线| 日韩一区二区三区观看| 久久精品人人做人人爽人人| 国产精品福利影院| 亚洲高清免费观看| 久久精品国产免费| 成人免费毛片嘿嘿连载视频| 色8久久精品久久久久久蜜 | 丁香亚洲综合激情啪啪综合| 91麻豆文化传媒在线观看| 欧美日韩精品一区二区天天拍小说 | 精油按摩中文字幕久久| 成人的网站免费观看| 精品视频1区2区| 国产日本欧洲亚洲| 亚洲一区二区三区小说|