const.h
来自「一个简单的操作系统minix的核心代码」· C头文件 代码 · 共 20 行
H
20 行
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/mm/const.h
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15900 /* Constants used by the Memory Manager. */
15901
15902 #define NO_MEM ((phys_clicks) 0) /* returned by alloc_mem() with mem is up */
15903
15904 #if (CHIP == INTEL && _WORD_SIZE == 2)
15905 /* These definitions are used in size_ok and are not needed for 386.
15906 * The 386 segment granularity is 1 for segments smaller than 1M and 4096
15907 * above that.
15908 */
15909 #define PAGE_SIZE 16 /* how many bytes in a page (s.b.HCLICK_SIZE)*/
15910 #define MAX_PAGES 4096 /* how many pages in the virtual addr space */
15911 #endif
15912
15913 #define printf printk
15914
15915 #define INIT_PID 1 /* init's process id number */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?