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

📄 sysenter.c

📁 这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自测试~但就算用来做参考资料也是非常好的
💻 C
字号:
/* * linux/arch/i386/kernel/sysenter.c * * (C) Copyright 2002 Linus Torvalds * * This file contains the needed initializations to support AT_SYSINFO */#include <linux/init.h>#include <linux/smp.h>#include <linux/mm.h>#include <linux/sched.h>#include <linux/kernel.h>#include <linux/string.h>#include <asm/cpufeature.h>#include <asm/msr.h>#include <asm/pgtable.h>extern int allowsysinfo;static int __init sysenter_setup(void){	static const char int80[] = {		0xcd, 0x80,		/* int $0x80 */		0xc3			/* ret */	};	unsigned long page;		if (!allowsysinfo)		return 0;	page = get_zeroed_page(GFP_ATOMIC);	__set_fixmap(FIX_VSYSCALL, __pa(page), PAGE_READONLY);	memcpy((void *) page, int80, sizeof(int80));	return 0;}__initcall(sysenter_setup);

⌨️ 快捷键说明

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