machparm.h
来自「Ibmstb02500 miniboot 源码」· C头文件 代码 · 共 66 行
H
66 行
/* openbios/include/machine/machparm.h, redbios, redbios_iii_1.0 3/23/98 11:41:33 *//*-----------------------------------------------------------------------------+|| This source code has been made available to you by IBM on an AS-IS| basis. Anyone receiving this source is licensed under IBM| copyrights to use it in any way he or she deems fit, including| copying it, modifying it, compiling it, and redistributing it either| with or without modifications. No license under IBM patents or| patent applications is to be implied by the copyright license.|| Any user of this software should understand that IBM cannot provide| technical support for this software and will not be responsible for| any consequences resulting from the use of this software.|| Any person who transfers this source code or any derivative work| must include the IBM copyright notice, this paragraph, and the| preceding two paragraphs in the transferred software.|| COPYRIGHT I B M CORPORATION 1995| LICENSED MATERIAL - PROGRAM PROPERTY OF I B M+-----------------------------------------------------------------------------*//*-----------------------------------------------------------------------------+|| File Name: machparm.h|| Function: Machine dependent defines and parameters. This is general| enough to be included in this directory structure.|| Author: Maciej Tyrlik.|| Change Activity-|| Date Description of Change BY| --------- --------------------- ---| 18-Nov-92 Created MPT| 26-May-94 1.00 first version after code review MPT|+-----------------------------------------------------------------------------*/#ifndef _machparam_machparm_h_#define _machparam_machparm_h_#include <limits.h>/*-----------------------------------------------------------------------------+| Size of MBUF. And associated defines. CLSIZE is the number of pages to a| cluster in a software page (page table entry), and CLBYTES is the number| of bytes.+-----------------------------------------------------------------------------*/#define MSIZE 128#define NBPG PAGESIZE#define CLSIZE 1#define CLBYTES (CLSIZE*NBPG)#define MCLBYTES CLBYTES#define MCLOFSET (MCLBYTES-1)/*-----------------------------------------------------------------------------+| Number of bits in a page and cluster.+-----------------------------------------------------------------------------*/#define PGSHIFT 12#define MCLSHIFT 12#define CLSIZELOG2 0#define CLSHIFT (PGSHIFT+CLSIZELOG2)#endif /* _machparam_machparm_h_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?