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

📄 getconstants.c

📁 arm平台上的uclinux系统全部源代码
💻 C
字号:
/* * linux/arch/arm/lib/getconstants.c * * Copyright (C) 1995, 1996 Russell King */#include <linux/mm.h>#include <asm/pgtable.h>#include <stdio.h>#include <linux/unistd.h>void printdef(char *def, int no){	printf("#define %s\t%d\n", def, no);}#include "getconstants.h"int main(){	printf("/*\n *  contants.h generated by getconstants\n * DO NOT EDIT!\n */\n");	printf("#define _current\t_%s\n", "current_set");#ifdef _PAGE_PRESENT	printdef("PAGE_PRESENT",	_PAGE_PRESENT);#endif#ifdef _PAGE_RW	printdef("PAGE_RW",		_PAGE_RW);#endif#ifdef _PAGE_USER	printdef("PAGE_USER",		_PAGE_USER);#endif#ifdef _PAGE_ACCESSED	printdef("PAGE_ACCESSED",	_PAGE_ACCESSED);#endif#ifdef _PAGE_DIRTY	printdef("PAGE_DIRTY",		_PAGE_DIRTY);#endif#ifdef _PAGE_READONLY	printdef("PAGE_READONLY",	_PAGE_READONLY);#endif#ifdef _PAGE_NOT_USER	printdef("PAGE_NOT_USER",	_PAGE_NOT_USER);#endif#ifdef _PAGE_OLD	printdef("PAGE_OLD",		_PAGE_OLD);#endif#ifdef _PAGE_CLEAN	printdef("PAGE_CLEAN",		_PAGE_CLEAN);#endif#ifdef __HAS_tss_memmap	printdef("TSS_MEMMAP",		(int)tss_memmap);#endif#ifdef __HAS_tss_save	printdef("TSS_SAVE",		(int)tss_save);#endif#ifdef __HAS_tss_memcmap	printdef("TSS_MEMCMAP",		(int)tss_memcmap);#endif#ifdef __HAS_tss_fpesave	printdef("TSS_FPESAVE",		(int)tss_fpesave);#endif#ifdef __HAS_mm	printdef("MM",			(int)mm);#endif	#ifdef __HAS_pgd	printdef("PGD",			(int)pgd);#endif	printf("#define KSWI_BASE	0x900000\n");	printf("#define KSWI_SYS_BASE	0x9F0000\n");	printf("#define SYS_ERROR0	0x9F0000\n");	return 0;}

⌨️ 快捷键说明

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