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

📄 q-setup.c

📁 LINUX 2.6.17.4的源码
💻 C
字号:
#include <linux/init.h>#include <asm/io.h>#include <asm/time.h>#define QEMU_PORT_BASE 0xb4000000const char *get_system_type(void){	return "Qemu";}static void __init qemu_timer_setup(struct irqaction *irq){	/* set the clock to 100 Hz */	outb_p(0x34,0x43);		/* binary, mode 2, LSB/MSB, ch 0 */	outb_p(LATCH & 0xff , 0x40);	/* LSB */	outb(LATCH >> 8 , 0x40);	/* MSB */	setup_irq(0, irq);}void __init plat_setup(void){	set_io_port_base(QEMU_PORT_BASE);	board_timer_setup = qemu_timer_setup;}

⌨️ 快捷键说明

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