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

📄 protmod.h

📁 freebsd v4.4内核源码
💻 H
字号:
/*
 *	protmod.h		Protected Mode Utilities
 *
 *	(C) 1994 by Christian Gusenbauer (cg@fimp01.fim.uni-linz.ac.at)
 *	All Rights Reserved.
 * 
 *	Permission to use, copy, modify and distribute this software and its
 *	documentation is hereby granted, provided that both the copyright
 *	notice and this permission notice appear in all copies of the
 *	software, derivative works or modified versions, and any portions
 *	thereof, and that both notices appear in supporting documentation.
 * 
 *	I ALLOW YOU USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. I DISCLAIM
 *	ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
 *	USE OF THIS SOFTWARE.
 * 
 */
extern struct bootinfo bootinfo;
extern int VCPIboot;

extern int pm_copy(char far *from, unsigned long to, unsigned long count);
/* pm_copy copies "count" bytes from location "from" (valid C pointer) to the
 * address "to" in the high-memory space.
 */

extern void startprog(long hmaddress, long size, long startaddr, long loadflags,
					  long bootdev);
/* startprog switches to protected mode, moves the kernel from hmaddress
 * to 0x100000l and finally starts the kernel.
 */

extern long get_high_memory(long size);
/* get_high_memory allocates size bytes from high memory (>1MB) and returns
 * the address of this area.
 */

⌨️ 快捷键说明

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