memory.h

来自「嵌入式系统设计与实例开发实验教材二源码 多线程应用程序设计 串行端口程序设计」· C头文件 代码 · 共 37 行

H
37
字号
/* *  linux/include/asm-arm/arch-anakin/memory.h * *  Copyright (C) 2001 Aleph One Ltd. for Acunia N.V. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * *  Changelog: *   09-Apr-2001 TTC	Created */#ifndef __ASM_ARCH_MEMORY_H#define __ASM_ARCH_MEMORY_H#define TASK_SIZE		(3u * 1024 * 1024 * 1024)#define TASK_SIZE_26		(64u * 1024 * 1024)#define TASK_UNMAPPED_BASE	(1u * 1024 * 1024 * 1024)#define PAGE_OFFSET		0xc0000000#define PHYS_OFFSET		0x20000000#define __virt_to_phys(a)	((a) - PAGE_OFFSET + PHYS_OFFSET)#define __phys_to_virt(a)	((a) + PAGE_OFFSET - PHYS_OFFSET)#define __virt_to_bus(a)	__virt_to_phys(a)#define __bus_to_virt(a)	__phys_to_virt(a)#define __virt_to_phys__is_a_macro#define __phys_to_virt__is_a_macro#define __virt_to_bus__is_a_macro#define __bus_to_virt__is_a_macro#define PHYS_TO_NID(addr)	(0)#endif

⌨️ 快捷键说明

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